Merge pull request #117 from ross-dev2024/master

获取字典类型的数据项API调用
This commit is contained in:
Ray Hao 2024-04-03 22:46:33 +08:00 committed by GitHub
commit e0926e931c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,4 +140,14 @@ public class SysDictController {
return Result.judge(result);
}
@Operation(summary = "获取字典类型的数据项")
@GetMapping("/types/{typeCode}/items")
public Result<List<Option>> listDictTypeItems(
@Parameter(description ="字典类型编码") @PathVariable String typeCode
) {
List<Option> list = dictTypeService.listDictItemsByTypeCode(typeCode);
return Result.success(list);
}
}