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 { 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)