package com.ruoyi.web.controller.portal;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.SysSciencePlan;
import com.ruoyi.system.service.ISysSciencePlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Anonymous
@RestController
@RequestMapping("/portal/science-plan")
public class PortalSciencePlanController extends BaseController {

    @Autowired
    private ISysSciencePlanService sysSciencePlanService;

    @GetMapping("/list")
    public AjaxResult getSciencePlanList() {
        List<SysSciencePlan> list = sysSciencePlanService.selectSysSciencePlanList();
        return AjaxResult.success(list);
    }
}
