From 1c6c8536c0f7f073987da6f6d6d7c72447ec387f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com>
Date: Sat, 11 May 2024 17:12:11 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Evip=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
New_College.Api/Controllers/Front/VipController.cs | 14 ++++++++++++++
New_College.IServices/IV_VipCardInfoServices.cs | 3 +++
New_College.Services/V_VipCardInfoServices.cs | 2 +-
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/New_College.Api/Controllers/Front/VipController.cs b/New_College.Api/Controllers/Front/VipController.cs
index ec0374b..f4be923 100644
--- a/New_College.Api/Controllers/Front/VipController.cs
+++ b/New_College.Api/Controllers/Front/VipController.cs
@@ -53,6 +53,20 @@ namespace New_College.Api.Controllers.Front
return await v_VipCardInfoServices.BindCardInfo(query);
}
+
+
+ ///
+ /// 开放绑卡
+ ///
+ ///
+ ///
+ [HttpPost]
+ [Authorize]
+ public async Task> OpenBindCardInfo(OpenVipCardRequest query)
+ {
+ return await v_VipCardInfoServices.OpenBindCardInfo(query);
+ }
+
///
/// 获取vip信息 传用户Id
///
diff --git a/New_College.IServices/IV_VipCardInfoServices.cs b/New_College.IServices/IV_VipCardInfoServices.cs
index b51187f..1aa7827 100644
--- a/New_College.IServices/IV_VipCardInfoServices.cs
+++ b/New_College.IServices/IV_VipCardInfoServices.cs
@@ -17,6 +17,9 @@ namespace New_College.IServices
Task> BindCardInfo(VipCardQuery query);
+ Task> OpenBindCardInfo(OpenVipCardRequest query);
+
+
///
/// 获取vip信息
///
diff --git a/New_College.Services/V_VipCardInfoServices.cs b/New_College.Services/V_VipCardInfoServices.cs
index 5b250dd..6a8832c 100644
--- a/New_College.Services/V_VipCardInfoServices.cs
+++ b/New_College.Services/V_VipCardInfoServices.cs
@@ -94,7 +94,7 @@ namespace New_College.Services
///
///
///
- public async Task> OpemBindCardInfo(OpenVipCardRequest query)
+ public async Task> OpenBindCardInfo(OpenVipCardRequest query)
{
var cardinfo = (await _dal.Query(x => x.IsDelete == false && x.Code == query.CardCode && x.Pwd == query.CardPwd)).FirstOrDefault();