whycxzp
2021-04-01 56ea53d43e85be165da7dc27766e240711a09499
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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;
    }
}