b8b1585d5e
2.addheader 方法改成公有方法 3.添加文档
38 lines
835 B
Go
38 lines
835 B
Go
package www
|
|
|
|
import (
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
|
)
|
|
|
|
type GetPwdRequest struct {
|
|
*requests.RpcRequest
|
|
UserName string `position:"Query" field:"user_name" default:"-" `
|
|
}
|
|
|
|
type GetPwdResponse struct {
|
|
*responses.BaseResponse
|
|
Ret int `json:"ret"`
|
|
Msg string `json:"msg"`
|
|
Data struct {
|
|
UserName string `json:"user_name"`
|
|
UserPwd string `json:"user_pwd"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
func CreateGetPwdRequest() (req *GetPwdRequest) {
|
|
req = &GetPwdRequest{
|
|
RpcRequest: &requests.RpcRequest{},
|
|
}
|
|
req.InitWithApiInfo(HOST, VERSION, "/api/limit/getPwd.php")
|
|
req.Method = requests.GET
|
|
return
|
|
}
|
|
|
|
func CreateGetPwdResponse() (response *GetPwdResponse) {
|
|
response = &GetPwdResponse{
|
|
BaseResponse: &responses.BaseResponse{},
|
|
}
|
|
return
|
|
}
|