|
@@ -0,0 +1,28 @@
|
|
|
+package com.zjugis.module.system.api.dept;
|
|
|
+
|
|
|
+import com.zjugis.framework.common.pojo.CommonResult;
|
|
|
+import com.zjugis.module.system.api.dept.dto.DeptLeaderRespDTO;
|
|
|
+import com.zjugis.module.system.enums.ApiConstants;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.cloud.openfeign.FeignClient;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author 陈俊
|
|
|
+ * @Date 2024/2/22 9:39
|
|
|
+ * @Version 1.0
|
|
|
+ */
|
|
|
+@FeignClient(name = ApiConstants.NAME)
|
|
|
+@Tag(name = "RPC 服务 - 部门分管领导")
|
|
|
+public interface DeptLeaderApi {
|
|
|
+
|
|
|
+ String PREFIX = ApiConstants.PREFIX + "/deptLeader";
|
|
|
+
|
|
|
+ @GetMapping(PREFIX + "/get-by-dept-id")
|
|
|
+ @Operation(summary = "根据部门ID获取部门分管领导")
|
|
|
+ @Parameter(name = "id", description = "部门编号", example = "100", required = true)
|
|
|
+ CommonResult<DeptLeaderRespDTO> getDeptLeaderByDeptId(@RequestParam("id") String deptId);
|
|
|
+}
|