From b82ba2a29aa9ee181c707677157d8057fff68450 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期一, 16 十二月 2024 13:50:33 +0800 Subject: [PATCH] 预测项数据图表查询bug,不能从缓存中查item,要最新的运行时间 --- iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/user/AdminUserApi.java | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/user/AdminUserApi.java b/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/user/AdminUserApi.java index 2f632ff..42710d2 100644 --- a/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/user/AdminUserApi.java +++ b/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/user/AdminUserApi.java @@ -1,6 +1,7 @@ package com.iailab.module.system.api.user; import cn.hutool.core.convert.Convert; +import com.fhs.core.trans.anno.AutoTrans; import com.iailab.framework.common.pojo.CommonResult; import com.iailab.framework.common.util.collection.CollectionUtils; import com.iailab.module.system.api.user.dto.AdminUserRespDTO; @@ -11,13 +12,16 @@ import io.swagger.v3.oas.annotations.Operation; 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 static com.iailab.module.system.api.user.AdminUserApi.PREFIX; import java.util.*; -@FeignClient(name = ApiConstants.NAME) // TODO iailab:fallbackFactory = +@FeignClient(name = ApiConstants.NAME) @Tag(name = "RPC 服务 - 管理员用户") -//@AutoTrans(namespace = PREFIX, fields = {"nickname"}) // TODO @iailab:需要 easy-trans 做个 bugfix +@AutoTrans(namespace = PREFIX, fields = {"nickname"}) // TODO @iailab:需要 easy-trans 做个 bugfix public interface AdminUserApi extends AutoTransable<AdminUserRespDTO> { String PREFIX = ApiConstants.PREFIX + "/user"; @@ -86,4 +90,8 @@ return getUser(Convert.toLong(id)).getCheckedData(); } + @Operation(summary = "Feign接口-保存或者修改用户") + @PostMapping("/api/feign/users/saveOrUpdate") + void saveOrUpdateUserInfo(@RequestBody AdminUserRespDTO userRespDTO); + } -- Gitblit v1.9.3