接口 SysUdcFeignClient


@FeignClient(name="${yst.service.system:yst-dms2-newsys}", path="/api/v1/sys/udcs", primary=false) public interface SysUdcFeignClient
系统统一数据字典 Feign客户端
  • 方法详细资料

    • listAllUdcs

      @GetMapping("/all") Object listAllUdcs()
      获取所有字典
    • getNameByCode

      @PostMapping("/namebycode") ApiResult<String> getNameByCode(@RequestBody SysUdcSingleParam param)
      通过code获取name
    • getValueByCode

      @PostMapping("/valuebycode") ApiResult<String> getValueByCode(@RequestBody SysUdcSingleParam param)
      通过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)
    • list

      @GetMapping("/{appCode}/{udcCode}/{parentUdcValueCode}/list") ApiResult<List<SysUdcValueDto>> list(@PathVariable("appCode") String appCode, @PathVariable("udcCode") String udcCode, @PathVariable("parentUdcValueCode") String parentUdcValueCode)
    • get

      @GetMapping("/getOne") ApiResult<SysUdcDTO> get(@NotBlank(message="\u5e94\u7528\u7f16\u7801\u4e3a\u7a7a") @RequestParam(name="appCode") @NotBlank(message="\u5e94\u7528\u7f16\u7801\u4e3a\u7a7a") String appCode, @NotBlank(message="UDC\u7f16\u7801\u4e3a\u7a7a") @RequestParam(name="udcCode") @NotBlank(message="UDC\u7f16\u7801\u4e3a\u7a7a") String udcCode)
    • getList

      @PostMapping("/getList") ApiResult<List<SysUdcDTO>> getList(@NotBlank(message="\u5e94\u7528\u7f16\u7801\u4e3a\u7a7a") @RequestParam(name="appCode") @NotBlank(message="\u5e94\u7528\u7f16\u7801\u4e3a\u7a7a") String appCode, @NotEmpty @RequestBody @NotEmpty Set<String> udcCodes)