diff --git a/CoreCms.Net.Model/Entities/SQ/SQReservations.cs b/CoreCms.Net.Model/Entities/SQ/SQReservations.cs
index de2c8fa..8526cd8 100644
--- a/CoreCms.Net.Model/Entities/SQ/SQReservations.cs
+++ b/CoreCms.Net.Model/Entities/SQ/SQReservations.cs
@@ -198,11 +198,6 @@ namespace CoreCms.Net.Model.Entities
/// 最小年龄限制
///
[Display(Name = "最小年龄限制")]
-
-
-
-
-
public System.Int32? min_age { get; set; }
diff --git a/CoreCms.Net.Model/ViewModels/SQ/SQReservationsDto.cs b/CoreCms.Net.Model/ViewModels/SQ/SQReservationsDto.cs
index f33b439..a827e6e 100644
--- a/CoreCms.Net.Model/ViewModels/SQ/SQReservationsDto.cs
+++ b/CoreCms.Net.Model/ViewModels/SQ/SQReservationsDto.cs
@@ -2,6 +2,8 @@
using CoreCms.Net.Model.Entities;
+using SqlSugar;
+
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@@ -72,4 +74,35 @@ namespace CoreCms.Net.Model.ViewModels.SQ
}
+ public class SQReservationsAddDto : SQReservations
+ {
+
+ ///
+ /// 预约ID
+ ///
+
+ public new System.Int32 id { get; set; }
+
+ ///
+ /// 创建时间
+ ///
+ public new System.DateTime created_at { get; set; }
+
+
+ ///
+ /// 更新时间
+ ///
+ public new System.DateTime updated_at { get; set; }
+
+
+ ///
+ /// 备注
+ ///
+ [Display(Name = "备注")]
+
+ [StringLength(maximumLength: 255, ErrorMessage = "{0}不能超过{1}字")]
+ public new System.String remarks { get; set; }
+ }
+
+
}
diff --git a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs
index 5bb0e46..742fd1f 100644
--- a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs
+++ b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs
@@ -28,6 +28,7 @@ using CoreCms.Net.Services.SQ;
using CoreCms.Net.Utility.Extensions;
using ToolGood.Words.internals;
using NPOI.SS.Formula.PTG;
+using NPOI.OpenXmlFormats.Dml;
namespace CoreCms.Net.Web.WebApi.Controllers;
///
@@ -449,4 +450,22 @@ ISQRoomUnavailableTimesServices sQRoomUnavailableTimesServices
}
+ ///
+ /// 用户预约接口
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task AddSQReservation([FromBody] SQReservationsAddDto dto)
+ {
+
+
+ return new WebApiDto()
+ {
+ Code = 500,
+ Data = null,
+ Msg = "预约功能暂未开放"
+ };
+ }
+
}