【cs服务】
1、json参数优化
This commit is contained in:
parent
2ab968dfb2
commit
a5e43aa59a
@ -130,6 +130,7 @@ type SendSmsResp struct {
|
||||
|
||||
type SendSmsRequest struct {
|
||||
*requests.JsonRequest
|
||||
Phone string `position:"Json" field:"phone"`
|
||||
}
|
||||
type SendSmsResponse struct {
|
||||
*responses.BaseResponse
|
||||
@ -141,9 +142,10 @@ type SendSmsResponse struct {
|
||||
func CreateSendSmsRequest(param SendSmsReq) (req *SendSmsRequest) {
|
||||
req = &SendSmsRequest{
|
||||
JsonRequest: &requests.JsonRequest{},
|
||||
Phone: param.Phone,
|
||||
}
|
||||
req.InitWithApiInfo(HOST, VERSION, "/v1/user/send_sms")
|
||||
req.JsonParams["phone"] = param.Phone
|
||||
|
||||
req.Method = requests.POST
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user