feat: import services and standardize Go 1.26.5
This commit is contained in:
28
apps/base/ads/internal/models/ads_pos.go
Normal file
28
apps/base/ads/internal/models/ads_pos.go
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @Author: ZhaoYadong
|
||||
* @Date: 2021-12-13 14:28:49
|
||||
* @LastEditors: ZhaoYadong
|
||||
* @LastEditTime: 2022-01-18 16:55:00
|
||||
* @FilePath: /src/git.buka.tv/cloud-disk/internal/models/share.go
|
||||
*/
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"git.apinb.com/bsm-sdk/engine/types"
|
||||
)
|
||||
|
||||
type AdsPos struct {
|
||||
types.Std_IdCreated
|
||||
Key string `gorm:"column:key;type:varchar(255);not null;" json:"key"` // 广告位的标记
|
||||
Name string `gorm:"column:name;type:varchar(255);not null;" json:"name"` // 广告位的名称
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&AdsPos{})
|
||||
}
|
||||
|
||||
// TableName .
|
||||
func (table *AdsPos) TableName() string {
|
||||
return "ads_pos" //对应数据库表名
|
||||
}
|
||||
Reference in New Issue
Block a user