From f94c311b6bb4786ba3cc91b4d9aef5542614466c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 28 Nov 2024 10:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/advertising_callback.go | 11 +++++++++++ src/model/advertising_space.go | 1 + 2 files changed, 12 insertions(+) create mode 100644 src/model/advertising_callback.go diff --git a/src/model/advertising_callback.go b/src/model/advertising_callback.go new file mode 100644 index 0000000..e9c7458 --- /dev/null +++ b/src/model/advertising_callback.go @@ -0,0 +1,11 @@ +package model + +type AdvertisingCallback struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Platform string `json:"platform" xorm:"unique(platform) VARCHAR(255)"` + Oid string `json:"oid" xorm:"unique(platform) VARCHAR(255)"` + Uid int `json:"uid" xorm:"default 0 INT(11)"` + Extra string `json:"extra" xorm:"VARCHAR(255)"` + SpaceId string `json:"space_id" xorm:"VARCHAR(255)"` + Amount string `json:"amount" xorm:"VARCHAR(255)"` +} diff --git a/src/model/advertising_space.go b/src/model/advertising_space.go index 93dfbc6..a16a566 100644 --- a/src/model/advertising_space.go +++ b/src/model/advertising_space.go @@ -6,4 +6,5 @@ type AdvertisingSpace struct { Kind int `json:"kind" xorm:"not null default 1 comment('广告类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流广告)') TINYINT(1)"` Info string `json:"info" xorm:"TEXT"` CountingDown int `json:"counting_down" xorm:"default 0 comment('倒计时 单位秒') INT(11)"` + ServiceKey string `json:"service_key" xorm:"comment('回调校验') VARCHAR(255)"` }