DuDaoController.java 1.89 KB
package com.subsidy.controller;

import com.subsidy.dto.renshe.*;
import com.subsidy.service.DudaoService;
import com.subsidy.service.RenSheJuService;
import com.subsidy.vo.renshe.RensheResponseVO;
import com.subsidy.vo.renshe.RensheStringVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;

@RestController
@Api(tags = "普陀区人社督导")
@RequestMapping("/dudao")
public class DuDaoController {

    @Autowired
    private DudaoService dudaoService;

    @PostMapping("classBaseInfo")
    @ApiOperation("POST-1:班级基本信息信息采集接口")
    public RensheResponseVO classBaseInfo() throws IOException {
        return dudaoService.classBaseInfo();
    }

    @PostMapping("classHourBehavior")
    @ApiOperation("POST-2:学时信息采集接口")
    public RensheResponseVO classHourBehavior() throws IOException {
        return dudaoService.classHourBehavior();
    }

    @PostMapping("uploadChapterBehavior")
    @ApiOperation("POST-3:考试信息采集接口")
    public RensheResponseVO uploadChapterBehavior() throws IOException {
        return dudaoService.uploadChapterBehavior();
    }

    @PostMapping("uploadClassAnswerQuestionBehavior")
    @ApiOperation("POST-4:答疑辅导采集接口")
    public RensheResponseVO uploadClassAnswerQuestionBehavior() throws IOException {
        return dudaoService.uploadClassAnswerQuestionBehavior();
    }

    @PostMapping("uploadClassCode")
    @ApiOperation("POST-5: 上下游班级数据绑定接口")
    public RensheResponseVO uploadClassCode()throws IOException {
        return dudaoService.uploadClassCode();
    }

}