Commit 1fa0cd82 authored by daniel's avatar daniel

perf(richText): 自助服务apidoc优化

parent da4eb5d4
...@@ -22,14 +22,14 @@ import java.util.List; ...@@ -22,14 +22,14 @@ import java.util.List;
@Log4j2 @Log4j2
@RestController @RestController
@RequestMapping(value = "gk/richText") @RequestMapping(value = "gk/richText")
@Api(value = "自助服务详情", tags = "自助服务详情") @Api(value = "自助服务", tags = "自助服务")
@ApiSort(10) @ApiSort(10)
public class RichTextController { public class RichTextController {
@Resource @Resource
private RichTextService richTextService; private RichTextService richTextService;
@PostMapping(value = "/add") @PostMapping(value = "/add")
@ApiOperation(value = "自助服务管理新增", notes = "自助服务管理新增", tags = "自助服务管理新增") @ApiOperation(value = "自助服务管理新增", notes = "自助服务管理新增", tags = "自助服务")
public Result addRichText(@RequestBody RichText richText) { public Result addRichText(@RequestBody RichText richText) {
int result = richTextService.add(richText); int result = richTextService.add(richText);
if (result != 1) { if (result != 1) {
...@@ -39,7 +39,7 @@ public class RichTextController { ...@@ -39,7 +39,7 @@ public class RichTextController {
} }
@PostMapping(value = "/update") @PostMapping(value = "/update")
@ApiOperation(value = "自助服务管理修改", notes = "自助服务管理修改", tags = "自助服务管理修改") @ApiOperation(value = "自助服务管理修改", notes = "自助服务管理修改", tags = "自助服务")
public Result updateRichText(@RequestBody RichText richText) { public Result updateRichText(@RequestBody RichText richText) {
int result = richTextService.update(richText); int result = richTextService.update(richText);
if (result != 1) { if (result != 1) {
...@@ -49,7 +49,7 @@ public class RichTextController { ...@@ -49,7 +49,7 @@ public class RichTextController {
} }
@PostMapping(value = "/delete") @PostMapping(value = "/delete")
@ApiOperation(value = "自助服务管理删除", notes = "自助服务管理删除", tags = "自助服务管理删除") @ApiOperation(value = "自助服务管理删除", notes = "自助服务管理删除", tags = "自助服务")
public Result deleteRichText(@RequestBody RichText richText) { public Result deleteRichText(@RequestBody RichText richText) {
int result = richTextService.delete(richText); int result = richTextService.delete(richText);
if (result != 1) { if (result != 1) {
...@@ -59,7 +59,7 @@ public class RichTextController { ...@@ -59,7 +59,7 @@ public class RichTextController {
} }
@GetMapping(value = "/detail/{id}") @GetMapping(value = "/detail/{id}")
@ApiOperation(value = "自助服务管理主键检索", notes = "自助服务管理主键检索", tags = "自助服务管理主键检索") @ApiOperation(value = "自助服务管理主键检索", notes = "自助服务管理主键检索", tags = "自助服务")
public Result<RichText> getRichText(@PathVariable("id") String id) { public Result<RichText> getRichText(@PathVariable("id") String id) {
RichText richText = richTextService.detail(id); RichText richText = richTextService.detail(id);
if (richText == null) { if (richText == null) {
...@@ -69,7 +69,7 @@ public class RichTextController { ...@@ -69,7 +69,7 @@ public class RichTextController {
} }
@PostMapping(value = "/page/{page}/{pageSize}") @PostMapping(value = "/page/{page}/{pageSize}")
@ApiOperation(value = "自助服务管理条件检索", notes = "自助服务管理条件检索", tags = "自助服务管理条件检索") @ApiOperation(value = "自助服务管理条件检索", notes = "自助服务管理条件检索", tags = "自助服务")
public Result<List<RichText>> getRichTextList(@RequestBody RichTextBean richTextBean, @PathVariable("page") int page, @PathVariable("pageSize") int pageSize) { public Result<List<RichText>> getRichTextList(@RequestBody RichTextBean richTextBean, @PathVariable("page") int page, @PathVariable("pageSize") int pageSize) {
List<RichText> richTextList = richTextService.getPage(richTextBean,page-1,pageSize); List<RichText> richTextList = richTextService.getPage(richTextBean,page-1,pageSize);
...@@ -80,7 +80,7 @@ public class RichTextController { ...@@ -80,7 +80,7 @@ public class RichTextController {
@GetMapping(value = "/qrCode/{id}") @GetMapping(value = "/qrCode/{id}")
@ApiOperation(value = "生成签到二维码", notes = "生成签到二维码", tags = "生成签到二维码") @ApiOperation(value = "生成签到二维码", notes = "生成签到二维码", tags = "自助服务")
public void getRichTextQrCode(@PathVariable("id") int id, HttpServletResponse response) { public void getRichTextQrCode(@PathVariable("id") int id, HttpServletResponse response) {
log.info("Generating QR Code for ID: " + id); log.info("Generating QR Code for ID: " + id);
response.setContentType("image/png"); response.setContentType("image/png");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment