ludc
2023-06-13 729db9dd93f8884a8f1f0b32a4462708f858ea9b
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
package com.vci.ubcs.omd.feign;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vci.ubcs.omd.vo.LinkTypeVO;
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/6/13
 */
@FeignClient(
    value = AppConstant.APPLICATION_NAME_OMD,
    fallback = ILinkTypeFallback.class
)
public interface ILinkTypeClient {
    /**
     * 前缀
     */
    String API_PREFIX = "/client";
 
    /**
     * 分页参照查询
     */
    String GET_REF_PAGE =API_PREFIX + "/link-type/get-ref-page";
 
    /**
     * 参照列表查询无分页
     */
    String GET_REF = API_PREFIX + "/link-type/get-ref";
    /**
     * 参照明细
     */
    String GET_DETAIL = API_PREFIX + "/link-type/get-detail";
    /**
     * 英文名称批量查询
     */
    String GET_BY_IDS = API_PREFIX + "/link-type/get-by-ids";
    /**
     * 主键批量查询
     */
    String GET_BY_OIDS = API_PREFIX + "/link-type/get-by-oids";
    /**
     * 按链接类型英文名称获取默认字段
     */
    String GET_DEFAULT_ATTR_BY_LINK_ID = API_PREFIX + "/link-type/get-default-attr-by-link-id";
 
    /**
     * 按链接类型英文名称获取全部字段
     */
    String GET_ALL_ATTR_BY_LINK_ID = API_PREFIX + "/link-type/get-all-attr-by-link-id";
 
    /**
     * 按链接类型主键获取全部字段
     */
    String GET_ALL_ATTR_BY_LINK_OID = API_PREFIX + "/link-type/get-all-attr-by-link-oid";
 
    /**
     * 获取业务类型详情信息
     *
     * @param oid 主键
     * @return 业务类型详情信息
     */
    @GetMapping(GET_DETAIL)
    R<LinkTypeVO> getDetail(@RequestParam("oid") String oid);
 
    /**
     * 参照列表查询
     *
     * @param baseQueryObject 查询条件对象
     * @return 查询结果
     */
    @PostMapping(GET_REF_PAGE)
    R<Page<LinkTypeVO>> getRefPage(@RequestBody BaseQueryObject baseQueryObject);
 
    /**
     * 参照列表查询
     * @param baseQueryObject 查询条件对象
     * @return 查询结果
     */
    @PostMapping(GET_REF)
    R<List<LinkTypeVO>> getRef(@RequestBody BaseQueryObject baseQueryObject);
 
    /**
     * 根据英文名称批量查询对象
     * @param ids 对象英文名称 但是不能超过1000
     * @return 业务对象
     */
    @PostMapping(GET_BY_IDS)
    R<List<LinkTypeVO>> selectByIdCollection(@RequestBody List<String> ids);
 
    /**
     * 批量根据主键获取业务类型
     * @param pkLinkTypeCollection 业务类型主键集合
     * @return 业务类型列表,如果有不存在的不会返回,全部不存在的则返回空列表
     */
    @PostMapping(GET_BY_OIDS)
    R<List<LinkTypeVO>> listLinkTypeByOidCollection(@RequestBody List<String> pkLinkTypeCollection);
 
    /**
     * 获取业务类型,只有默认字段
     *
     * @param linkTypeId 业务类型id
     * @return 默认字段属性
     */
    @GetMapping(GET_DEFAULT_ATTR_BY_LINK_ID)
    R<LinkTypeVO> getDefaultAttrByLinkId(@RequestParam("linkTypeId") String linkTypeId);
 
    /**
     * 获取业务类型,有所有的字段
     *
     * @param linkTypeId 业务类型id
     * @return 所有字段
     */
    @GetMapping(GET_ALL_ATTR_BY_LINK_ID)
    R<LinkTypeVO> getAllAttributeByLinkId(@RequestParam("linkTypeId") String linkTypeId);
 
    /**
     * 获取业务类型,有所有的字段
     *
     * @param linkTypeOid 业务类型主键
     * @return 所有字段
     */
    @GetMapping(GET_ALL_ATTR_BY_LINK_OID)
    R<LinkTypeVO> getAllAttributeByLinkOid(@RequestParam("linkTypeOid") String linkTypeOid);
}