package com.mindskip.xzs.controller.admin; import com.mindskip.xzs.base.BaseApiController; import com.mindskip.xzs.base.RestResponse; import com.mindskip.xzs.service.QuestionSubjectService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; @RestController("AdminQuestionSubject") @RequestMapping("/api/admin/questionSubject") public class QuestionSubjectController extends BaseApiController { private final QuestionSubjectService questionSubjectService; @Autowired public QuestionSubjectController(QuestionSubjectService questionSubjectService) { this.questionSubjectService = questionSubjectService; } @RequestMapping(value = "/removes",method = RequestMethod.POST) public RestResponse removes(@RequestBody Integer[] ids){ return RestResponse.ok(questionSubjectService.removes(ids)); } }