swagger报错

This commit is contained in:
马梓彭 2026-06-16 10:31:48 +08:00
parent d9493ea01f
commit e3499ef5c3
5 changed files with 7 additions and 98 deletions

View File

@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using YD_Event.Core.Enum;
using YD_Event.Application.Event.Dtos;
namespace YD_Event.Application.Client.Dtos;
@ -193,53 +194,6 @@ public class EventFeeConfigDto
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>
/// 退款规则DTO
/// </summary>

View File

@ -300,17 +300,17 @@ public class EventClientController : IDynamicApiController
var refundRuleSnapshots = await _ruleSnapshotService.GetRefundRuleSnapshot(evt.Id);
// 使用快照数据转换为详情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;
if (pointsRuleSnapshot != null)
{
pointsRuleDetail = new YD_Event.Application.Client.Dtos.PointsRuleDto
pointsRuleDetail = new YD_Event.Application.Event.Dtos.PointsRuleDto
{
RuleName = pointsRuleSnapshot.RuleName,
ParticipationPoints = pointsRuleSnapshot.ParticipationPoints,
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,
EndRank = d.EndRank,

View File

@ -156,7 +156,7 @@ public class UserEventDetailOutput
/// <summary>
/// 积分规则详情
/// </summary>
public YD_Event.Application.Client.Dtos.PointsRuleDto? PointsRuleDetail { get; set; }
public YD_Event.Application.Event.Dtos.PointsRuleDto? PointsRuleDetail { get; set; }
/// <summary>
/// 退款规则详情

View File

@ -254,12 +254,12 @@ public class UserEventRegistrationService : IDynamicApiController, ITransient
{
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,
ParticipationPoints = pointsRuleSnapshot.ParticipationPoints,
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,
EndRank = d.EndRank,

View File

@ -1989,51 +1989,6 @@
项目价格字典 (key: 项目ID, value: 价格)
</summary>
</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">
<summary>
退款规则DTO