55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace _0_Framework.Application;
|
|
|
|
public class AuthViewModel
|
|
{
|
|
public long Id { get; set; }
|
|
public long RoleId { get; set; }
|
|
public string Role { get; set; }
|
|
public string Fullname { get; set; }
|
|
public string Username { get; set; }
|
|
public string Mobile { get; set; }
|
|
public string RoleName { get; set; }
|
|
public string ProfilePhoto { get; set; }
|
|
public List<int> Permissions { get; set; }
|
|
public string AdminAreaPermission { get; set; }
|
|
public string ClientAriaPermission { get; set; }
|
|
|
|
#region Mahan
|
|
|
|
public int? PositionValue { get; set; }
|
|
public string WorkshopSlug { get; set; }
|
|
public long WorkshopId { get; set; }
|
|
public string WorkshopName { get; set; }
|
|
public List<WorkshopClaim> WorkshopList { get; set; }
|
|
|
|
#endregion
|
|
|
|
public long SubAccountId { get; set; }
|
|
public long? PmUserId { get; set; }
|
|
|
|
|
|
public AuthViewModel(long id, long roleId, string fullname, string username, string mobile,string profilePhoto,
|
|
List<int> permissions, string roleName, string adminAreaPermission, string clientAriaPermission, int? positionValue,
|
|
long subAccountId = 0,long? pmUserId = null)
|
|
{
|
|
Id = id;
|
|
RoleId = roleId;
|
|
Fullname = fullname;
|
|
Username = username;
|
|
Mobile = mobile;
|
|
ProfilePhoto = profilePhoto;
|
|
Permissions = permissions;
|
|
RoleName = roleName;
|
|
AdminAreaPermission = adminAreaPermission;
|
|
ClientAriaPermission = clientAriaPermission;
|
|
PositionValue = positionValue;
|
|
SubAccountId = subAccountId;
|
|
PmUserId = pmUserId;
|
|
}
|
|
|
|
public AuthViewModel()
|
|
{
|
|
}
|
|
} |