PushDataController.java 1.63 KB
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());
    }

}