Commit 22e1e2c7 by yujiejobs

短信

parent c1118c3b
package com.gic.operation.web.controller;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.webapi.reponse.RestResponse;
......@@ -31,6 +16,20 @@ import com.gic.marketing.api.service.sms.SmsOuterApiService;
import com.gic.operation.web.vo.EnterpriseSmsSignVO;
import com.gic.operation.web.vo.sms.SmsChannelVO;
import com.gic.operation.web.vo.sms.SmsTemplateVO;
import org.apache.commons.collections.CollectionUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
*
......@@ -59,8 +58,8 @@ public class EnterpriseSmsController {
}
@RequestMapping("/save-app")
public RestResponse saveApp(Integer enterpriseId, String appid, String appkey) {
return ResultControllerUtils.commonResult(smsOuterApiService.saveEnterpriseSmsApp(enterpriseId, appid, appkey));
public RestResponse saveApp(Integer enterpriseId, String appid, String appkey,Integer channelType) {
return ResultControllerUtils.commonResult(smsOuterApiService.saveEnterpriseSmsApp(enterpriseId, appid, appkey,channelType));
}
@RequestMapping("/list-sms-channel")
......@@ -68,6 +67,7 @@ public class EnterpriseSmsController {
return ResultControllerUtils.commonResult(smsOuterApiService.listGicSmsChannel(), SmsChannelVO.class);
}
// TODO 弃用
/**
* 设置优先使用配置
* @param enterpriseId
......
......@@ -22,6 +22,32 @@ public class SmsChannelVO implements Serializable{
*/
private String channelName;
/**
* 是否要查询商户短信通道配置信息(0:不用; 1:需要)
*/
private Integer needConfig;
/**
* 是否需要配置sign信息(0:不用; 1:需要)
*/
private Integer needSignSetting;
public Integer getNeedConfig() {
return needConfig;
}
public void setNeedConfig(Integer needConfig) {
this.needConfig = needConfig;
}
public Integer getNeedSignSetting() {
return needSignSetting;
}
public void setNeedSignSetting(Integer needSignSetting) {
this.needSignSetting = needSignSetting;
}
public Integer getChannelType() {
return channelType;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment