feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View 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" //对应数据库表名
}