style: 移动登录信息结构体位置
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package srunModels
|
||||
|
||||
import "github.com/Mmx233/BitSrunLoginGo/v1/transfer"
|
||||
|
||||
type Daemon struct {
|
||||
Enable bool `json:"enable"`
|
||||
Path string `json:"path"`
|
||||
@@ -18,7 +20,7 @@ type Settings struct {
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Form LoginForm `json:"form"`
|
||||
Meta LoginMeta `json:"meta"`
|
||||
Settings Settings `json:"settings"`
|
||||
Form srunTransfer.LoginForm `json:"form"`
|
||||
Meta srunTransfer.LoginMeta `json:"meta"`
|
||||
Settings Settings `json:"settings"`
|
||||
}
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
package srunModels
|
||||
|
||||
type LoginForm struct {
|
||||
Domain string `json:"domain"`
|
||||
UserName string `json:"username"`
|
||||
UserType string `json:"user_type"`
|
||||
PassWord string `json:"password"`
|
||||
}
|
||||
|
||||
type LoginMeta struct {
|
||||
N string `json:"n"`
|
||||
Type string `json:"type"`
|
||||
Acid string `json:"acid"`
|
||||
Enc string `json:"enc"`
|
||||
}
|
||||
import "github.com/Mmx233/BitSrunLoginGo/v1/transfer"
|
||||
|
||||
type LoginInfo struct {
|
||||
UrlLoginPage string
|
||||
@@ -28,6 +16,6 @@ type LoginInfo struct {
|
||||
EncryptedChkstr string
|
||||
LoginResult string
|
||||
|
||||
Form *LoginForm
|
||||
Meta *LoginMeta
|
||||
Form *srunTransfer.LoginForm
|
||||
Meta *srunTransfer.LoginMeta
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user