using GDZZ.Core; using System; using System.ComponentModel.DataAnnotations; namespace GDZZ.Application { /// /// 基础用户输入参数 /// public class BaseUserInput : PageInputBase { /// /// 租户Id /// public virtual long TenantId { get; set; } /// /// 密码 /// public virtual string Password { get; set; } /// /// 用户类型 /// public virtual Int16 Type { get; set; } /// /// 用户名 /// public virtual string UserName { get; set; } /// /// 头像链接 /// public virtual string AvatarUrl { get; set; } /// /// 用户状态 /// public virtual Int16 Status { get; set; } /// /// 微信用户ID /// public virtual string OpenID { get; set; } /// /// 微信唯一ID /// public virtual string WxOfficialOpenId { get; set; } /// /// 开放平台ID /// public virtual string UnionId { get; set; } } public class AddBaseUserInput : BaseUserInput { /// /// 租户Id /// [Required(ErrorMessage = "租户Id不能为空")] public override long TenantId { get; set; } /// /// 用户类型 /// [Required(ErrorMessage = "用户类型不能为空")] public override Int16 Type { get; set; } /// /// 用户名 /// [Required(ErrorMessage = "用户名不能为空")] public override string UserName { get; set; } /// /// 用户状态 /// [Required(ErrorMessage = "用户状态不能为空")] public override Int16 Status { get; set; } } public class DeleteBaseUserInput { /// /// 主键Id /// [Required(ErrorMessage = "主键Id不能为空")] public long Id { get; set; } } public class UpdateBaseUserInput : BaseUserInput { /// /// 主键Id /// [Required(ErrorMessage = "主键Id不能为空")] public long Id { get; set; } /// /// 职业 /// public string Self { get; set; } /// /// 性别 /// public Gender Sex { get; set; } /// /// 描述 /// public string Describe { get; set; } } public class QueryeBaseUserInput : DeleteBaseUserInput { } }