31 lines
773 B
Java
31 lines
773 B
Java
package com.muyu.controller;
|
|
|
|
import com.muyu.common.Result;
|
|
import com.muyu.domain.Vehicle;
|
|
import com.muyu.service.VehicleService;
|
|
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 DongZeLiang
|
|
* @version 1.0
|
|
* @description 用户控制层
|
|
* @date 2023/11/9
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/Information")
|
|
public class VehicleController {
|
|
|
|
@Autowired
|
|
private VehicleService vehicleService;
|
|
|
|
@GetMapping("/list")
|
|
public Result<List<Vehicle>> list(){
|
|
return Result.success(vehicleService.list());
|
|
}
|
|
}
|