From 7a3353ee9652764746763025eae2a55f75817abd Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 7 May 2026 01:34:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E5=92=8C=E7=BC=96=E8=BE=91=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E5=8A=9F=E8=83=BD,=20=E4=BB=A3=E7=90=86=E5=85=85=E5=80=BC?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20NumberField=20=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/router/admin/agent_apps.go | 6 +- frontend/src/pages/admin/agent-apps/index.vue | 225 +++++++++++++++++- frontend/src/pages/admin/agents/index.vue | 14 +- 3 files changed, 234 insertions(+), 11 deletions(-) diff --git a/backend/internal/router/admin/agent_apps.go b/backend/internal/router/admin/agent_apps.go index 863b50a..11a81ba 100644 --- a/backend/internal/router/admin/agent_apps.go +++ b/backend/internal/router/admin/agent_apps.go @@ -661,8 +661,9 @@ func handleUpdateAgentCardTypes(c *gin.Context) { var reqBody struct { CardTypes []struct { - CardTypeID uint `json:"card_type_id"` - CanGenerate bool `json:"can_generate"` + CardTypeID uint `json:"card_type_id"` + CanGenerate bool `json:"can_generate"` + Price float64 `json:"price"` } `json:"card_types"` } if err := c.ShouldBindJSON(&reqBody); err != nil { @@ -689,6 +690,7 @@ func handleUpdateAgentCardTypes(c *gin.Context) { AgentApplicationID: agentApp.ID, CardTypeID: ct.CardTypeID, CanGenerate: ct.CanGenerate, + Price: ct.Price, } if err := tx.Create(&agentCardType).Error; err != nil { tx.Rollback() diff --git a/frontend/src/pages/admin/agent-apps/index.vue b/frontend/src/pages/admin/agent-apps/index.vue index e204c75..69d893d 100644 --- a/frontend/src/pages/admin/agent-apps/index.vue +++ b/frontend/src/pages/admin/agent-apps/index.vue @@ -1,5 +1,5 @@