package com.cf.imes.module.system.api.application;

import com.alibaba.fastjson.JSONObject;
import com.cf.imes.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;

@FeignClient(name = ApiConstants.NAME) // TODO 晨丰：fallbackFactory =
@Tag(name = "RPC 服务 - 应用管理")
public interface ApplicationApi {

    String PREFIX = ApiConstants.PREFIX + "/application";

    @GetMapping(PREFIX + "/login")
    @Operation(summary = "应用登陆")
    @Parameter(name = "organId", description = "组织信息", required = true)
    JSONObject getApplicationByOrganId(@RequestParam("organId") Long organId);
}
