Authored by zhengyouwei

add qcloud sms up

package com.ui.model.domain;
import lombok.Data;
/**
* Created by zhengyouwei on 2016/12/16.
*/
@Data
public class QcloudSmsUp {
private QcloudSmsUpBody voicecode_callback;
}
... ...
package com.ui.model.domain;
import lombok.Data;
/**
* Created by zhengyouwei on 2016/12/16.
*/
@Data
public class QcloudSmsUpBody {
private String result;
private String callid;
private String mobile;
private String nationcode;
private String call_from;
private String start_calltime;
private String end_calltime;
private String accept_time;
private String fee;
}
... ...
... ... @@ -2,11 +2,13 @@ package com.ui.ctrl;
import com.ui.http.HttpRestClient;
import com.ui.model.BaseResponse;
import com.ui.model.domain.QcloudSmsUp;
import com.ui.model.req.SmsUp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
... ... @@ -21,7 +23,9 @@ public class SmsUpctrl {
@RequestMapping("/deliverMessage")
@ResponseBody
public boolean smsup(String SmsType, String SrcMobile, String AppendID, String Content, String RecvTime, String SendTime, String Status) {
public boolean smsup(@RequestBody QcloudSmsUp qcloudSmsUp) {
SmsUp smsUp = new SmsUp();
smsUp.setAppendID(AppendID);
smsUp.setSmsType(SmsType);
... ...