using System.ComponentModel.DataAnnotations; namespace Blahblah.FlowerStory.Server.Controller; partial class UserApiController { } /// /// 登录参数 /// public record LoginParamter { /// /// 用户 id /// [Required] public required string Id { get; init; } /// /// 密码 /// [Required] public required string Password { get; init; } } /// /// 用户注册参数 /// public record UserParameter : UpdateParameter { /// /// 用户 id /// [Required] public required string Id { get; init; } /// /// 密码 /// [Required] public required string Password { get; init; } } /// /// 用户修改参数 /// public record UpdateParameter { /// /// 用户名 /// [Required] public required string UserName { get; init; } /// /// 邮箱 /// public string? Email { get; init; } /// /// 联系电话 /// public string? Mobile { get; init; } }