Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
LoginRequest 登录请求
type LoginResponse ¶
type LoginResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data struct {
Name string `json:"name"`
Role string `json:"role"`
Namespace string `json:"namespace"`
LoginResult struct {
Token string `json:"token"`
} `json:"loginResult"`
} `json:"data"`
Token string `json:"token,omitempty"`
SESSID string `json:"sessid,omitempty"` // 会话ID,从响应Cookie中提取
}
LoginResponse 登录响应
func (*LoginResponse) GetSESSID ¶
func (r *LoginResponse) GetSESSID() string
GetSESSID 获取SESSID(用于后续API调用)
func (*LoginResponse) GetToken ¶
func (r *LoginResponse) GetToken() string
GetToken 获取token(用于后续API调用)
Click to show internal directories.
Click to hide internal directories.