From 8cbad66b32b44fccde49986aaf26ecc3bc7a7066 Mon Sep 17 00:00:00 2001 From: "hangyu.tao" Date: Fri, 16 Jan 2026 18:59:19 +0800 Subject: [PATCH] fix_page --- cmd/server/main.go | 20 ++++---- frontend/index.html | 3 +- frontend/js/main.js | 24 ++++------ frontend/js/trial-periods-page.js | 56 ++++++++++++++--------- internal/handlers/trial_period_handler.go | 55 ++++++++-------------- internal/storage/trial_period_storage.go | 2 +- models/trial_period.go | 29 ++++++------ services/trial_expiry.go | 14 +++--- 8 files changed, 98 insertions(+), 105 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index 89bd4b1..4602312 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -57,11 +57,11 @@ func main() { serviceTrialPeriods := make([]services.TrialPeriod, len(trialPeriods)) for i, tp := range trialPeriods { serviceTrialPeriods[i] = services.TrialPeriod{ - ID: tp.ID, - CustomerID: tp.CustomerID, - StartTime: tp.StartTime, - EndTime: tp.EndTime, - CreatedAt: tp.CreatedAt, + ID: tp.ID, + CustomerName: tp.CustomerName, + StartTime: tp.StartTime, + EndTime: tp.EndTime, + CreatedAt: tp.CreatedAt, } } @@ -97,11 +97,11 @@ func main() { serviceTrialPeriods := make([]services.TrialPeriod, len(trialPeriods)) for i, tp := range trialPeriods { serviceTrialPeriods[i] = services.TrialPeriod{ - ID: tp.ID, - CustomerID: tp.CustomerID, - StartTime: tp.StartTime, - EndTime: tp.EndTime, - CreatedAt: tp.CreatedAt, + ID: tp.ID, + CustomerName: tp.CustomerName, + StartTime: tp.StartTime, + EndTime: tp.EndTime, + CreatedAt: tp.CreatedAt, } } diff --git a/frontend/index.html b/frontend/index.html index f356e55..456a4a9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -253,8 +253,7 @@
-
-

客户信息

+