add latitude & longitude
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user