package com.zt.plat.module.api;

import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.module.api.dto.AccountDTO;
import com.zt.plat.module.api.dto.ElementDTO;
import com.zt.plat.module.api.dto.MaterialOtherDTO;
import com.zt.plat.module.base.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - base")
public interface BaseApi {

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

    @GetMapping(PREFIX + "/getAccountNoPage")
    @Operation(summary = "账户条款数据不分页查询")
    List<AccountDTO> getAccountNoPage(AccountDTO respVO);

    @GetMapping(PREFIX + "/getMaterialOtherNoPage")
    @Operation(summary = "物料拓展关系数据不分页查询")
    List<MaterialOtherDTO> getMaterialOtherNoPage(MaterialOtherDTO respVO);

    @GetMapping(PREFIX + "/getElementNoPage")
    @Operation(summary = "金属元素数据不分页查询")
    CommonResult<List<ElementDTO>> getElementNoPage();
}
