|
@ -17,7 +17,6 @@ |
|
|
|
|
|
|
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.AppClientConstant; |
|
|
|
|
|
import com.epmet.commons.tools.exception.ExceptionUtils; |
|
|
import com.epmet.commons.tools.exception.ExceptionUtils; |
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
@ -25,16 +24,16 @@ import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.dto.form.GetTemplateListFormDTO; |
|
|
import com.epmet.dto.form.GetTemplateListFormDTO; |
|
|
import com.epmet.dto.form.WxMsgAuthInfoFormDTO; |
|
|
import com.epmet.dto.form.WxMsgAuthInfoFormDTO; |
|
|
import com.epmet.dto.form.WxSubscribeMessageFormDTO; |
|
|
import com.epmet.dto.form.WxSubscribeMessageFormDTO; |
|
|
import com.epmet.dto.form.WxmpTemplateListFormDTO; |
|
|
|
|
|
import com.epmet.dto.result.GetTemplateListResultDTO; |
|
|
import com.epmet.dto.result.GetTemplateListResultDTO; |
|
|
import com.epmet.dto.result.WxMsgAuthInfoResultDTO; |
|
|
import com.epmet.dto.result.WxMsgAuthInfoResultDTO; |
|
|
import com.epmet.dto.result.WxmpTemplateListResultDTO; |
|
|
|
|
|
import com.epmet.service.WxmpMessageService; |
|
|
import com.epmet.service.WxmpMessageService; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import sun.awt.AppContext; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.concurrent.ExecutorService; |
|
|
import java.util.concurrent.ExecutorService; |
|
@ -146,18 +145,4 @@ public class WxmpMessageController { |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @return |
|
|
|
|
|
* @Description (外挂)消息-获取订阅消息模板列表 |
|
|
|
|
|
* @author sun |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("wxmptemplatelist") |
|
|
|
|
|
public Result<List<WxmpTemplateListResultDTO>> wxmpTemplateList(@RequestBody WxmpTemplateListFormDTO formDTO) { |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, WxmpTemplateListFormDTO.AddUserInternalGroup.class); |
|
|
|
|
|
if (!AppClientConstant.APP_RESI.equals(formDTO.getClientType()) && !AppClientConstant.APP_WORK.equals(formDTO.getClientType())) { |
|
|
|
|
|
return new Result<List<WxmpTemplateListResultDTO>>().error("参数错误,clientType值类型错误!"); |
|
|
|
|
|
} |
|
|
|
|
|
return new Result<List<WxmpTemplateListResultDTO>>().ok(wxmpMessageService.wxmpTemplateList(formDTO)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |