Merge pull request #1 from ross-dev2024/fix/local-dev-sql-script

[fix] 获取字典类型的数据项API getDictOptions
This commit is contained in:
ross-dev 2024-03-28 22:57:02 +09:00 committed by GitHub
commit 21fcd02ed2
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);
}
}