This commit is contained in:
Zel
2025-02-23 22:08:19 +08:00
parent e46a7ca31c
commit f664c43d35
20 changed files with 98 additions and 124 deletions

View File

@@ -12,6 +12,7 @@ namespace ZelWiki.Models.ViewModels.Page
public string Navigation { get; set; } = string.Empty;
[Display(Name = "描述")]
public string? Description { get; set; } = string.Empty;
[Display(Name = "正文")]
public string? Body { get; set; } = string.Empty;
}
}

View File

@@ -9,26 +9,26 @@ namespace ZelWiki.Models.ViewModels.Profile
public string Navigation { get; set; } = string.Empty;
public Guid Id { get; set; }
[Display(Name = "Name")]
[Display(Name = "用户名")]
public string AccountName { get; set; } = string.Empty;
[Display(Name = "Personal Bio")]
[Display(Name = "个人简介")]
public string Biography { get; set; } = string.Empty;
[Display(Name = "Avatar")]
[Display(Name = "头像")]
[BindNever]
public byte[]? Avatar { get; set; }
[Required]
[Display(Name = "Country")]
[Display(Name = "国家")]
public string Country { get; set; } = string.Empty;
[Required]
[Display(Name = "Language")]
[Display(Name = "语言")]
public string Language { get; set; } = string.Empty;
[Required]
[Display(Name = "Time Zone")]
[Display(Name = "时区")]
public string TimeZone { get; set; } = string.Empty;
public List<PageRevision> RecentlyModified { get; set; } = new();