package com.ytpm.service.impl;

import com.github.pagehelper.PageInfo;
import com.ytpm.agent.view.AgentDictView;
import com.ytpm.dao.AgentDictMapper;
import com.ytpm.general.ResultTable;
import com.ytpm.service.AgentCommonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AgentCommonServiceImpl implements AgentCommonService {

    @Resource
    private AgentDictMapper dictMapper;

    /**
     * 查询字典数据列表
     */
    @Override
    public ResultTable<AgentDictView> dictList() {
        return ResultTable.resultTableOk(new PageInfo<AgentDictView>(dictMapper.selectDictList()));
    }
}
