2023-08-11 11:51:09 +08:00
|
|
|
package com.jwl.driver.server.controller;
|
|
|
|
|
|
|
|
|
2023-08-14 01:31:26 +08:00
|
|
|
import com.jwl.driver.server.dto.QuestionQueryDto;
|
|
|
|
import com.jwl.driver.server.response.BaseResponse;
|
|
|
|
import com.jwl.driver.server.service.ITdCarService;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
2023-08-11 11:51:09 +08:00
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
2023-08-14 01:31:26 +08:00
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
2023-08-11 11:51:09 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* <p>
|
|
|
|
* 车型分类; 前端控制器
|
|
|
|
* </p>
|
|
|
|
*
|
|
|
|
* @author Automated procedures
|
|
|
|
* @since 2023-08-10
|
|
|
|
*/
|
2023-08-14 01:31:26 +08:00
|
|
|
@Api(tags = "车型")
|
|
|
|
@RestController
|
|
|
|
@RequestMapping("/tdCar")
|
|
|
|
@Slf4j
|
2023-08-11 11:51:09 +08:00
|
|
|
public class TdCarController {
|
|
|
|
|
2023-08-14 01:31:26 +08:00
|
|
|
@Autowired
|
|
|
|
private ITdCarService carService;
|
|
|
|
|
|
|
|
@ApiOperation("获取车型列表")
|
|
|
|
@GetMapping("/list")
|
|
|
|
public BaseResponse list() {
|
|
|
|
return BaseResponse.success(carService.list());
|
|
|
|
}
|
|
|
|
|
2023-08-11 11:51:09 +08:00
|
|
|
}
|