package com.ym.mec.student.controller;

import com.ym.mec.biz.service.QuestionnaireTopicService;
import com.ym.mec.common.controller.BaseController;
import com.yonge.log.model.AuditLogAnnotation;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RequestMapping("questionnaireTopic")
@Api(tags = "问题分类")
@RestController
public class QuestionnaireTopicController extends BaseController {

    @Autowired
    private QuestionnaireTopicService questionnaireTopicService;

    @ApiOperation(value = "获取题目详情详情")
    @GetMapping("/getDetail")
    @AuditLogAnnotation(operateName = "获取题目详情详情")
    public Object getDetail(Integer id) {
        return succeed(questionnaireTopicService.getDetail(id));
    }
}
