package com.buy507.mall.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.buy507.mall.common.api.CommonResult;
import com.buy507.mall.model.DmsDistributionDictionary;
import com.buy507.mall.service.DmsDistributionDictionaryService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(tags = "DmsDistributionDictionaryController", description = "分销参数管理")
@RequestMapping("/distribution/dictionary")
public class DmsDistributionDictionaryController {
	
	@Autowired
	private DmsDistributionDictionaryService service;
	
	@ApiOperation("查询分销字典信息")
    @RequestMapping(value = "/list", method = RequestMethod.GET)
    public CommonResult<List<DmsDistributionDictionary>> list() {
		List<DmsDistributionDictionary> list = service.list();
        return CommonResult.success(list);
    }
	
}
