|
|
|
@@ -9,6 +9,7 @@ import com.iformall.domain.po.WxMsgValidationcodeModel; |
|
|
|
import com.iformall.service.WxMsgValidationcodeModelService; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@@ -22,6 +23,7 @@ public class WxMsgValidationcodeModelController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private WxMsgValidationcodeModelService wxMsgValidationcodeModelService; |
|
|
|
|
|
|
|
@ApiOperation("消息模板-列表") |
|
|
|
@GetMapping("list") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true), |
|
|
|
@@ -35,6 +37,7 @@ public class WxMsgValidationcodeModelController extends BaseController { |
|
|
|
return new ResultData(page); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("消息模板-添加") |
|
|
|
@PostMapping("add") |
|
|
|
@SystemControllerLog(description = "消息验证模板-添加") |
|
|
|
public ResultData add(@RequestBody WxMsgValidationcodeModel wxMsgValidationcodeModel) { |
|
|
|
@@ -45,6 +48,7 @@ public class WxMsgValidationcodeModelController extends BaseController { |
|
|
|
return wxMsgValidationcodeModelService.saveOrUpdate(wxMsgValidationcodeModel); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("消息模板-更新") |
|
|
|
@PostMapping("update") |
|
|
|
@SystemControllerLog(description = "消息验证模板-更新") |
|
|
|
public ResultData update(@RequestBody WxMsgValidationcodeModel wxMsgValidationcodeModel) { |
|
|
|
@@ -53,6 +57,7 @@ public class WxMsgValidationcodeModelController extends BaseController { |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("消息模板-打开/关闭发送") |
|
|
|
@PostMapping("updateOpen") |
|
|
|
@SystemControllerLog(description = "消息验证模板-打开/关闭发送") |
|
|
|
public ResultData updateOpen(@RequestBody WxMsgValidationcodeModel wxMsgValidationcodeModel) { |
|
|
|
@@ -61,6 +66,7 @@ public class WxMsgValidationcodeModelController extends BaseController { |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("消息模板-删除") |
|
|
|
@GetMapping("/del") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "String", paramType = "query", required = true) |
|
|
|
@SystemControllerLog(description = "消息验证模板-删除") |
|
|
|
@@ -70,6 +76,7 @@ public class WxMsgValidationcodeModelController extends BaseController { |
|
|
|
return new ResultData(Result.SUCCESS, "删除成功", null); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("消息模板-查询") |
|
|
|
@GetMapping("/findById") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "String", paramType = "query", required = true) |
|
|
|
@SystemControllerLog(description = "消息验证模板-查询") |
|
|
|
|