feat: 重构配置层,添加 json 支持

This commit is contained in:
Mmx233
2023-08-28 22:03:03 +08:00
parent 2a098e00dd
commit 6f283a93f5
19 changed files with 318 additions and 272 deletions

View File

@@ -1,18 +1,18 @@
package srun
type LoginForm struct {
Domain string `json:"domain"`
UserName string `json:"username"`
Domain string `json:"domain" yaml:"domain"`
Username string `json:"username" yaml:"username"`
//运营商类型
UserType string `json:"user_type"`
PassWord string `json:"password"`
UserType string `json:"user_type" yaml:"userType"`
Password string `json:"password" yaml:"password"`
}
type LoginMeta struct {
N string `json:"n"`
Type string `json:"type"`
Acid string `json:"acid"`
Enc string `json:"enc"`
N string `json:"n" yaml:"n"`
Type string `json:"type" yaml:"type"`
Acid string `json:"acid" yaml:"acid"`
Enc string `json:"enc" yaml:"enc"`
}
type LoginInfo struct {