新增接口
This commit is contained in:
parent
45bae40260
commit
7d95f69474
@ -33,6 +33,19 @@ public class NoticeConfigController extends DefaultBaseController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private INoticeConfigService noticeConfigService;
|
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 = "新增通知公告配置接口")
|
@ApiOperation(value = "新增通知公告配置", notes = "新增通知公告配置接口")
|
||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@PostMapping("save")
|
@PostMapping("save")
|
||||||
@ -107,4 +120,4 @@ public class NoticeConfigController extends DefaultBaseController {
|
|||||||
return new SuccessResultData<>(noticeConfigService.count(params));
|
return new SuccessResultData<>(noticeConfigService.count(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user