add some APIs
This commit is contained in:
@ -24,7 +24,7 @@ public class RecordItem : ILocation
|
||||
[Column("uid")]
|
||||
[ForeignKey(nameof(Owner))]
|
||||
[Required]
|
||||
public int OwnerId { get; set; }
|
||||
public required int OwnerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联人
|
||||
@ -38,7 +38,7 @@ public class RecordItem : ILocation
|
||||
[Column("fid")]
|
||||
[ForeignKey(nameof(Flower))]
|
||||
[Required]
|
||||
public int FlowerId { get; set; }
|
||||
public required int FlowerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联花草
|
||||
@ -51,7 +51,7 @@ public class RecordItem : ILocation
|
||||
/// </summary>
|
||||
[Column("eid")]
|
||||
[Required]
|
||||
public int EventId { get; set; }
|
||||
public required int EventId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作时间
|
||||
@ -59,7 +59,7 @@ public class RecordItem : ILocation
|
||||
[Column("date")]
|
||||
[Required]
|
||||
[JsonPropertyName("date")]
|
||||
public long DateUnixTime { get; set; }
|
||||
public required long DateUnixTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作人 uid
|
||||
|
Reference in New Issue
Block a user