This commit is contained in:
@@ -24,7 +24,7 @@ namespace Dilon.Core.Service
|
||||
/// <summary>
|
||||
/// 用户Id
|
||||
/// </summary>
|
||||
public long UserId { get; set; }
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户名称
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Dilon.Core.Service
|
||||
/// <summary>
|
||||
/// 通知到的人
|
||||
/// </summary>
|
||||
public virtual List<long> NoticeUserIdList { get; set; }
|
||||
public virtual List<string> NoticeUserIdList { get; set; }
|
||||
}
|
||||
|
||||
public class AddNoticeInput : NoticeInput
|
||||
@@ -64,7 +64,7 @@ namespace Dilon.Core.Service
|
||||
/// 通知到的人
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "通知到的人不能为空")]
|
||||
public override List<long> NoticeUserIdList { get; set; }
|
||||
public override List<string> NoticeUserIdList { get; set; }
|
||||
}
|
||||
|
||||
public class DeleteNoticeInput
|
||||
@@ -73,7 +73,7 @@ namespace Dilon.Core.Service
|
||||
/// Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "通知公告Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
|
||||
public class UpdateNoticeInput : AddNoticeInput
|
||||
@@ -82,7 +82,7 @@ namespace Dilon.Core.Service
|
||||
/// Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "通知公告Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
|
||||
public class QueryNoticeInput : DeleteNoticeInput
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace Dilon.Core.Service.Notice
|
||||
{
|
||||
public interface ISysNoticeUserService
|
||||
{
|
||||
Task Add(long noticeId, List<long> noticeUserIdList, int noticeUserStatus);
|
||||
Task<List<SysNoticeUser>> GetNoticeUserListByNoticeId(long noticeId);
|
||||
Task Read(long noticeId, long userId, int status);
|
||||
Task Update(long noticeId, List<long> noticeUserIdList, int noticeUserStatus);
|
||||
Task Add(string noticeId, List<string> noticeUserIdList, int noticeUserStatus);
|
||||
Task<List<SysNoticeUser>> GetNoticeUserListByNoticeId(string noticeId);
|
||||
Task Read(string noticeId, string userId, int status);
|
||||
Task Update(string noticeId, List<string> noticeUserIdList, int noticeUserStatus);
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@ namespace Dilon.Core.Service.Notice
|
||||
/// <param name="noticeUserIdList"></param>
|
||||
/// <param name="noticeUserStatus"></param>
|
||||
/// <returns></returns>
|
||||
public Task Add(long noticeId, List<long> noticeUserIdList, int noticeUserStatus)
|
||||
public Task Add(string noticeId, List<string> noticeUserIdList, int noticeUserStatus)
|
||||
{
|
||||
noticeUserIdList.ForEach(u =>
|
||||
{
|
||||
@@ -48,7 +48,7 @@ namespace Dilon.Core.Service.Notice
|
||||
/// <param name="noticeUserIdList"></param>
|
||||
/// <param name="noticeUserStatus"></param>
|
||||
/// <returns></returns>
|
||||
public async Task Update(long noticeId, List<long> noticeUserIdList, int noticeUserStatus)
|
||||
public async Task Update(string noticeId, List<string> noticeUserIdList, int noticeUserStatus)
|
||||
{
|
||||
var noticeUsers = await _sysNoticeUserRep.Where(u => u.NoticeId == noticeId).ToListAsync();
|
||||
noticeUsers.ForEach(u =>
|
||||
@@ -64,7 +64,7 @@ namespace Dilon.Core.Service.Notice
|
||||
/// </summary>
|
||||
/// <param name="noticeId"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<List<SysNoticeUser>> GetNoticeUserListByNoticeId(long noticeId)
|
||||
public async Task<List<SysNoticeUser>> GetNoticeUserListByNoticeId(string noticeId)
|
||||
{
|
||||
return await _sysNoticeUserRep.Where(u => u.NoticeId == noticeId).ToListAsync();
|
||||
}
|
||||
@@ -76,7 +76,7 @@ namespace Dilon.Core.Service.Notice
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="status"></param>
|
||||
/// <returns></returns>
|
||||
public async Task Read(long noticeId, long userId, int status)
|
||||
public async Task Read(string noticeId, string userId, int status)
|
||||
{
|
||||
var noticeUser = await _sysNoticeUserRep.FirstOrDefaultAsync(u => u.NoticeId == noticeId && u.UserId == userId);
|
||||
if (noticeUser != null)
|
||||
|
||||
Reference in New Issue
Block a user