Browse Source

update

master
dengbiao 4 months ago
parent
commit
f57fa5ae83
4 changed files with 35 additions and 1 deletions
  1. +1
    -1
      cmd_db.bat
  2. +5
    -0
      src/dao/applet_application_ad_space_list_dao.go
  3. +14
    -0
      src/implement/applet_application_ad_space_list_implement.go
  4. +15
    -0
      src/model/applet_application_ad_space_list.go

+ 1
- 1
cmd_db.bat View File

@@ -12,7 +12,7 @@ if "%one%" NEQ "" (
set BasePath="./"
set DBUSER="root"
set DBPSW="Fnuo123com@"
set DBNAME="super_advertisement"
set DBNAME="advertisement"
set DBHOST="119.23.182.117"
set DBPORT="3306"



+ 5
- 0
src/dao/applet_application_ad_space_list_dao.go View File

@@ -0,0 +1,5 @@
package dao

type AppletApplicationAdSpaceListDao interface {
//TODO:: You can add specific method definitions here
}

+ 14
- 0
src/implement/applet_application_ad_space_list_implement.go View File

@@ -0,0 +1,14 @@
package implement

import (
"applet/app/db/dao"
"xorm.io/xorm"
)

func NewAppletApplicationAdSpaceListDb(engine *xorm.Engine) dao.AppletApplicationAdSpaceListDao {
return &AppletApplicationAdSpaceListDb{Db: engine}
}

type AppletApplicationAdSpaceListDb struct {
Db *xorm.Engine
}

+ 15
- 0
src/model/applet_application_ad_space_list.go View File

@@ -0,0 +1,15 @@
package model

import (
"time"
)

type AppletApplicationAdSpaceList struct {
Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
Name string `json:"name" xorm:"default '' comment('广告位名称') VARCHAR(255)"`
AppId string `json:"app_id" xorm:"not null default '' comment('小程序appid') VARCHAR(255)"`
Kind int `json:"kind" xorm:"not null default 1 comment('广告位类型(1:开屏广告 2:插屏广告 3:激励视频 4:信息流 5:Banner)') TINYINT(1)"`
State int `json:"state" xorm:"not null default 0 comment('状态(0:待审核 1:审核通过 2:审核拒绝 3:封禁中)') TINYINT(1)"`
CreateAt time.Time `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
Update time.Time `json:"update" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
}

Loading…
Cancel
Save