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