fhx
2024-04-16 8bb9c77d61c0d20e8a06e9185bf0a89a16dd6be2
提交 | 用户 | age
751531 1 package com.hz.his.feign.service.sync;
Z 2
3 /**
4  * @Author
5  */
6
f14b52 7 import com.hx.resultTool.Result;
b37d55 8 import net.sf.json.JSONObject;
751531 9 import org.springframework.cloud.openfeign.FeignClient;
2bc0bf 10 import org.springframework.http.MediaType;
751531 11 import org.springframework.web.bind.annotation.PostMapping;
b37d55 12 import org.springframework.web.bind.annotation.RequestBody;
e81a31 13 import org.springframework.web.bind.annotation.RequestParam;
2bc0bf 14 import org.springframework.web.bind.annotation.RequestPart;
A 15 import org.springframework.web.multipart.MultipartFile;
751531 16
Z 17 /**
18  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
19  */
20 @FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-user")
21 public interface SyncUserService {
22
23     /**
24      * 根据用户id同步用户基本信息,订单信息,可划扣信息,已划扣信息
2bc0bf 25      * @param userId 用户id
A 26      * @return 返回
751531 27      */
0f5ea3 28     @PostMapping(value = "/user/consumption/data/list")
e81a31 29     Result userList(@RequestParam("userId") String userId);
2bc0bf 30
751531 31     /**
Z 32      * 根据用户id同步用户基本信息
2bc0bf 33      * @param userId 用户id
A 34      * @return 返回
751531 35      */
0f5ea3 36     @PostMapping(value = "/sync/user/syncUserById")
e81a31 37     Result syncUserById(@RequestParam("userId") String userId);
b37d55 38
Z 39     /** 主动同步创建顾客到his - 修改用户ciq和会员等级*/
40     @PostMapping("/sync/user/updateMembership")
41     Result updateMembership(@RequestBody JSONObject jsonObject);
42
2bc0bf 43     /** 校验图片是否符合商汤要求*/
A 44     @PostMapping(value = "/sync/user/recognition/quality", consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})
45     Result syncUserRecognitionQuality(@RequestPart MultipartFile file);
751531 46 }