package com.sqx.modules.errand.controller.app;

import com.sqx.common.utils.Result;
import com.sqx.modules.errand.service.NoticeService;
import io.swagger.annotations.Api;
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;

@RestController
@RequestMapping("/app/notice")
@Api(value = "用户端-公告", tags = {"用户端-公告"})
public class NoticeController {

    @Autowired
    private NoticeService noticeService;

    @ApiOperation("查看公告")
    @GetMapping(value = "selectNoticeList")
    public Result selectNoticeList(Integer page, Integer limit){

        return noticeService.selectNoticeList(page, limit);
    }

}
