lihang
2023-05-23 1d91a31301494b9f0b7e17b3eef280f8d54e2806
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package com.vci.ubcs.omd.feign;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vci.ubcs.omd.vo.RevisionRuleVO;
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.RequestParam;
 
import java.util.Collection;
import java.util.List;
 
/**
 * Description:版本规则Feign接口类
 *
 * @author LiHang
 * @date 2023/5/22
 */
@FeignClient(
    value = AppConstant.APPLICATION_NAME_OMD,
    fallback = IRevisionRuleFallback.class
)
public interface IRevisionRuleClient {
 
    /**
     * 前缀
     */
    String API_PREFIX = "/client";
    /**
     * 参照列表查询
     */
    String GET_REF_PAGE = API_PREFIX + "/revision-rule/get-ref-page";
    /**
     * 参照列表查询无分页
     */
    String GET_REF = API_PREFIX + "/revision-rule/get-ref";
    /**
     * 参照明细
     */
    String GET_DETAIL = API_PREFIX + "/revision-rule/get-detail";
    /**
     * 英文名称批量查询
     */
    String GET_BY_IDS = API_PREFIX + "/revision-rule/get-by-ids";
    /**
     * 主键批量查询
     */
    String GET_BY_OIDS = API_PREFIX + "/revision-rule/get-by-oids";
 
    /**
     * 获取版本规则详情信息
     *
     * @param oid 主键
     * @return 版本规则详情信息
     */
    @GetMapping(GET_DETAIL)
    R<RevisionRuleVO> getDetail(@RequestParam("oid") String oid);
 
    /**
     * 参照列表查询
     * @param baseQueryObject 查询条件
     * @return 查询结果
     */
    @GetMapping(GET_REF_PAGE)
    R<IPage<RevisionRuleVO>> getRefPage(@RequestParam("baseQueryObject") BaseQueryObject baseQueryObject);
 
    /**
     * 参照列表查询
     * @param baseQueryObject 查询条件
     * @return 查询结果
     */
    @GetMapping(GET_REF)
    R<List<RevisionRuleVO>> getRef(@RequestParam("baseQueryObject")BaseQueryObject baseQueryObject);
 
    /**
     * 根据英文名称批量查询对象
     * @param ids 对象英文名称 但是不能超过1000
     * @return 业务对象
     */
    @GetMapping(GET_BY_IDS)
    R<List<RevisionRuleVO>> selectByIdCollection(List<String> ids);
 
    /**
     * 批量根据主键获取版本规则
     * @param pkBtmTypeCollection 版本规则主键集合
     * @return 版本规则列表,如果有不存在的不会返回,全部不存在的则返回空列表
     */
    @GetMapping(GET_BY_OIDS)
    R<List<RevisionRuleVO>> listBtmTypeByOidCollection(Collection<String> pkBtmTypeCollection);
}