package com.vci.ubcs.omd.feign;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.vci.ubcs.omd.entity.Status;
|
import com.vci.ubcs.omd.vo.StatusVO;
|
import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject;
|
import com.vci.ubcs.starter.web.pagemodel.KeyValue;
|
import org.springblade.core.launch.constant.AppConstant;
|
import org.springblade.core.tool.api.R;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* Description: 状态池Feign接口类
|
*
|
* @author LiHang
|
* @date 2023/5/23
|
*/
|
@FeignClient(
|
value = AppConstant.APPLICATION_NAME_OMD,
|
fallback = IRevisionRuleFallback.class
|
)
|
public interface IStatusClient {
|
/**
|
* 前缀
|
*/
|
String API_PREFIX = "/client";
|
/**
|
* 参照列表查询
|
*/
|
String GET_REF_PAGE = API_PREFIX + "/status/get-ref-page";
|
/**
|
* 参照列表查询无分页
|
*/
|
String GET_REF = API_PREFIX + "/status/get-ref";
|
|
/**
|
* 英文名称批量查询
|
*/
|
String GET_NAME_BY_IDS = API_PREFIX + "/status/get-name-by-ids";
|
|
/**
|
* 参照列表查询
|
* @param baseQueryObject 查询条件对象
|
* @return 执行结果
|
*/
|
@GetMapping(GET_REF_PAGE)
|
R<IPage<StatusVO>> getRefPage(BaseQueryObject baseQueryObject);
|
|
/**
|
* 参照查询
|
* @param baseQueryObject 查询条件对象
|
* @return 执行结果
|
*/
|
@GetMapping(GET_REF)
|
R<List<StatusVO>> getRef(BaseQueryObject baseQueryObject);
|
|
/**
|
* 英文查询中文名称
|
* @param ids 英文
|
* @return 查询结果
|
*/
|
@GetMapping(GET_NAME_BY_IDS)
|
R<Map<String,String>> getNameByIds(String ids);
|
|
}
|