From 8fcf0ece6fdcce2f4f5f21df82d8dcb7940ca3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E8=BE=89?= <2830717623@qq.com> Date: Thu, 21 May 2026 15:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0ymsfeign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mhd/system/api/YmsServiceFeign.java | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 mhd-api/mhd-api-system/src/main/java/com/mhd/system/api/YmsServiceFeign.java diff --git a/mhd-api/mhd-api-system/src/main/java/com/mhd/system/api/YmsServiceFeign.java b/mhd-api/mhd-api-system/src/main/java/com/mhd/system/api/YmsServiceFeign.java new file mode 100644 index 000000000..c74725731 --- /dev/null +++ b/mhd-api/mhd-api-system/src/main/java/com/mhd/system/api/YmsServiceFeign.java @@ -0,0 +1,55 @@ +package com.mhd.system.api; + +import com.mhd.common.core.constant.ServiceNameConstants; +import com.mhd.common.core.domain.entity.R; +import com.mhd.common.core.domain.dto.YmsSysUserDTO; +import com.mhd.system.api.domain.YmsLoginUser; +import com.mhd.system.api.factory.RemoteBmsFeignFallbackFactory; +import com.mhd.system.api.feign.FeignAutoConfiguration; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.*; + +@FeignClient(contextId = "YmsService", value = ServiceNameConstants.YMS_SERVICE,fallbackFactory = RemoteBmsFeignFallbackFactory.class, configuration = FeignAutoConfiguration.class) +public interface YmsServiceFeign { + + /** + * 获取YMS用户基本信息 + * @param szwlUserId 数字物流用户ID + * @return YMS登录用户基本信息 + */ + @GetMapping("/system/user/inner/getYmsUserInfo/{szwlUserId}") + R getYmsUserInfo(@PathVariable("szwlUserId") Long szwlUserId); + + /** + * 获取用户详细信息 + * @param userId 用户ID + * @return 用户信息 + */ + @GetMapping("/system/user/inner/info/{userId}") + R innerGetInfo(@PathVariable("userId") Long userId); + + /** + * 新增用户 + * @param ymsSysUserDTO 用户信息 + * @return 新增结果 + */ + @PostMapping("/system/user/inner/add") + R innerAdd(@RequestBody YmsSysUserDTO ymsSysUserDTO); + + /** + * 修改用户 + * @param ymsSysUserDTO 用户信息 + * @return 修改结果 + */ + @PutMapping("/system/user/inner/edit") + R innerEdit(@RequestBody YmsSysUserDTO ymsSysUserDTO); + + /** + * 删除用户 + * @param userIds 用户ID数组 + * @return 删除结果 + */ + @DeleteMapping("/system/user/inner/remove/{userIds}") + R innerRemove(@PathVariable("userIds") Long[] userIds); + +}