package com.ruoyi.ext.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.ext.api.domain.SysObjDictType;
import com.ruoyi.ext.api.factory.RemoteDictDataFallbackFactory;
import com.ruoyi.ext.api.factory.RemoteDictTypeFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 对象字典服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "RemoteDictTypeService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteDictTypeFallbackFactory.class)
public interface RemoteDictTypeService
{
    /**
     * 根据对象字典查询数据信息
     * @param dictType 对象字典
     */
    @GetMapping(value = "/dict/type/objdict")
    public AjaxResult objdict(SysObjDictType dictType, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
