| @@ -53,6 +53,14 @@ public class WxMsgValidationcodeModelController extends BaseController { | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @PostMapping("updateOpen") | |||||
| @SystemControllerLog(description = "消息验证模板-打开/关闭发送") | |||||
| public ResultData updateOpen(@RequestBody WxMsgValidationcodeModel wxMsgValidationcodeModel) { | |||||
| logger.debug("[" + getIpAddr() + "] WxMsgValidationcodeModelController::updateOpen"); | |||||
| wxMsgValidationcodeModelService.update(wxMsgValidationcodeModel); | |||||
| return new ResultData(); | |||||
| } | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name = "id", value = "id", dataType = "String", paramType = "query", required = true) | @ApiImplicitParam(name = "id", value = "id", dataType = "String", paramType = "query", required = true) | ||||
| @SystemControllerLog(description = "消息验证模板-删除") | @SystemControllerLog(description = "消息验证模板-删除") | ||||
| @@ -47,6 +47,9 @@ public class WxMsgValidationcodeModel implements Serializable { | |||||
| @io.swagger.annotations.ApiModelProperty(value="邮箱背景图片",name="emailBgImg") | @io.swagger.annotations.ApiModelProperty(value="邮箱背景图片",name="emailBgImg") | ||||
| private String emailBgImg; | private String emailBgImg; | ||||
| @io.swagger.annotations.ApiModelProperty(value="发送开关 0开1关",name="open") | |||||
| private Integer open; | |||||
| public static enum Field | public static enum Field | ||||
| { | { | ||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | ||||
| @@ -38,7 +38,7 @@ public interface WxMsgValidationcodeModelService { | |||||
| */ | */ | ||||
| void deleteById(String id); | void deleteById(String id); | ||||
| void update(WxMsgValidationcodeModel record); | |||||
| @@ -123,12 +123,9 @@ public class WxMsgValidationcodeModelServiceImpl implements WxMsgValidationcodeM | |||||
| public void deleteById(String id) { | public void deleteById(String id) { | ||||
| wxMsgValidationcodeModelMapper.deleteByPrimaryKey(id); | wxMsgValidationcodeModelMapper.deleteByPrimaryKey(id); | ||||
| } | } | ||||
| @Override | |||||
| public void update(WxMsgValidationcodeModel record) { | |||||
| wxMsgValidationcodeModelMapper.updateByPrimaryKeySelective(record); | |||||
| } | |||||
| } | } | ||||