package com.yd.csf.api.service.impl;

import com.yd.csf.api.service.ApiAgentManageRelationService;
import com.yd.csf.feign.dto.agentmanagerelation.ApiAgentManageUserDTO;
import com.yd.csf.service.service.IAgentManageRelationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class ApiAgentManageRelationServiceImpl implements ApiAgentManageRelationService {

    @Resource
    private IAgentManageRelationService iAgentManageRelationService;

    /**
     * 查询用户和管理关系数据
     * @param name 姓名
     * @return
     */
    @Override
    public List<ApiAgentManageUserDTO> queryApiAgentManageUserDTO(String name) {
        return iAgentManageRelationService.queryApiAgentManageUserList(name);
    }
}
