|
|
@@ -0,0 +1,75 @@
|
|
|
+package com.jzg.quotation.summary.client;
|
|
|
+
|
|
|
+import com.jzg.commons.core.page.HttpResult;
|
|
|
+import com.jzg.commons.entity.agreement.po.PtlAgreementAttribution;
|
|
|
+import com.jzg.commons.entity.po.EsmInsCompany;
|
|
|
+import com.jzg.commons.entity.system.vo.SysSystemBusPermsVo;
|
|
|
+import com.jzg.commons.request.RequestSingleParam;
|
|
|
+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;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+@FeignClient(name = "jzg-platform")
|
|
|
+public interface EsmInsCompanyClient {
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取所有保险公司的全路径名称
|
|
|
+ * Key: 公司ID
|
|
|
+ * Value: 总公司/分公司/支公司
|
|
|
+ */
|
|
|
+ @GetMapping("esmInsCompany/getAllCompanyHierarchyPaths")
|
|
|
+ public Map<String, String> getAllCompanyHierarchyPaths();
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据id获取保险公司信息
|
|
|
+ *
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/esmInsCompany/findById")
|
|
|
+ public HttpResult<EsmInsCompany> findById(@RequestParam String id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查找存在协议的保险公司列表
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/esmInsCompany/liveCompanyList")
|
|
|
+ public HttpResult<List<EsmInsCompany>> liveCompanyList();
|
|
|
+
|
|
|
+ @GetMapping("/system/getBusPerms")
|
|
|
+ public HttpResult<SysSystemBusPermsVo> getBusPerms(@RequestParam String systemCode);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户的保司信息
|
|
|
+ *
|
|
|
+ * @param systemCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/system/getUserCompany")
|
|
|
+ public HttpResult<List<EsmInsCompany>> getUserCompany(@RequestParam String systemCode);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取保司账号信息
|
|
|
+ *
|
|
|
+ * @param agreementId 协议id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/manager/attributionTemplate/getAgreementAttribution")
|
|
|
+ public HttpResult<PtlAgreementAttribution> getAgreementAttribution(@RequestParam("agreementId") String agreementId);
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/esmInsCompany/getParentIds")
|
|
|
+ HttpResult getParentIds(@RequestBody List<String> companyIds);
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/esmInsCompany/getTopCompanyId")
|
|
|
+ HttpResult getTopCompanyId(@RequestSingleParam("companyId") String companyId);
|
|
|
+
|
|
|
+}
|