6
0

【cs服务】

1、json参数优化
This commit is contained in:
liguanjie 2025-06-10 21:46:21 +08:00
parent 2ab968dfb2
commit a5e43aa59a

View File

@ -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
}