using DS.Module.Core; using DS.WMS.Core.System.Dtos; using DS.WMS.Core.System.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.WebApi.Controllers; /// /// 客户端公告模块 /// public class NoticeController : ApiController { private readonly ISysNoticeService _invokeService; /// /// 构造函数 /// /// public NoticeController(ISysNoticeService invokeService) { _invokeService = invokeService; } /// /// 获取客户端公告列表 /// /// /// [HttpPost] [Route("GetClientNoticeList")] public DataResult> GetClientNoticeList([FromBody] PageRequest request) { var res = _invokeService.GetClientNoticeList(request); return res; } /// /// 获取客户端公告信息 /// /// /// [HttpGet] [Route("GetClientNoticeInfo")] public DataResult GetClientNoticeInfo([FromQuery] int id) { var res = _invokeService.GetClientNoticeInfo(id); return res; } /// /// 设置公告已读 /// /// /// [HttpGet] [Route("ReadNotice")] public DataResult ReadNotice([FromQuery] int id) { var res = _invokeService.ReadNotice(id); return res; } /// /// 获取未读消息列表 /// /// [HttpGet] [Route("GetNoReadList")] public DataResult GetNoReadList() { var res = _invokeService.GetNoReadList(); return res; } }