package com.hwrj.cloud.admin.controller;

import com.hwrj.cloud.admin.dto.param.SelectNewVo;
import com.hwrj.cloud.admin.model.OmsPreItem;
import com.hwrj.cloud.admin.service.OmsOrderExpressService;
import com.hwrj.cloud.common.api.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "OmsOrderController", description = "快递公司管理")
@RequestMapping("/express")
public class OmsOrderExpressController {

    @Autowired
    private OmsOrderExpressService omsOrderExpressService;

    @ApiOperation(value = "获取快递公司列表")
    @GetMapping("/select")
    public CommonResult select(){
        List<SelectNewVo> select = omsOrderExpressService.select();
        return CommonResult.success(select);
    }
}
