This commit is contained in:
zpc 2025-09-15 02:29:51 +08:00
parent 92e200dbd2
commit 0901e0f79e
3 changed files with 52 additions and 5 deletions

View File

@ -198,11 +198,6 @@ namespace CoreCms.Net.Model.Entities
/// 最小年龄限制
/// </summary>
[Display(Name = "最小年龄限制")]
public System.Int32? min_age { get; set; }

View File

@ -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
{
/// <summary>
/// 预约ID
/// </summary>
public new System.Int32 id { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public new System.DateTime created_at { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public new System.DateTime updated_at { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "备注")]
[StringLength(maximumLength: 255, ErrorMessage = "{0}不能超过{1}字")]
public new System.String remarks { get; set; }
}
}

View File

@ -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;
/// <summary>
@ -449,4 +450,22 @@ ISQRoomUnavailableTimesServices sQRoomUnavailableTimesServices
}
/// <summary>
/// 用户预约接口
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
[HttpPost]
public async Task<WebApiDto> AddSQReservation([FromBody] SQReservationsAddDto dto)
{
return new WebApiDto()
{
Code = 500,
Data = null,
Msg = "预约功能暂未开放"
};
}
}