PushDataController.java
1.63 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
package com.subsidy.controller;
import com.subsidy.common.ResponseData;
import com.subsidy.common.ResponseVO;
import com.subsidy.service.PushDataService;
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.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 问题答疑表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-12-01
*/
@RestController
@Api(tags = "推数据回显")
@RequestMapping("/pushData")
public class PushDataController {
@Autowired
private PushDataService pushDataService;
@PostMapping("post4")
@ApiOperation("学时数据回显")
public void post4() {
pushDataService.post4();
}
@PostMapping("post5")
@ApiOperation("考试数据回显")
public void post5() {
pushDataService.post5();
}
@PostMapping("post6")
@ApiOperation("答疑数据回显")
public void post6() {
pushDataService.post6();
}
@PostMapping("post7")
@ApiOperation("人脸数据回显")
public void post7() {
pushDataService.post7();
}
@PostMapping("sendWarning")
@ApiOperation("发送短信 ")
public void sendWarning(){
pushDataService.sendWarning();
}
@GetMapping("check")
@ApiOperation("核对数据")
public ResponseVO check(){
return ResponseData.generateCreatedResponse(0,pushDataService.check());
}
}