add latitude & longitude
This commit is contained in:
@ -8,7 +8,7 @@ namespace Blahblah.FlowerStory.Server.Data.Model;
|
||||
/// 记录对象
|
||||
/// </summary>
|
||||
[Table("records")]
|
||||
public class RecordItem
|
||||
public class RecordItem : ILocation
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增 id,主键
|
||||
@ -90,4 +90,16 @@ public class RecordItem
|
||||
/// 事件关联照片
|
||||
/// </summary>
|
||||
public ICollection<PhotoItem>? Photos { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 纬度
|
||||
/// </summary>
|
||||
[Column("latitude")]
|
||||
public double? Latitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 经度
|
||||
/// </summary>
|
||||
[Column("longitude")]
|
||||
public double? Longitude { get; set; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user