forked from gzzfw/backEnd/gz-dyh

liyj
2024-09-21 b11d1d772ec69b4846f520d3dfc346b8a1ae53a3
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
package cn.huge.module.client.api;
 
import cn.huge.base.common.bo.ReturnBO;
import cn.huge.module.sys.dto.FileTypeTermsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
 
import java.util.Date;
import java.util.List;
import java.util.Map;
 
/**
 * @title: 系统公共服务微服务调用接口
 * @description: 系统公共服务微服务调用接口
 * @company: hugeinfo
 * @author: liyj
 * @time: 2021-11-05 16:51:48
 * @version: 1.0.0
 */
@FeignClient(name = "dyh-sys")
public interface SysClient {
    /**
     * 附件中心-根据多个所属编号查询附件并根据先根据ownerId再根据附件类型分组
     * @url {ctx}/api/v1/fileInfo/listTypeInfoByOwnerIds?ownerIds=
     * @param term 所属业务编号
     * @return ReturnBO
     */
    @PostMapping("/api/client/fileInfo/listIdTypeInfoByOwnerIdList")
    ReturnBO listTypeInfoByOwnerIdList(@RequestBody Map<String, Object> term);
 
    /**
     * 附件中心-根据多个所属编号查询附件
     * @url {ctx}/api/v1/fileInfo/listInfoByOwnerIdList?ownerIds=
     * @param term 所属业务编号
     * @return ReturnBO
     */
    @PostMapping("/api/client/fileInfo/listInfoByOwnerIdList")
    ReturnBO listInfoByOwnerIdList(@RequestBody Map<String, Object> term);
 
    /**
     * 附件中心-根据多个所属编号查询附件
     * @url {ctx}/api/v1/fileInfo/listInfoByOwnerIdList?ownerIds=
     * @param limitTable 表名
     * @param limitType 时限类型
     * @return ReturnBO
     */
    @GetMapping("/api/client/syTimeLimit/getTimeLimit")
    ReturnBO getTimeLimit(@RequestParam String limitTable, @RequestParam(value = "limitType") String limitType);
 
    /**
     * 获取时限
     * @url {ctx}/api/client/syTimeLimit/getExpireTime?ownerIds=
     * @param computeTime
     * @param limitType
     * @return
     */
    @GetMapping("/api/client/syTimeLimit/getExpireTime")
    ReturnBO getExpireTime(@RequestParam(value = "computeTime") Date computeTime, @RequestParam(value = "limitType") String limitType);
 
    /**
     * 根据条件删除附件关系
     * @url {ctx}/api/v1/fileRelate/removeFileRelate
     * @param fileTypeTermsDTO 条件
     * @return Object
     */
    @PostMapping("/api/client/fileRelate/removeFileRelate")
    ReturnBO removeFileRelate(@RequestBody FileTypeTermsDTO fileTypeTermsDTO);
 
    /**
     * 根据百度地图经纬度获取街道
     * @url {ctx}/api/client/syRegion/getQueAddrByBaiduiLngLat
     * @param lng 经度
     * @param lat 维度
     * @return
     */
    @GetMapping("/api/client/syRegion/getQueAddrByBaiduiLngLat")
    ReturnBO getQueAddrByBaiduiLngLat(@RequestParam(value = "lng") String lng, @RequestParam(value = "lat") String lat);
}