package com.xhkjedu.sstudy.controller.question;

import com.xhkjedu.sstudy.model.question.TQuestion;
import com.xhkjedu.sstudy.service.question.ZQuestionUpdateService;
import com.xhkjedu.utils.N_Utils;
import com.xhkjedu.vo.ResultVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description
 * @Author WN
 * Date 2022/8/17 8:59
 **/
@RestController
@RequestMapping("zqu")
public class ZQuestionUpdateController {
    @Resource
    private ZQuestionUpdateService zQuestionUpdateService;

    @PostMapping("/up")
    public ResultVo updateQuestionType(@RequestBody TQuestion question) {
        zQuestionUpdateService.saveQuestions();
        return new ResultVo(0, "处理成功");
    }
}
