Package com.elitesland.ystdms.sys.feign
Interface SysUdcFeignClient
@FeignClient(name="${yst.service.system:yst-dms2-newsys}",
path="/api/v1/sys/udcs")
public interface SysUdcFeignClient
系统统一数据字典 Feign客户端
-
Method Summary
Modifier and TypeMethodDescriptiongetNameByCode(SysUdcSingleParam param) 通过code获取namegetValueByCode(SysUdcSingleParam param) 通过code获取value通过appCode, udcCode获取value列表获取所有字典通过appCode, udcCode获取value列表mapInBatch(List<SysUdcBatchParam> udcCodes)
-
Method Details
-
listAllUdcs
获取所有字典 -
getNameByCode
通过code获取name -
getValueByCode
通过code获取value -
list
@GetMapping("/{appCode}/{udcCode}/list") ApiResult<List<SysUdcValueDto>> list(@PathVariable("appCode") String appCode, @PathVariable("udcCode") String udcCode) 通过appCode, udcCode获取value列表 -
map
@GetMapping("/{appCode}/{udcCode}/map") ApiResult<Map<String,String>> map(@PathVariable("appCode") String appCode, @PathVariable("udcCode") String udcCode) 通过appCode, udcCode获取value列表 -
mapInBatch
@PostMapping("/mapinbatch") ApiResult<List<SysUdcBatchParam>> mapInBatch(@RequestBody List<SysUdcBatchParam> udcCodes)
-