|
|
|
@@ -26,6 +26,7 @@ public class WxMsgValidationcodeModelController extends BaseController { |
|
|
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)}) |
|
|
|
public ResultData list(@ModelAttribute WxMsgValidationcodeModel wxMsgValidationcodeModel, Integer pageNum, Integer pageSize) { |
|
|
|
if (null == wxMsgValidationcodeModel) wxMsgValidationcodeModel = new WxMsgValidationcodeModel(); |
|
|
|
wxMsgValidationcodeModel.setTenantId(getTenantId()); |
|
|
|
final PageInfo<WxMsgValidationcodeModel> page = wxMsgValidationcodeModelService.listAsPage(wxMsgValidationcodeModel, pageNum, pageSize); |
|
|
|
return new ResultData(page); |
|
|
|
} |
|
|
|
@@ -34,7 +35,7 @@ public class WxMsgValidationcodeModelController extends BaseController { |
|
|
|
public ResultData add(@RequestBody WxMsgValidationcodeModel wxMsgValidationcodeModel) { |
|
|
|
//Assert.notNull(wxMsgValidationcodeModel.getName(), "角色名不能为空"); |
|
|
|
//Assert.isTrue(!checkUnique(sysRole.getName(), null), "重复的角色名"); |
|
|
|
|
|
|
|
wxMsgValidationcodeModel.setTenantId(getTenantId()); |
|
|
|
return wxMsgValidationcodeModelService.saveOrUpdate(wxMsgValidationcodeModel); |
|
|
|
} |
|
|
|
|
|
|
|
|