- 移除 `UserInfoController`,新增 `UserControllers` 使用 `UserService` - 添加 `UserService` 用于处理用户信息 - 新增 `UserProfile` DTO - 添加数据库迁移以支持用户表结构
21 lines
512 B
C#
21 lines
512 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace AGSS.Models.Entities;
|
|
|
|
public class UserModel:IdentityUser
|
|
{
|
|
|
|
public string? Sex { get; set; }
|
|
[MaxLength(100)]
|
|
public string? Description { get; set; }
|
|
[MaxLength(200)]
|
|
public string? Config { get; set; }
|
|
[MaxLength(10)]
|
|
public string? JobCode { get; set; }
|
|
[MaxLength(10)]
|
|
public string? JobName { get; set; }
|
|
[MaxLength(20)]
|
|
public string? Birthday { get; set; }
|
|
|
|
} |