提交 | 用户 | 时间
|
feab3f
|
1 |
package com.iailab.module.system.api.app; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.module.system.api.app.dto.AppMenuRespDTO; |
|
5 |
import com.iailab.module.system.api.app.dto.AppRespDTO; |
|
6 |
import com.iailab.module.system.enums.ApiConstants; |
|
7 |
import io.swagger.v3.oas.annotations.Operation; |
|
8 |
import io.swagger.v3.oas.annotations.Parameter; |
|
9 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
10 |
import org.springframework.cloud.openfeign.FeignClient; |
|
11 |
import org.springframework.web.bind.annotation.GetMapping; |
|
12 |
import org.springframework.web.bind.annotation.RequestParam; |
|
13 |
|
|
14 |
import javax.servlet.http.HttpServletRequest; |
|
15 |
import java.util.List; |
|
16 |
|
|
17 |
@FeignClient(name = ApiConstants.NAME) |
|
18 |
@Tag(name = "RPC 服务 - 应用菜单") |
|
19 |
public interface AppMenuApi { |
|
20 |
|
|
21 |
String PREFIX = ApiConstants.PREFIX + "/app-menu"; |
|
22 |
|
|
23 |
@GetMapping(PREFIX + "/get-menu") |
|
24 |
@Operation(summary = "获得应用信息") |
|
25 |
@Parameter(name = "id", description = "应用编号", example = "1024", required = true) |
|
26 |
CommonResult<List<AppMenuRespDTO>> getAppMenuList(@RequestParam("id") Long id); |
|
27 |
|
|
28 |
@GetMapping(PREFIX + "/list") |
|
29 |
@Operation(summary = "获得应用菜单列表") |
|
30 |
CommonResult<List<AppRespDTO>> getAppList(); |
|
31 |
|
|
32 |
} |