Exemplo n.º 1
0
        /// <summary>
        /// 删除用户订阅的通知
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public async Task <JsonResult> DeleteSubscription([FromBody] RequestParam <List <SysUserNotification> > requestParam)
        {
            await _sysNotificationAppService.DeleteSubscriptionAsync(requestParam);

            return(Json(true));
        }
        /// <summary>
        /// 删除用户订阅的通知
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public async Task <JsonResult> DeleteSubscription(List <long> userList, string notificationName)
        {
            await _sysNotificationAppService.DeleteSubscriptionAsync(userList, notificationName);

            return(Json(true));
        }