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