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 java.util.List;
|
|
@FeignClient(name = ApiConstants.NAME)
|
@Tag(name = "RPC 服务 - 应用菜单")
|
public interface AppApi {
|
|
String PREFIX = ApiConstants.PREFIX + "/app";
|
|
// @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();
|
|
}
|