// *********************************************************************** // Assembly : OpenAuth.App // Author : yubaolee // Created : 11-29-2015 // // Last Modified By : yubaolee // Last Modified On : 11-29-2015 // *********************************************************************** // // Copyright (c) www.cnblogs.com/yubaolee. All rights reserved. // // 角色模型视图 // *********************************************************************** using System; using Infrastructure; using OpenAuth.Domain; namespace OpenAuth.App.ViewModel { public partial class RoleVM { /// /// 用户ID /// /// public string Id { get; set; } /// /// 名称 /// /// public string Name { get; set; } /// /// 当前状态 /// public int Status { get; set; } /// /// 角色类型 /// public int Type { get; set; } /// /// 所属组织名称,多个可用,分隔 /// public string Organizations { get; set; } /// /// 所属组织ID,多个可用,分隔 /// public string OrganizationIds { get; set; } /// ///是否属于某用户 /// public bool Checked { get; set; } public static implicit operator RoleVM(Role role) { return role.MapTo(); } public static implicit operator Role(RoleVM rolevm) { return rolevm.MapTo(); } } }