From 029f9c79d441f876364c74cef8818b9b2519e9ad Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 6 Dec 2024 18:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E4=BD=8Did?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/md/md_data_center_generate_data.go | 1 + app/svc/svc_data_center_generate_data.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/md/md_data_center_generate_data.go b/app/md/md_data_center_generate_data.go index 192eed3..59c9a0d 100644 --- a/app/md/md_data_center_generate_data.go +++ b/app/md/md_data_center_generate_data.go @@ -66,6 +66,7 @@ type DataCenterIncomeDataData struct { Name string `json:"name" example:"名称"` Platform string `json:"platform" example:"平台名称"` AdvName string `json:"adv_name" example:"广告位"` + AdvId string `json:"adv_id" example:"广告位Id"` State string `json:"state" example:"状态id"` ExposureCount string `json:"exposure_count" example:"现-曝光量"` ClickCount string `json:"click_count" example:"现-点击量"` diff --git a/app/svc/svc_data_center_generate_data.go b/app/svc/svc_data_center_generate_data.go index 846bb23..7a76c49 100644 --- a/app/svc/svc_data_center_generate_data.go +++ b/app/svc/svc_data_center_generate_data.go @@ -51,6 +51,7 @@ func DataCenterIncomeDataListForOpen(c *gin.Context, req md.DataCenterGenerateDa if tmpSlot["name"] != "" { tmp.AdvName = tmpSlot["name"] } + tmp.AdvId = v.SlotId data = append(data, tmp) } } @@ -102,6 +103,7 @@ func DataCenterIncomeDataList(c *gin.Context, req md.DataCenterGenerateDataReq) if tmpSlot["name"] != "" { tmp.AdvName = tmpSlot["name"] } + tmp.AdvId = v.SlotId data = append(data, tmp) } } @@ -167,6 +169,7 @@ func DataCenterIncomeDataListOutput(c *gin.Context, req md.DataCenterGenerateDat if tmpSlot["name"] != "" { tmp.AdvName = tmpSlot["name"] } + tmp.AdvId = v.SlotId i := utils.IntToStr(k + 2) data["A"+i] = tmp.Name data["B"+i] = tmp.Date