package com.laoxie.auto.api.demo;

import com.zhuchi.zcii.framework.common.pojo.CommonResult;
import com.laoxie.auto.api.demo.dto.DemoRespDTO;
import com.laoxie.auto.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;

/**
 * @description: TODO
 * @author: bony
 * @create: 2024/3/27 10:08
 * @Version 1.0
 **/
@FeignClient(name= ApiConstants.NAME)
@Tag(name = "RPC 服务 - demo")
public interface DemoApi {
    String PREFIX = ApiConstants.PREFIX + "/demo";

    @GetMapping(PREFIX + "/get")
    @Operation(summary = "获得部门信息")
    @Parameter(name = "demo", description = "demo编号", example = "1024", required = true)
    CommonResult<DemoRespDTO> getDemo(@RequestParam("demo") String demo);
}
