package cn.iocoder.yudao.module.app.car.controller;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.custom.entity.CarBrand;
import cn.iocoder.yudao.module.custom.service.CarBrandService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "小程序 - 车辆品牌维护")
@RestController
@RequestMapping("/userClient/base/carBrand")
@Validated
public class AppCarBrandController {

    @Resource
    private CarBrandService carBrandService;


    @GetMapping("/list")
    @Operation(summary = "获得全部车辆品牌")
    public CommonResult<List<CarBrand>> getCarBrandList() {
        List<CarBrand> carBrandList = carBrandService.getCarBrandList();
        return success(carBrandList);
    }


}