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

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - 字典独立配置数据")
public interface CategoryDynamicApi {

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

    @PostMapping(PREFIX + "/get")
    @ApiOperation("获得公共字典数据列表")
    R get(@RequestHeader(required = false) Map<String, Object> defaultHeaders,
          @RequestParam(required = false) Map<String, Object> parameters,
          @RequestBody(required = false) Map<String, Object> requestBody);

}
