package com.bonus.sgzb.app.controller;

import com.bonus.sgzb.app.domain.SysNotice;
import com.bonus.sgzb.app.service.SysNoticeService;
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
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;

/**
 * @author c liu
 * @date 2023/12/11
 */
@RestController
@RequestMapping("/sysNotice")
public class SysNoticeController {
    @Autowired
    private SysNoticeService service;

    @ApiOperation(value = "查询通知公告列表")
    @GetMapping("/getList")
    public AjaxResult getList()
    {
        List<SysNotice> list = service.getList();
        return AjaxResult.success("操作成功",list);
    }
}
