package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.DeviceType;
|
import com.whyc.service.DeviceTypeService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
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;
|
|
/**
|
* 设备类型
|
*/
|
@RestController
|
@RequestMapping("deviceType")
|
@Api(tags = "设备类型")
|
public class DeviceTypeController {
|
|
@Autowired
|
private DeviceTypeService service;
|
|
@GetMapping("all")
|
@ApiOperation(value = "查询所有设备类型")
|
public Response<List<DeviceType>> getAll(){
|
return service.getAll();
|
}
|
|
}
|