You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/UserCenter/Application/Models/EditUserInfoModel.cs

35 lines
975 B

using System;
using System.ComponentModel.DataAnnotations;
using Infrastructure.Application;
using Application.Domain.Entities;
using System.ComponentModel;
namespace Application.Models
{
[Display(Name = "个人信息")]
public class EditUserInfoModel : EditModel
{
[Display(Name = "用户名")]
[ReadOnly(true)]
public string UserName { get; set; }
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
[Display(Name = "昵称")]
public string NickName { get; set; }
[Display(Name = "头像")]
[DataType(DataType.ImageUrl)]
public string Avatar { get; set; }
[Display(Name = "性别")]
[UIHint("SelectList")]
public Sex Sex { get; set; }
[DataType(DataType.Date)]
[Display(Name = "生日")]
public DateTime? Birthday { get; set; }
[Display(Name = "启用登录锁定")]
public bool LockoutEnabled { get; set; }
}
}