新增接口

This commit is contained in:
LiuY 2023-10-11 16:42:47 +08:00
parent 45bae40260
commit 7d95f69474

View File

@ -33,6 +33,19 @@ public class NoticeConfigController extends DefaultBaseController {
@Autowired
private INoticeConfigService noticeConfigService;
@ApiOperation(value = "菜单显示的栏目配置列表", notes = "菜单显示的栏目配置列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listswitchview")
public List<NoticeConfigDTO> listSwitchView(@RequestHeader("token") String token) {
Map<String, Object> params = requestParams();
return noticeConfigService.listSwitchView(params);
}
@ApiOperation(value = "新增通知公告配置", notes = "新增通知公告配置接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("save")
@ -107,4 +120,4 @@ public class NoticeConfigController extends DefaultBaseController {
return new SuccessResultData<>(noticeConfigService.count(params));
}
}
}