From 493ab2ac56612eec5a4d9acbebde2d1fc34ad4b5 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 22 Oct 2024 15:53:16 +0800 Subject: [PATCH 1/2] 1 --- api/proto/Raven_IQ_test_visit/proto/Raven_IQ_test_visit_api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/proto/Raven_IQ_test_visit/proto/Raven_IQ_test_visit_api.go b/api/proto/Raven_IQ_test_visit/proto/Raven_IQ_test_visit_api.go index 04067d2c..37605e4e 100644 --- a/api/proto/Raven_IQ_test_visit/proto/Raven_IQ_test_visit_api.go +++ b/api/proto/Raven_IQ_test_visit/proto/Raven_IQ_test_visit_api.go @@ -62,6 +62,7 @@ type ApiCountReq struct { type ApiCountData struct { VisitCount int64 `json:"visit_count" bson:"visit_count"` PaidCount int64 `json:"paid_count" bson:"paid_count"` + TotalCount int64 `json:"total_count" bson:"total_count"` } type ApiCountResp struct { From 3a69a803aec4268316414845015b8f3b522fed52 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 22 Oct 2024 15:53:41 +0800 Subject: [PATCH 2/2] 1 --- app/mix/controller/Raven_IQ_test_visit_api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mix/controller/Raven_IQ_test_visit_api.go b/app/mix/controller/Raven_IQ_test_visit_api.go index eea99097..42886c9e 100644 --- a/app/mix/controller/Raven_IQ_test_visit_api.go +++ b/app/mix/controller/Raven_IQ_test_visit_api.go @@ -35,6 +35,7 @@ func ApiGetRavenIQTestVisitCount(ctx *gin.Context) { data := &Raven_IQ_test_visitproto.ApiCountData{ VisitCount: countMap[consts.RavenIQTest_VType_Visit], PaidCount: countMap[consts.RavenIQTest_VType_Paid], + TotalCount: countMap[consts.RavenIQTest_VType_Visit] + countMap[consts.RavenIQTest_VType_Paid], } ReplyOk(ctx, data)