package com.ruoyi.web.controller.sdgsat1;

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

/**
 * SDGSAT-1 简介管理
 * 
 * @author ruoyi
 */
@RestController
@RequestMapping("/sdgsat1/introduction")
public class Sdgsat1IntroductionController extends BaseController
{
    @Autowired
    private ISysSdgsat1IntroductionService introductionService;

    /**
     * 获取简介信息
     */
    @Anonymous
    @GetMapping
    public AjaxResult getIntroduction()
    {
        return success(introductionService.selectIntroduction());
    }

    /**
     * 更新简介信息
     */
    @PutMapping
    public AjaxResult updateIntroduction(@RequestBody SysSdgsat1Introduction introduction)
    {
        return toAjax(introductionService.updateIntroduction(introduction));
    }
}