package com.ym.mec.web.controller.education;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ym.mec.biz.service.SubjectService;
import com.ym.mec.common.controller.BaseController;

@RequestMapping("eduSubject")
@Api(tags = "教务端科目服务")
@RestController
public class EduSubjectController extends BaseController {

    @Autowired
    private SubjectService subjectService;

    @ApiOperation(value = "获取子集科目列表")
    @GetMapping("/findSubSubjects")
    public Object findSubSubjects(Integer tenantId){
        return succeed(subjectService.findSubSubjects(null));
    }

    @ApiOperation(value = "根据科目编号查询科目")
    @GetMapping("/findBySubjectByIdList")
    public Object get(String subjectIdList){
        return succeed(subjectService.findBySubjectByIdList(subjectIdList));
    }
}
