add latitude & longitude
This commit is contained in:
@ -8,7 +8,7 @@ namespace Blahblah.FlowerStory.Server.Data.Model;
|
||||
/// 花草对象
|
||||
/// </summary>
|
||||
[Table("flowers")]
|
||||
public class FlowerItem
|
||||
public class FlowerItem : ILocation
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增 id,主键
|
||||
@ -83,4 +83,22 @@ public class FlowerItem
|
||||
/// 封面相关照片
|
||||
/// </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; }
|
||||
|
||||
/// <summary>
|
||||
/// 距离(米)
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public int? Distance { get; set; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user