package com.vci.ubcs.omd.feign;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.vci.ubcs.omd.vo.BtmTypeVO;
|
import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject;
|
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 org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
|
/**
|
* Description: 业务类型Feign接口类
|
*
|
* @author LiHang
|
* @date 2023/4/24
|
*/
|
@FeignClient(
|
value = AppConstant.APPLICATION_NAME_OMD
|
//fallback = IBtmTypeFallback.class
|
)
|
public interface IBtmTypeClient {
|
|
/**
|
* 前缀
|
*/
|
String API_PREFIX = "/client";
|
/**
|
* 参照列表查询
|
*/
|
String GET_REF_PAGE = API_PREFIX + "/btm-type/get-ref-page";
|
/**
|
* 参照列表查询无分页
|
*/
|
String GET_REF = API_PREFIX + "/btm-type/get-ref";
|
/**
|
* 参照明细
|
*/
|
String GET_DETAIL = API_PREFIX + "/btm-type/get-detail";
|
/**
|
* 英文名称批量查询
|
*/
|
String GET_BY_IDS = API_PREFIX + "/btm-type/get-by-ids";
|
/**
|
* 主键批量查询
|
*/
|
String GET_BY_OIDS = API_PREFIX + "/btm-type/get-by-oids";
|
|
String GET_DEFAULT_ATTR_BY_BTM_ID = API_PREFIX + "/btm-type/get-default-attr-by-btm-id";
|
|
String GET_ALL_ATTR_BY_BTM_ID = API_PREFIX + "/btm-type/get-all-attr-by-btm-id";
|
|
String GET_ALL_ATTR_BY_BTM_OID = API_PREFIX + "/btm-type/get-all-attr-by-btm-oid";
|
|
/**
|
* 获取业务类型详情信息
|
*
|
* @param oid 主键
|
* @return 业务类型详情信息
|
*/
|
@GetMapping(GET_DETAIL)
|
R<BtmTypeVO> getDetail(@RequestParam("oid") String oid);
|
|
/**
|
* 参照列表查询
|
*
|
* @param baseQueryObject 查询条件对象
|
* @return 查询结果
|
*/
|
@PostMapping(GET_REF_PAGE)
|
R<Page<BtmTypeVO>> getRefPage(@RequestBody BaseQueryObject baseQueryObject);
|
|
/**
|
* 参照列表查询
|
* @param baseQueryObject 查询条件对象
|
* @return 查询结果
|
*/
|
@PostMapping(GET_REF)
|
R<List<BtmTypeVO>> getRef(@RequestBody BaseQueryObject baseQueryObject);
|
|
/**
|
* 根据英文名称批量查询对象
|
* @param ids 对象英文名称 但是不能超过1000
|
* @return 业务对象
|
*/
|
@PostMapping(GET_BY_IDS)
|
R<List<BtmTypeVO>> selectByIdCollection(@RequestBody List<String> ids);
|
|
/**
|
* 批量根据主键获取业务类型
|
* @param pkBtmTypeCollection 业务类型主键集合
|
* @return 业务类型列表,如果有不存在的不会返回,全部不存在的则返回空列表
|
*/
|
@PostMapping(GET_BY_OIDS)
|
R<List<BtmTypeVO>> listBtmTypeByOidCollection(@RequestBody List<String> pkBtmTypeCollection);
|
|
/**
|
* 获取业务类型,只有默认字段
|
*
|
* @param btmTypeId 业务类型id
|
* @return 默认字段属性
|
*/
|
@GetMapping(GET_DEFAULT_ATTR_BY_BTM_ID)
|
R<BtmTypeVO> getDefaultAttrByBtmId(@RequestParam("btmTypeId") String btmTypeId);
|
|
/**
|
* 获取业务类型,有所有的字段
|
*
|
* @param btmTypeId 业务类型id
|
* @return 所有字段
|
*/
|
@GetMapping(GET_ALL_ATTR_BY_BTM_ID)
|
R<BtmTypeVO> getAllAttributeByBtmId(@RequestParam("btmTypeId") String btmTypeId);
|
|
/**
|
* 获取业务类型,有所有的字段
|
*
|
* @param btmTypeOid 业务类型主键
|
* @return 所有字段
|
*/
|
@GetMapping(GET_ALL_ATTR_BY_BTM_OID)
|
R<BtmTypeVO> getAllAttributeByBtmOid(@RequestParam("btmTypeOid") String btmTypeOid);
|
}
|