12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using CZFW.Core;
- using CZFW.Framework.Attributes;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Text;
- namespace CZFW.Framework.Model.Entity
- {
- [Table("cz_user_info")]
- public class UserInfoEntity : EntityBase
- {
-
-
-
- [Required(ErrorMessage = "请填写用户名")]
- [Display(Name = "用户名")]
- [MinLength(5, ErrorMessage = "不得少于5个字符")]
- [StringLength(64)]
- public string UserName { get; set; }
-
-
-
- [DisplayName("密码")]
- [Invisible]
- [StringLength(1024)]
- public string Password { get; set; }
-
-
-
- [Display(Name = "姓名")]
- [Required(ErrorMessage = "请填姓名")]
- [StringLength(64)]
- public string Name { get; set; }
-
-
-
- [Display(Name = "账号状态")]
- [Required]
- [EnumSrc(Name = "CZKJ.GBRS2.Enum.UserStateEnum")]
- public int State { get; set; }
- [Display(Name = "手机号")]
- [StringLength(64)]
- public string Mobile { get; set; }
-
-
-
- [Display(Name = "是否管理员")]
- [Required]
- public bool IsSysAdmin { get; set; }
- [MaxLength(1024)]
- [Display(Name = "描述")]
- public string Description { get; set; }
- [Invisible]
- public int? Error { get; set; }
- [Invisible]
- public int? LockTime { get; set; }
- [Invisible]
- public DateTime? StartTime { get; set; }
- }
- }
|