package cn.ey.biz.module.system.api.dict;

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.api.dict.dto.CategoryDataDTO;
import cn.ey.biz.module.system.api.dict.dto.DictDataRespDTO;
import cn.ey.biz.module.system.api.dict.dto.DictGradeRateRefReqDTO;
import cn.ey.biz.module.system.api.dict.dto.DictGradeRateRefRespDTO;
import cn.ey.biz.module.system.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Collection;
import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - grade-rate")
public interface DictGradeRateRefApi {

    String PREFIX = ApiConstants.PREFIX + "/dict/rate";



    @GetMapping(PREFIX + "/get-detail")
    @ApiOperation("根据字典类型获取全部字典项")
    R<DictGradeRateRefRespDTO> getGradeRateDetail(@RequestBody DictGradeRateRefReqDTO dictGradeRateRefReqDTO);
}
