This commit is contained in:
wangliwen 2022-04-26 19:33:24 +08:00
parent d533df53c0
commit 444b96b312
1 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ import java.util.Map;
* @since 1.0 2022-04-26 * @since 1.0 2022-04-26
*/ */
@RestController @RestController
@RequestMapping("demandComment/tdemandcomment") @RequestMapping("demandComment")
@Api(tags = "需求评论") @Api(tags = "需求评论")
public class TDemandCommentController { public class TDemandCommentController {
@Autowired @Autowired
@ -44,7 +44,7 @@ public class TDemandCommentController {
@Autowired @Autowired
private TDemandDataService tDemandDataService; private TDemandDataService tDemandDataService;
@GetMapping("page") @GetMapping("/page")
@ApiOperation("分页") @ApiOperation("分页")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码从1开始", paramType = "query", required = true, dataType = "int"), @ApiImplicitParam(name = Constant.PAGE, value = "当前页码从1开始", paramType = "query", required = true, dataType = "int"),
@ -60,7 +60,7 @@ public class TDemandCommentController {
return new Result<PageData<TDemandCommentDTO>>().ok(page); return new Result<PageData<TDemandCommentDTO>>().ok(page);
} }
@GetMapping("{id}") @GetMapping("/{id}")
@ApiOperation("信息") @ApiOperation("信息")
// @RequiresPermissions("demandComment:tdemandcomment:info") // @RequiresPermissions("demandComment:tdemandcomment:info")
public Result<TDemandCommentDTO> get(@PathVariable("id") Long id) { public Result<TDemandCommentDTO> get(@PathVariable("id") Long id) {
@ -115,7 +115,7 @@ public class TDemandCommentController {
return new Result(); return new Result();
} }
@GetMapping("export") @GetMapping("/export")
@ApiOperation("导出") @ApiOperation("导出")
@LogOperation("导出") @LogOperation("导出")
@RequiresPermissions("demandComment:tdemandcomment:export") @RequiresPermissions("demandComment:tdemandcomment:export")