swagger报错
This commit is contained in:
parent
d9493ea01f
commit
e3499ef5c3
@ -1,5 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using YD_Event.Core.Enum;
|
using YD_Event.Core.Enum;
|
||||||
|
using YD_Event.Application.Event.Dtos;
|
||||||
|
|
||||||
namespace YD_Event.Application.Client.Dtos;
|
namespace YD_Event.Application.Client.Dtos;
|
||||||
|
|
||||||
@ -193,53 +194,6 @@ public class EventFeeConfigDto
|
|||||||
public Dictionary<long, decimal>? ProjectPrices { get; set; }
|
public Dictionary<long, decimal>? ProjectPrices { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 积分规则明细DTO
|
|
||||||
/// </summary>
|
|
||||||
public class PointsRuleDetailDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 起始名次
|
|
||||||
/// </summary>
|
|
||||||
public int StartRank { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 截止名次
|
|
||||||
/// </summary>
|
|
||||||
public int EndRank { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 发放积分个数
|
|
||||||
/// </summary>
|
|
||||||
public int Points { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 积分规则DTO
|
|
||||||
/// </summary>
|
|
||||||
public class PointsRuleDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 积分规则名称
|
|
||||||
/// </summary>
|
|
||||||
public string RuleName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 参与积分(发放积分个数)
|
|
||||||
/// </summary>
|
|
||||||
public int? ParticipationPoints { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 备注
|
|
||||||
/// </summary>
|
|
||||||
public string? Remark { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 名次积分规则明细
|
|
||||||
/// </summary>
|
|
||||||
public List<PointsRuleDetailDto>? Details { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 退款规则DTO
|
/// 退款规则DTO
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -300,17 +300,17 @@ public class EventClientController : IDynamicApiController
|
|||||||
var refundRuleSnapshots = await _ruleSnapshotService.GetRefundRuleSnapshot(evt.Id);
|
var refundRuleSnapshots = await _ruleSnapshotService.GetRefundRuleSnapshot(evt.Id);
|
||||||
|
|
||||||
// 使用快照数据转换为详情DTO
|
// 使用快照数据转换为详情DTO
|
||||||
YD_Event.Application.Client.Dtos.PointsRuleDto? pointsRuleDetail = null;
|
YD_Event.Application.Event.Dtos.PointsRuleDto? pointsRuleDetail = null;
|
||||||
List<YD_Event.Application.Client.Dtos.RefundRuleDto>? refundRules = null;
|
List<YD_Event.Application.Client.Dtos.RefundRuleDto>? refundRules = null;
|
||||||
|
|
||||||
if (pointsRuleSnapshot != null)
|
if (pointsRuleSnapshot != null)
|
||||||
{
|
{
|
||||||
pointsRuleDetail = new YD_Event.Application.Client.Dtos.PointsRuleDto
|
pointsRuleDetail = new YD_Event.Application.Event.Dtos.PointsRuleDto
|
||||||
{
|
{
|
||||||
RuleName = pointsRuleSnapshot.RuleName,
|
RuleName = pointsRuleSnapshot.RuleName,
|
||||||
ParticipationPoints = pointsRuleSnapshot.ParticipationPoints,
|
ParticipationPoints = pointsRuleSnapshot.ParticipationPoints,
|
||||||
Remark = pointsRuleSnapshot.Remark,
|
Remark = pointsRuleSnapshot.Remark,
|
||||||
Details = pointsRuleSnapshot.Details.Select(d => new YD_Event.Application.Client.Dtos.PointsRuleDetailDto
|
Details = pointsRuleSnapshot.Details.Select(d => new YD_Event.Application.Event.Dtos.PointsRuleDetailDto
|
||||||
{
|
{
|
||||||
StartRank = d.StartRank,
|
StartRank = d.StartRank,
|
||||||
EndRank = d.EndRank,
|
EndRank = d.EndRank,
|
||||||
|
|||||||
@ -156,7 +156,7 @@ public class UserEventDetailOutput
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 积分规则详情
|
/// 积分规则详情
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public YD_Event.Application.Client.Dtos.PointsRuleDto? PointsRuleDetail { get; set; }
|
public YD_Event.Application.Event.Dtos.PointsRuleDto? PointsRuleDetail { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 退款规则详情
|
/// 退款规则详情
|
||||||
|
|||||||
@ -254,12 +254,12 @@ public class UserEventRegistrationService : IDynamicApiController, ITransient
|
|||||||
{
|
{
|
||||||
output.PointsRuleName = pointsRuleSnapshot.RuleName ?? "";
|
output.PointsRuleName = pointsRuleSnapshot.RuleName ?? "";
|
||||||
|
|
||||||
output.PointsRuleDetail = new YD_Event.Application.Client.Dtos.PointsRuleDto
|
output.PointsRuleDetail = new YD_Event.Application.Event.Dtos.PointsRuleDto
|
||||||
{
|
{
|
||||||
RuleName = pointsRuleSnapshot.RuleName,
|
RuleName = pointsRuleSnapshot.RuleName,
|
||||||
ParticipationPoints = pointsRuleSnapshot.ParticipationPoints,
|
ParticipationPoints = pointsRuleSnapshot.ParticipationPoints,
|
||||||
Remark = pointsRuleSnapshot.Remark,
|
Remark = pointsRuleSnapshot.Remark,
|
||||||
Details = pointsRuleSnapshot.Details.Select(d => new YD_Event.Application.Client.Dtos.PointsRuleDetailDto
|
Details = pointsRuleSnapshot.Details.Select(d => new YD_Event.Application.Event.Dtos.PointsRuleDetailDto
|
||||||
{
|
{
|
||||||
StartRank = d.StartRank,
|
StartRank = d.StartRank,
|
||||||
EndRank = d.EndRank,
|
EndRank = d.EndRank,
|
||||||
|
|||||||
@ -1989,51 +1989,6 @@
|
|||||||
项目价格字典 (key: 项目ID, value: 价格)
|
项目价格字典 (key: 项目ID, value: 价格)
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="T:YD_Event.Application.Client.Dtos.PointsRuleDetailDto">
|
|
||||||
<summary>
|
|
||||||
积分规则明细DTO
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:YD_Event.Application.Client.Dtos.PointsRuleDetailDto.StartRank">
|
|
||||||
<summary>
|
|
||||||
起始名次
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:YD_Event.Application.Client.Dtos.PointsRuleDetailDto.EndRank">
|
|
||||||
<summary>
|
|
||||||
截止名次
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:YD_Event.Application.Client.Dtos.PointsRuleDetailDto.Points">
|
|
||||||
<summary>
|
|
||||||
发放积分个数
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="T:YD_Event.Application.Client.Dtos.PointsRuleDto">
|
|
||||||
<summary>
|
|
||||||
积分规则DTO
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:YD_Event.Application.Client.Dtos.PointsRuleDto.RuleName">
|
|
||||||
<summary>
|
|
||||||
积分规则名称
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:YD_Event.Application.Client.Dtos.PointsRuleDto.ParticipationPoints">
|
|
||||||
<summary>
|
|
||||||
参与积分(发放积分个数)
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:YD_Event.Application.Client.Dtos.PointsRuleDto.Remark">
|
|
||||||
<summary>
|
|
||||||
备注
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="P:YD_Event.Application.Client.Dtos.PointsRuleDto.Details">
|
|
||||||
<summary>
|
|
||||||
名次积分规则明细
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="T:YD_Event.Application.Client.Dtos.RefundRuleDto">
|
<member name="T:YD_Event.Application.Client.Dtos.RefundRuleDto">
|
||||||
<summary>
|
<summary>
|
||||||
退款规则DTO
|
退款规则DTO
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user