Documentation
¶
Index ¶
- Constants
- func AddSuffix(name, server string) string
- func Challenge(username string) url.Values
- func Info(acid int, username, clientIp, accessToken string) url.Values
- func Login(username, password string, acid int) url.Values
- func Logout(username string) url.Values
- type Account
- type QChallenge
- type QInfo
- type QLogin
- type QLogout
Constants ¶
View Source
const ( ServerTypeCMCC = "移动" ServerTypeWCDMA = "联通" ServerTypeOrigin = "校园网" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
AccessToken string `json:"access_token"`
Ip string `json:"ip"`
Server string `json:"server"`
}
func (*Account) JSONString ¶
type QChallenge ¶
query challenge
type QInfo ¶
type QInfo struct {
Acid int `json:"ac_id"`
Username string `json:"username"`
ClientIp string `json:"client_ip"`
AccessToken string `json:"access_token"`
}
query info
Click to show internal directories.
Click to hide internal directories.