123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace VidFilesUpgradeTool
- {
- class User : AccountBase
- {
- public virtual AdminInfo CreateAdmin { get; set; }
- /// <summary>
- /// Terminals assigned to user
- /// </summary>
- public ICollection<TerminalInfo> Terminals { get; set; }
- /// <summary>
- /// Applications assigned to user
- /// </summary>
- public ICollection<FeatureInfo> Features { get; set; }
- public ICollection<OrganizationInfo> Organizations { get; set; }
- public ICollection<PushFailedMessage> PushFailedMessages { get; private set; }
- public ICollection<PushFailedSystemMessage> PushFailedSystemMessages { get; private set; }
- public virtual ICollection<AdminInfo> Owners { get; private set; }
- public byte[] SmallHeadImage { get; set; }
- public string HeadImage { get; set; }
- public bool IsActive { get; set; }
- public string NickName { get; set; }
- public GenderType GenderType { get; set; }
- public string Region { get; set; }
- public string Hospital { get; set; }
- public string Department { get; set; }
- public string CertificateId { get; set; }
- public UserTypes UserType { get; set; }
- public UserPermissions UserPermission { get; set; }
- public int Rank { get; set; }
-
- }
- class AccountBase : TrackableEntity
- {
- /// <summary>
- /// user Name
- /// </summary>
- public string Name { get; set; }
- public string Password { get; set; }
- public string LastName { get; set; }
- public string FirstName { get; set; }
- public string Phone { get; set; }
- public string Email { get; set; }
- }
- class FeatureInfo: EntityInfo
- {
- }
- class PushFailedMessage : Entity
- {
- public virtual ChatMessage Message { get; set; }
- public int SessionSource { get; set; }
- }
- class PushFailedSystemMessage : Entity
- {
- public string Content { get; set; }
- public SystemMessageCode Type { get; set; }
- }
- class ChatMessage : MessageBase
- {
- }
- class MessageBase : TrackableEntity
- {
- public virtual ConversationInfo Conversation { get; set; }
- public virtual UserInfo CreateUser { get; set; }
- public string Content { get; set; }
- }
- class ConversationInfo : EntityInfo
- {
- }
- enum UserPermissions
- {
- //Can see the full patient name like '张三', and full indentity card id.
- High,
- //Can see partial patient name like '张*', and '3305****'.
- Low
- }
- enum SystemMessageCode
- {
- ApplyFriend,
- ApplyJoinGroup,
- NotifyBeFriends,
- CreateGroup,
- DismissGroup,
- }
- }
|