add latitude & longitude

This commit is contained in:
2023-07-05 17:33:22 +08:00
parent 4bf330f824
commit 32464cb494
14 changed files with 581 additions and 31 deletions

View File

@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using Blahblah.FlowerStory.Server.Data.Model;
using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;
namespace Blahblah.FlowerStory.Server.Controller;
@@ -58,5 +59,21 @@ public record FlowerUpdateParameter : FlowerParameter
/// </summary>
[Required]
[FromForm(Name = "id")]
public int Id { get; set; }
public int Id { get; init; }
}
/// <summary>
/// 花草结果对象
/// </summary>
public record FlowerResult
{
/// <summary>
/// 花草列表
/// </summary>
public required FlowerItem[] Flowers { get; init; }
/// <summary>
/// 花草总数
/// </summary>
public int Count { get; init; }
}