32
This commit is contained in:
parent
92e200dbd2
commit
0901e0f79e
|
|
@ -198,11 +198,6 @@ namespace CoreCms.Net.Model.Entities
|
||||||
/// 最小年龄限制
|
/// 最小年龄限制
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Display(Name = "最小年龄限制")]
|
[Display(Name = "最小年龄限制")]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public System.Int32? min_age { get; set; }
|
public System.Int32? min_age { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
|
|
||||||
|
using SqlSugar;
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
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; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ using CoreCms.Net.Services.SQ;
|
||||||
using CoreCms.Net.Utility.Extensions;
|
using CoreCms.Net.Utility.Extensions;
|
||||||
using ToolGood.Words.internals;
|
using ToolGood.Words.internals;
|
||||||
using NPOI.SS.Formula.PTG;
|
using NPOI.SS.Formula.PTG;
|
||||||
|
using NPOI.OpenXmlFormats.Dml;
|
||||||
namespace CoreCms.Net.Web.WebApi.Controllers;
|
namespace CoreCms.Net.Web.WebApi.Controllers;
|
||||||
|
|
||||||
/// <summary>
|
/// <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 = "预约功能暂未开放"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user