上传服务器支持分流s3上传

This commit is contained in:
ayflying
2025-01-24 12:12:58 +08:00
parent b219123ded
commit 5e885af295
4 changed files with 105 additions and 25 deletions

29
act/act.go Normal file
View File

@@ -0,0 +1,29 @@
package act
import (
"github.com/gogf/gf/v2/os/gtime"
)
type act struct {
}
type Sql struct {
UID uint64 `gorm:"primaryKey;comment:玩家编号"`
ActID int `gorm:"primaryKey;comment:活动编号"`
Action string `gorm:"type:text;comment:活动配置"`
UpdatedAt *gtime.Time `gorm:"index;comment:更新时间"`
}
func New() *act {
return &act{}
}
func (s *act) CreateTable(name string) {
//prefix := g.DB().GetPrefix()
//
//g.DB()
//g.DB().Exec(gctx.New())
}