| | |
| | | import com.vci.ubcs.system.entity.DictBiz; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | String GET_BY_ID = API_PREFIX + "/dict-biz/get-by-id"; |
| | | String GET_VALUE = API_PREFIX + "/dict-biz/get-value"; |
| | | String GET_LIST = API_PREFIX + "/dict-biz/get-list"; |
| | | String CHECK_VALUE = API_PREFIX + "/dict-biz/check-value"; |
| | | |
| | | /** |
| | | * 获取字典实体 |
| | |
| | | @GetMapping(GET_LIST) |
| | | R<List<DictBiz>> getList(@RequestParam("code") String code); |
| | | |
| | | /** |
| | | * 检查字典是否存在,存在即返回,不存在新增 |
| | | * |
| | | * @param dictBiz 字典数据 |
| | | * @return |
| | | */ |
| | | @GetMapping(CHECK_VALUE) |
| | | R getCheck(@Valid @RequestBody DictBiz dictBiz); |
| | | |
| | | } |