| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.KeywordEntity; |
| | | import com.dg.core.service.IKeywordService; |
| | | import com.dg.core.util.TableDataInfo; |
| | |
| | | */ |
| | | @ApiOperation("关键词列表接口") |
| | | @GetMapping("/getlist") |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize) |
| | | { |
| | |
| | | */ |
| | | @ApiOperation("关键词详情接口") |
| | | @GetMapping("/getData") |
| | | @Authorization |
| | | public ResultData selectConfigData(@RequestParam(value = "id",required = false) String id, |
| | | @RequestParam(value = "name",required = false) String name) |
| | | { |
| | |
| | | */ |
| | | @ApiOperation("关键词添加接口") |
| | | @PostMapping("/add") |
| | | @Authorization |
| | | public ResultData insertConfig(@RequestBody KeywordEntity entity) |
| | | { |
| | | KeywordEntity enti=iKeywordService.selectConfigData("",entity.getName()); |
| | |
| | | */ |
| | | @ApiOperation("关键词编辑接口") |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody KeywordEntity entity) |
| | | { |
| | | return toAjax(iKeywordService.updateConfig(entity)); |
| | |
| | | */ |
| | | @ApiOperation("关键词删除接口") |
| | | @DeleteMapping("/delete") |
| | | @Authorization |
| | | public ResultData deleteConfigById(String Id) |
| | | { |
| | | return toAjax(iKeywordService.deleteConfigById(Id)); |