package com.buy507.mall.controller;

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.service.OmsExpressCompanyService;

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

@Api(tags = "OmsExpressCompanyController", description = "快递管理")
@RestController
@RequestMapping("/express")
public class OmsExpressCompanyController {
	
	@Autowired
	private OmsExpressCompanyService service;

	@ApiOperation("获取快递公司信息")
    @RequestMapping(value = "/list/expressOptions", method = RequestMethod.GET)
    public CommonResult getExpressOptions() {
    	return CommonResult.success(service.getExpressOptions());
    }
	
}
