修改Swagger文档方法重名BUG
This commit is contained in:
parent
ed2398e653
commit
1e4bbd9144
|
@ -46,7 +46,7 @@ public class ApiNoticeController extends ApiBaseController {
|
|||
})
|
||||
@ApiOperation("通知公告列表")
|
||||
@GetMapping("/list")
|
||||
public void list(@RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
public void ApiNoticeList(@RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
|
||||
String title, Integer top, String type, String platform) {
|
||||
QueryWrapper<Notice> qw = new QueryWrapper<>();
|
||||
|
@ -75,7 +75,7 @@ public class ApiNoticeController extends ApiBaseController {
|
|||
@ApiOperation("通知公告详情")
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "path", required = true)
|
||||
@GetMapping("/{id}")
|
||||
public void detail(@PathVariable("id") String id) {
|
||||
public void ApiNoticeDetail(@PathVariable("id") String id) {
|
||||
Notice bean = noticeService.getById(id);
|
||||
if (bean == null) {
|
||||
render(Ret.fail("未找到该通知"));
|
||||
|
@ -99,7 +99,7 @@ public class ApiNoticeController extends ApiBaseController {
|
|||
})
|
||||
@ApiOperation("发布公告")
|
||||
@PostMapping("/save")
|
||||
public void save(String title, String content, String noticeDate, Integer top, String coverNames, String coverPaths, String fileNames, String filePaths, String type, String obj) {
|
||||
public void ApiNoticeSave(String title, String content, String noticeDate, Integer top, String coverNames, String coverPaths, String fileNames, String filePaths, String type, String obj) {
|
||||
Notice bean = new Notice();
|
||||
bean.setTitle(title);
|
||||
bean.setContent(content);
|
||||
|
|
Loading…
Reference in New Issue