package com.hz.his.feign.service.sync; /** * @Author */ import com.hx.resultTool.Result; import net.sf.json.JSONObject; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestPart; import org.springframework.web.multipart.MultipartFile; /** * 这里这个name 需è¦å¡«å†™ 请求的æœåŠ¡æ供者的注册到nacos Server上é¢çš„æœåŠ¡å,path 是请求接å£å‰ç¼€ */ @FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-user") public interface SyncUserService { /** * æ ¹æ®ç”¨æˆ·idåŒæ¥ç”¨æˆ·åŸºæœ¬ä¿¡æ¯ï¼Œè®¢å•ä¿¡æ¯ï¼Œå¯åˆ’扣信æ¯ï¼Œå·²åˆ’æ‰£ä¿¡æ¯ * @param userId 用户id * @return 返回 */ @PostMapping(value = "/user/consumption/data/list") Result userList(@RequestParam("userId") String userId); /** * æ ¹æ®ç”¨æˆ·idåŒæ¥ç”¨æˆ·åŸºæœ¬ä¿¡æ¯ * @param userId 用户id * @return 返回 */ @PostMapping(value = "/sync/user/syncUserById") Result syncUserById(@RequestParam("userId") String userId); /** 主动åŒæ¥åˆ›å»ºé¡¾å®¢åˆ°his - 修改用户ciq和会员ç‰çº§*/ @PostMapping("/sync/user/updateMembership") Result updateMembership(@RequestBody JSONObject jsonObject); /** æ ¡éªŒå›¾ç‰‡æ˜¯å¦ç¬¦åˆå•†æ±¤è¦æ±‚*/ @PostMapping(value = "/sync/user/recognition/quality", consumes = {MediaType.MULTIPART_FORM_DATA_VALUE}) Result syncUserRecognitionQuality(@RequestPart MultipartFile file); }