mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 04:47:11 +08:00
Merge pull request #1 from ross-dev2024/fix/local-dev-sql-script
[fix] 获取字典类型的数据项API getDictOptions
This commit is contained in:
commit
21fcd02ed2
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user