
package com.tmerclub.cloud.delivery.controller.app;

import com.tmerclub.cloud.common.response.ServerResponseEntity;
import com.tmerclub.cloud.delivery.service.DeliveryCompanyService;
import com.tmerclub.cloud.delivery.vo.DeliveryCompanyVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
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;

/**
 * 物流公司
 *
 * @author tmerclub
 * @date 2020-12-07 15:10:00
 */
@RestController("appDeliveryCompanyController")
@RequestMapping("/deliveryCompany")
@Tag(name = "物流公司")
public class DeliveryCompanyController {

    @Autowired
    private DeliveryCompanyService deliveryCompanyService;

    @GetMapping("/list")
    @Operation(summary = "获取物流公司列表", description = "获取物流公司列表")
    public ServerResponseEntity<List<DeliveryCompanyVO>> list() {
        return ServerResponseEntity.success(deliveryCompanyService.list());
    }
}
