This commit is contained in:
2026-10-26 22:42:29 +08:00
parent 6f13816bcf
commit 554f6737cf
9 changed files with 331 additions and 47 deletions
+4 -4
View File
@@ -2,9 +2,9 @@
package model
import (
"time"
"gorm.io/gorm"
"portal-mini-go/internal/pkg/types"
)
// MiniProgram 是被后台纳管的微信小程序配置。
@@ -17,8 +17,8 @@ type MiniProgram struct {
AppSecret string `gorm:"column:app_secret;type:varchar(128);not null" json:"-"`
Status int8 `gorm:"type:tinyint;not null;default:1" json:"status"`
Ext string `gorm:"type:text" json:"ext"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
CreatedAt types.Time `json:"created_at"`
UpdatedAt types.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}