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


import com.cf.imes.module.system.api.setting.dto.PackageConfigDTO;
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;

import java.math.BigDecimal;

@FeignClient(name = ApiConstants.NAME) // TODO 晨丰：fallbackFactory =
@Tag(name = "RPC 服务 - 系统配置")
public interface SettingApi {


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


    @GetMapping(PREFIX + "/getUserSetting")
    @Operation(summary = "查看当前用户的配置信息")
    @Parameter(name = "type", description = "配置配型", required = true, example = "1")
    PackageConfigDTO getUserSetting(@RequestParam("type") Integer type);



}
