package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.DeviceResourceApply;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.*;
|
|
/**
|
* 设备资源申请
|
*/
|
@RestController
|
@RequestMapping("deviceResourceApply")
|
@Api(tags = "设备资源")
|
public class DeviceResourceApplyController {
|
|
@GetMapping("all")
|
@ApiOperation(value = "查询所有设备状态分页-筛选")
|
public Response getAllDeviceStatus(){
|
return null;
|
}
|
|
@GetMapping
|
@ApiOperation(value = "查询设备状态-根据设备id")
|
public Response getDeviceStatus(@RequestParam Integer deviceId){
|
return null;
|
}
|
|
@PostMapping
|
@ApiOperation(value = "提交申请")
|
public Response apply(@RequestBody DeviceResourceApply resourceApply){
|
|
return null;
|
}
|
|
@GetMapping("applyPage")
|
@ApiOperation(value = "查询申请列表分页-筛选")
|
//TODO 封装筛选条件到DTO
|
public Response getApplyPage(@RequestParam Integer pageNum,@RequestParam Integer pageSize){
|
return null;
|
}
|
|
@PutMapping("approve")
|
@ApiOperation(value = "审核")
|
public Response approve(@RequestBody DeviceResourceApply resourceApply){
|
|
return null;
|
}
|
|
@GetMapping("applyInfo")
|
@ApiOperation(value = "查询单个申请状态-根据设备id")
|
public Response applyInfo(@RequestBody DeviceResourceApply resourceApply){
|
|
return null;
|
}
|
}
|