| | |
| | | import com.xcong.farmer.cms.modules.system.dto.*; |
| | | import com.xcong.farmer.cms.modules.system.service.IColumnService; |
| | | import com.xcong.farmer.cms.modules.system.vo.AdminColumnVo; |
| | | import com.xcong.farmer.cms.modules.system.vo.AdminSeeColumnInfoVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | @ApiResponses({@ApiResponse(code = 200, message = "ok", response = AdminColumnVo.class)}) |
| | | @PostMapping(value = "/columnInPage") |
| | | public Result getColumnInPage(@RequestBody @Valid AdminColumnDto adminColumnDto) { |
| | | // log.info("--->{}", SecurityContextHolder.getContext().getAuthentication()); |
| | | return iColumnService.getColumnInPage(adminColumnDto); |
| | | } |
| | | |
| | |
| | | return iColumnService.addColumn(adminAddColumnDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除栏目", notes = "删除栏目") |
| | | @GetMapping(value = "/deleteColumn/{id}") |
| | | public Result deleteColumn(@PathVariable(value = "id") Long id) { |
| | | return iColumnService.deleteColumn(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "查看栏目", notes = "查看栏目") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = AdminSeeColumnInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/seeColumnInfo/{id}") |
| | | public Result seeColumnInfo(@PathVariable(value = "id") Long id) { |
| | | return iColumnService.seeColumnInfo(id); |