package com.ruoyi.web.controller.back;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.ie.domain.Subject;
import com.ruoyi.ie.service.ISubjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.List;

/**
 * 科目Controller
 *
 * @author mingxue
 * @date 2021-06-06
 */
@Api(tags = "科目")
@RestController
@RequestMapping("/web/subject")
public class BackSubjectController extends BaseController
{
    @Autowired
    private ISubjectService subjectService;


    /**
     * 查询科目列表
     */
    @ApiOperation("科目列表")
    @GetMapping("/getSubjectsList")
    public TableDataInfo getSubjectsList(Subject subject)
    {
        //所有科目
        List<Subject> list = subjectService.selectSubjectListBack(subject);
        return getDataTable(list);
    }


}
