| | |
| | | package com.lf.server.controller.data; |
| | | |
| | | |
| | | import com.lf.server.controller.BaseController; |
| | | import com.lf.server.aspect.SysLog; |
| | | import com.lf.server.controller.all.BaseController; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.data.DictEntity; |
| | | import com.lf.server.service.data.DictService; |
| | |
| | | * @author SWS + WWW |
| | | * @date 2022-09.26 |
| | | */ |
| | | @Api(tags = "字典管理") |
| | | @Api(tags = "数据管理\\字典管理") |
| | | @RestController |
| | | @RequestMapping("/dict") |
| | | public class DictController extends BaseController { |
| | | @Autowired |
| | | DictService dictService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询记录数") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", required = false, example = "sys_dict") |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "分页查询") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "sys_dict"), |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "分页查询并返回记录数") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "sys_dict"), |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入字典") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dictEntity", value = "字典实体类", dataType = "com.lf.server.entity.data.DictEntity", paramType = "body", example = "") |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入多条字典") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dictEntity", value = "字典实体类集合", dataType = "List<DictEntity>", paramType = "body", example = "") |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "删除一条字典") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "字典ID", dataType = "Integer", paramType = "query", example = "1") |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "删除多条字典") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "字典ID集合", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "更新一条字典") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dictEntity", value = "字典ID集合", dataType = "DictEntity", paramType = "body", example = "") |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据ID查询字典") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "字典ID", dataType = "Integer", paramType = "query", example = "1") |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询所有字典") |
| | | @GetMapping(value = "/selectDictAll") |
| | | public ResponseMsg<List<DictEntity>> selectDictAll() { |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询字典中的所有表名") |
| | | @GetMapping(value = "/selectDictTab") |
| | | public ResponseMsg<List<DictEntity>> selectDictTab() { |