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 Education { get; set; }
///
/// 手机号
///
public string Tel { get; set; }
///
/// 性别 0表示男 1表示女
///
public byte Sex { get; set; }
///
/// 毕业院校
///
public string University { get; set; }
///
/// 出生日期
///
public string BrithdayDateTime { get; set; }
public DateTime? Brithday { get; set; }
///
/// 入职日期
///
public string HiredateDateTime { get; set; } = DateTime.Now.ToString();
public DateTime? Hiredate { get; set; }
///
/// 籍贯
///
public string Native { get; set; }
///
/// 居住地
///
public string Address { get; set; }
///
/// 是否管理员 0否 1是
///
public byte IsAdmin { get; set; }
///
/// 是否删除 0否 1是
///
public byte IsDel { get; set; }
//是否启用 0表示未启用 1表示启用
public byte IsEnable { get; set; }
}
///
///根据用户条件查询
///
public class UserQueryDto
{
///
/// 用户名
///
public string Username { get; set; } = "";
///
/// 手机号
///
public string Tel { get; set; } = "";
//入职开始时间
public string HiredateStart { get; set; } = "";
//入职结束时间
public string HiredateEnd { get; set; } = "";
}
///
/// 用户列表展示
///
public class UserListDto
{
///
/// 用户名
///
public string Username { get; set; }
///
/// 学历
///
public string Education { get; set; }
///
/// 邮箱
///
public string Email { get; set; }
///
/// 角色名称
///
public string roleName{ get; set; }
///
/// 性别
///
public string Sex { get; set; }
///
/// 毕业院校
///
public string University { get; set; }
///
/// 联系方式
///
public string Tel { get; set; }
///
/// 出生日期
///
public string Brithday { get; set; }
///
/// 籍贯
///
public string Native { get; set; }
///
/// 居住地
///
public string Address { get; set; }
///
/// 入职日期
///
public string Hiredate { get; set; }
///
/// 是否管理员 0否 1是
///
public string IsAdmin { get; set; }
}
}