|
@@ -31,21 +31,21 @@ public class SysDictController {
|
|
|
private SysDictService sysDictService;
|
|
|
|
|
|
|
|
|
- @ApiOperation(value = "根据字典类型查询字典项全部列表")
|
|
|
+ @ApiOperation(value = "根据字典编码查询字典项全部列表")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
|
|
|
- @ApiImplicitParam(name = "dictType", value = "字典类型",
|
|
|
+ @ApiImplicitParam(name = "dictCode", value = "字典编码",
|
|
|
dataType = "String", paramType = "query",
|
|
|
required = true)
|
|
|
})
|
|
|
- @GetMapping(value = "/queryDictItemsByType", produces = "application/json;charset=utf-8")
|
|
|
- public Result<List<SysDictItemVO>> queryDictItemsByType(
|
|
|
+ @GetMapping(value = "/queryDictItemsByCode", produces = "application/json;charset=utf-8")
|
|
|
+ public Result<List<SysDictItemVO>> queryDictItemsByCode(
|
|
|
HttpServletRequest request, @RequestHeader(value = "token") String token,
|
|
|
- @RequestParam(name = "dictType", required = true) String dictType
|
|
|
+ @RequestParam(name = "dictCode", required = true) String dictCode
|
|
|
) {
|
|
|
try {
|
|
|
|
|
|
- List<SysDictItemVO> list = this.sysDictService.queryDictItemsByType(dictType);
|
|
|
+ List<SysDictItemVO> list = this.sysDictService.queryDictItemsByCode(dictCode);
|
|
|
return Result.success(list);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|