package com.ytpm.controller;


import com.ytpm.agent.view.AgentDictView;
import com.ytpm.general.ResultTable;
import com.ytpm.service.AgentCommonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "代理商管理系统公共数据模块")
@RestController
@RequestMapping("/common")
public class AgentCommonController {

    @Resource
    private AgentCommonService agentCommonService;

    /**
     * 查询字典数据列表
     */
    @ApiOperation(value = "查询字典数据列表")
    @GetMapping("/dictList")
    public ResultTable<AgentDictView> dictList(){
        return agentCommonService.dictList();
    }
}
