Browse Source

广告

master
huangjiajun 1 week ago
parent
commit
f94c311b6b
2 changed files with 12 additions and 0 deletions
  1. +11
    -0
      src/model/advertising_callback.go
  2. +1
    -0
      src/model/advertising_space.go

+ 11
- 0
src/model/advertising_callback.go View File

@@ -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)"`
}

+ 1
- 0
src/model/advertising_space.go View File

@@ -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)"`
}

Loading…
Cancel
Save