feat: 重构配置层,添加 json 支持
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user