package com.djhk.common.api;

import com.djhk.common.constant.SecurityConstants;
import com.djhk.common.core.domain.R;
import com.djhk.common.core.domain.entity.SysDictData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * 数据字典
 * @author jiachengshuai
 * @date 2022/8/29 16:34:53
 * @version 1.0
 */
//@FeignClient(contextId = "remoteDictDataService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteDictDataService
{

    /**
     * 根据字典类型查询字典数据信息
     *
     * @param dictType 用户名
     * @return 结果
     */
    @GetMapping("/dict/data/selectDictDataByType/{dictType}")
    public R<List<SysDictData>> getDictDataByType(@PathVariable("dictType") String dictType, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
