From 23cdd335abc0c4bb8947a6ebceace47777c94859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Tue, 17 Mar 2026 15:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/AppUser/AppUserService.cs | 9 +++++++++ YD_Event.Application/Auth/AuthService.cs | 2 ++ .../Event/UserCompetitionService.cs | 14 ++++++++++++++ YD_Event.Application/Merchant/MerchantService.cs | 2 ++ YD_Event.Application/User/SysUserService.cs | 1 + YD_Event.Core/Entities/EventInfo.cs | 2 +- 6 files changed, 29 insertions(+), 1 deletion(-) diff --git a/YD_Event.Application/AppUser/AppUserService.cs b/YD_Event.Application/AppUser/AppUserService.cs index 04d2ac9..a1d8b9d 100644 --- a/YD_Event.Application/AppUser/AppUserService.cs +++ b/YD_Event.Application/AppUser/AppUserService.cs @@ -34,6 +34,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("分页查询普通用户")] [HttpGet("page")] public async Task> Page([FromQuery] AppUserPageInput input) { @@ -55,6 +56,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("获取普通用户详情")] [HttpGet("{id}")] public async Task Detail([FromRoute] long id) { @@ -69,6 +71,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("审核普通用户")] [HttpPost("audit")] [UnitOfWork] public async Task Audit([FromBody] AuditInput input) @@ -125,6 +128,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("领队列表查询")] [HttpGet("leader/page")] public async Task> LeaderPage([FromQuery] TeamMemberQueryInput input) { @@ -136,6 +140,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("教练列表查询")] [HttpGet("coach/page")] public async Task> CoachPage([FromQuery] TeamMemberQueryInput input) { @@ -220,6 +225,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("新增/编辑领队")] [HttpPost("leader/save")] public async Task SaveLeader(CreateOrUpdateMemberInput input) { @@ -231,6 +237,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("新增/编辑教练")] [HttpPost("coach/save")] public async Task SaveCoach(CreateOrUpdateMemberInput input) { @@ -242,6 +249,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("删除成员")] [HttpPost("member/delete")] public async Task DeleteMember([FromBody] long id) { @@ -262,6 +270,7 @@ public class AppUserService : BaseService, ITransient /// /// /// + [DisplayName("变更成员状态")] [HttpPost("member/status")] public async Task ChangeMemberStatus(ChangeMemberStatusInput input) { diff --git a/YD_Event.Application/Auth/AuthService.cs b/YD_Event.Application/Auth/AuthService.cs index 325721b..9cb6dfb 100644 --- a/YD_Event.Application/Auth/AuthService.cs +++ b/YD_Event.Application/Auth/AuthService.cs @@ -31,6 +31,7 @@ public class AuthService : IDynamicApiController /// /// /// + [DisplayName("系统用户登录")] [HttpPost] public async Task SignIn(AdminLoginInput dto) { @@ -85,6 +86,7 @@ public class AuthService : IDynamicApiController /// /// 验证码唯一id /// + [DisplayName("获取验证码")] [HttpGet] public IActionResult Captcha([FromQuery] string id) { diff --git a/YD_Event.Application/Event/UserCompetitionService.cs b/YD_Event.Application/Event/UserCompetitionService.cs index 23038ce..85475c3 100644 --- a/YD_Event.Application/Event/UserCompetitionService.cs +++ b/YD_Event.Application/Event/UserCompetitionService.cs @@ -71,6 +71,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 1. 赛事列表展示接口 /// + [DisplayName("赛事列表展示")] [HttpGet("list")] public async Task> Page([FromQuery] UserEventQueryInput input) { @@ -99,6 +100,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 2. 赛事详情查看接口 /// + [DisplayName("赛事详情查看")] [HttpGet("detail/{id}")] public async Task Detail([FromRoute] long id) { @@ -172,6 +174,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 3.1 选择报名项目接口 /// + [DisplayName("选择报名项目")] [HttpGet("projects/{eventId}")] public async Task> GetProjects([FromRoute] long eventId) { @@ -190,6 +193,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 3.2 分配队员接口 - 搜索队员 /// + [DisplayName("搜索队员")] [HttpGet("members/search")] public async Task> SearchMembers([FromQuery] string keyword) { @@ -221,6 +225,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 3.2 分配队员接口 - 提交报名(含保存草稿) /// + [DisplayName("提交报名")] [HttpPost("submit")] [UnitOfWork] public async Task SubmitRegistration([FromBody] UserSubmitRegistrationInput input) @@ -321,6 +326,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 3.3 预览支付接口 /// + [DisplayName("预览支付")] [HttpGet("preview/{registrationId}")] public async Task PreviewOrder([FromRoute] long registrationId) { @@ -361,6 +367,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 创建支付订单 /// + [DisplayName("创建支付订单")] [HttpPost("order/create")] [UnitOfWork] public async Task CreateOrder([FromBody] UserCreateOrderInput input) @@ -387,6 +394,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 1. 列表查询 /// + [DisplayName("参赛记录列表查询")] [HttpGet("/event/pc/registration/list")] [Authorize(Roles = "PC_USER")] public async Task> GetRegistrationList([FromQuery] RegistrationListQueryInput input) @@ -486,6 +494,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 2. 取消报名 /// + [DisplayName("取消报名")] [HttpPut("/event/pc/registration/{registrationId}/cancel")] [Authorize(Roles = "PC_USER")] [UnitOfWork] @@ -535,6 +544,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 3. 上传素材 /// + [DisplayName("上传素材")] [HttpPost("/event/pc/registration/{registrationId}/material")] [Authorize(Roles = "PC_USER")] [UnitOfWork] @@ -594,6 +604,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 4. 上传付款凭证 /// + [DisplayName("上传付款凭证")] [HttpPost("/event/pc/registration/{registrationId}/voucher")] [Authorize(Roles = "PC_USER")] [UnitOfWork] @@ -642,6 +653,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 5.1 查看队员列表 /// + [DisplayName("查看队员列表")] [HttpGet("/event/pc/registration/{registrationId}/member")] [Authorize(Roles = "PC_USER")] public async Task> GetTeamMembers([FromRoute] long registrationId) @@ -669,6 +681,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 5.2 更换队员 /// + [DisplayName("更换队员")] [HttpPut("/event/pc/registration/{registrationId}/member/{userId}/replace")] [Authorize(Roles = "PC_USER")] [UnitOfWork] @@ -720,6 +733,7 @@ public class UserCompetitionService : IDynamicApiController, ITransient /// /// 6. 查看证书 /// + [DisplayName("查看证书")] [HttpGet("/event/pc/registration/{registrationId}/certificate")] [Authorize(Roles = "PC_USER")] public async Task> GetCertificate([FromRoute] long registrationId) diff --git a/YD_Event.Application/Merchant/MerchantService.cs b/YD_Event.Application/Merchant/MerchantService.cs index 142a888..31e2c7e 100644 --- a/YD_Event.Application/Merchant/MerchantService.cs +++ b/YD_Event.Application/Merchant/MerchantService.cs @@ -191,6 +191,7 @@ public class MerchantService : BaseService, ITr /// /// 审核商户 /// + [DisplayName("审核商户")] [HttpPost("audit")] [UnitOfWork] public async Task Audit([FromBody] MerchantAuditInput input) @@ -209,6 +210,7 @@ public class MerchantService : BaseService, ITr /// /// 发放优惠券 /// + [DisplayName("发放优惠券")] [HttpPost("issueCoupon")] [UnitOfWork] public async Task IssueCoupon([FromBody] IssueCouponInput input) diff --git a/YD_Event.Application/User/SysUserService.cs b/YD_Event.Application/User/SysUserService.cs index 7a690ac..1e9538e 100644 --- a/YD_Event.Application/User/SysUserService.cs +++ b/YD_Event.Application/User/SysUserService.cs @@ -206,6 +206,7 @@ public class SysUserService : BaseService, ITransient /// /// /// + [DisplayName("系统用户详情")] [HttpGet("detail")] public async Task Detail([FromQuery] long id) { diff --git a/YD_Event.Core/Entities/EventInfo.cs b/YD_Event.Core/Entities/EventInfo.cs index 0036698..f9de7a4 100644 --- a/YD_Event.Core/Entities/EventInfo.cs +++ b/YD_Event.Core/Entities/EventInfo.cs @@ -1,4 +1,4 @@ -using SqlSugar; +using SqlSugar; using YD_Event.Core.Enum; namespace YD_Event.Core.Entities;