Exemplo n.º 1
0
        /// <summary>
        /// 修改消息读取状态
        /// </summary>
        /// <param name="idList"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public async Task <JsonResult> UpdateUserNotificationStatus([FromBody] RequestParam <List <UserNotificationInfoDto> > requestParam)
        {
            if (requestParam.Params == null || requestParam.Params.Count == 0)
            {
                return(Json(false));
            }
            await _sysNotificationAppService.UpdateUserNotificationStatus(requestParam);

            return(Json(true));
        }
        /// <summary>
        /// 修改消息读取状态
        /// </summary>
        /// <param name="idList"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public async Task <JsonResult> UpdateUserNotificationStatus(List <Guid> idList, UserNotificationState state)
        {
            if (idList == null || idList.Count == 0)
            {
                return(Json(false));
            }
            await _sysNotificationAppService.UpdateUserNotificationStatus(idList, state);

            return(Json(true));
        }