feat: import services and standardize Go 1.26.5
This commit is contained in:
20
apps/base/mgt/internal/models/link_user_app.go
Normal file
20
apps/base/mgt/internal/models/link_user_app.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// 用户与应用关联表
|
||||
type MgtLinkUserApp struct {
|
||||
AppId uint `gorm:"column:app_id;primaryKey" json:"app_id"` // 应用ID
|
||||
UserId uint `gorm:"column:user_id;primaryKey" json:"user_id"` // 用户ID
|
||||
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime" json:"created_at,omitempty"` // 创建时间
|
||||
}
|
||||
|
||||
func (MgtLinkUserApp) TableName() string {
|
||||
return "mgt_link_user_app"
|
||||
}
|
||||
|
||||
// func init() {
|
||||
// database.AppendMigrate(&MgtLinkUserApp{})
|
||||
// }
|
||||
Reference in New Issue
Block a user