From 2780e6717df31ee605dd8ce525afcb43914ca2de Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 06 一月 2025 13:25:00 +0800
Subject: [PATCH] writePointRealValue打印异常

---
 iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/permission/RoleApi.java |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/permission/RoleApi.java b/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/permission/RoleApi.java
index 0c13f44..e1fec28 100644
--- a/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/permission/RoleApi.java
+++ b/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/permission/RoleApi.java
@@ -1,17 +1,20 @@
 package com.iailab.module.system.api.permission;
 
 import com.iailab.framework.common.pojo.CommonResult;
+import com.iailab.module.system.api.permission.dto.RoleDTO;
 import com.iailab.module.system.enums.ApiConstants;
 import io.swagger.v3.oas.annotations.tags.Tag;
 import io.swagger.v3.oas.annotations.Parameter;
 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 java.util.Collection;
 
-@FeignClient(name = ApiConstants.NAME) // TODO iailab:fallbackFactory =
+@FeignClient(name = ApiConstants.NAME)
 @Tag(name = "RPC 服务 - 角色")
 public interface RoleApi {
 
@@ -22,4 +25,11 @@
     @Parameter(name = "ids", description = "角色编号数组", example = "1,2", required = true)
     CommonResult<Boolean> validRoleList(@RequestParam("ids") Collection<Long> ids);
 
+    @Operation(summary = "Feign接口-保存或者修改角色")
+    @PostMapping("/api/feign/roles/save")
+    void saveRoleInfo(@RequestBody RoleDTO roleDTO);
+
+    @Operation(summary = "Feign接口-根据角色名称查询角色")
+    @GetMapping("/api/feign/roles/getRoleByName")
+    RoleDTO getRoleByName(@RequestParam("name") String name);
 }
\ No newline at end of file

--
Gitblit v1.9.3