using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson; namespace langguanApi.Model.Dto.SystemConfigurationDto { /// /// 用于用户管理的Dto /// public class UserDto { /// ///用户ID /// [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } /// /// 用户名 /// public string Username { get; set; } /// /// 角色id /// public string roleId { get; set; } /// /// 邮箱 /// public string Email { get; set; } /// /// 手机号 /// public string Tel { get; set; } /// /// 是否管理员 0否 1是 /// public byte IsAdmin { get; set; } /// /// 是否删除 0否 1是 /// public byte IsDel { get; set; } /// /// 密码 md5加密 /// public string Password { get; set; } } /// ///根据用户条件查询 /// public class UserQueryDto { /// /// 用户名 /// public string Username { get; set; } = ""; /// /// 手机号 /// public string Tel { get; set; } = ""; /// /// 当前条数 /// public int PageSize { get; set; } = 10; /// /// 当前页数 /// public int PageIndex { get; set; } = 1; } /// /// 用户列表展示 /// public class UserDetailDto { /// /// 用户ID,方便查看详情操作 /// public string UserId { get; set; } /// /// 用户名 /// public string Username { get; set; } /// /// 邮箱 /// public string Email { get; set; } /// /// 角色id /// public string RoleId { get; set; } /// /// 角色名称 /// public string RoleName{ get; set; } /// /// 联系方式 /// public string Tel { get; set; } /// /// 是否管理员 0否 1是 /// public string IsAdmin { get; set; } } }