aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Entities/UserEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-07 20:14:55 +0800
committerGitHub <noreply@github.com>2021-01-07 20:14:55 +0800
commit8efb9dc9bec7e52aa76a741d820bdeaf9eb45fec (patch)
tree73a1baa078fa7a38dcdbdd38620bba0ef6a1298f /BackEnd/Timeline/Entities/UserEntity.cs
parentd3c9d0a9335ac6df3e330172b1b1a8a219cbdbaf (diff)
parent97e6ac51ac4df58cd1229e7974d2b846b192558a (diff)
downloadtimeline-8efb9dc9bec7e52aa76a741d820bdeaf9eb45fec.tar.gz
timeline-8efb9dc9bec7e52aa76a741d820bdeaf9eb45fec.tar.bz2
timeline-8efb9dc9bec7e52aa76a741d820bdeaf9eb45fec.zip
Merge pull request #203 from crupest/back-dev
refactor: Make mapper a service. Fix #202.
Diffstat (limited to 'BackEnd/Timeline/Entities/UserEntity.cs')
-rw-r--r--BackEnd/Timeline/Entities/UserEntity.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Entities/UserEntity.cs b/BackEnd/Timeline/Entities/UserEntity.cs
index 6a256a31..ad4d7db5 100644
--- a/BackEnd/Timeline/Entities/UserEntity.cs
+++ b/BackEnd/Timeline/Entities/UserEntity.cs
@@ -1,4 +1,5 @@
-using System;
+using Microsoft.AspNetCore.Mvc;
+using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -38,6 +39,10 @@ namespace Timeline.Entities
public UserAvatarEntity? Avatar { get; set; }
#pragma warning disable CA2227 // Collection properties should be read only
+ /// <summary>
+ /// Do not use this directly. Get permissions with <see cref="Timeline.Services.IUserPermissionService"/>.
+ /// </summary>
+ [Obsolete("Use IUserPermissionService instead.")]
public List<UserPermissionEntity> Permissions { get; set; } = default!;
public List<TimelineEntity> Timelines { get; set; } = default!;
@@ -45,6 +50,11 @@ namespace Timeline.Entities
public List<TimelinePostEntity> TimelinePosts { get; set; } = default!;
public List<TimelineMemberEntity> TimelinesJoined { get; set; } = default!;
+
+ internal object MapToHttp(IUrlHelper url)
+ {
+ throw new NotImplementedException();
+ }
#pragma warning restore CA2227 // Collection properties should be read only
}
}