refactor: reorganize modules and add Linux build tooling
This commit is contained in:
20
module/base/mgt/internal/models/link_role_app.go
Normal file
20
module/base/mgt/internal/models/link_role_app.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// 角色与应用关联表
|
||||
type MgtLinkRoleApp struct {
|
||||
AppId uint `gorm:"column:app_id;primaryKey" json:"app_id"` // 应用ID
|
||||
RoleId uint `gorm:"column:role_id;primaryKey" json:"role_id"` // 角色ID
|
||||
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime" json:"created_at,omitempty"` // 创建时间
|
||||
}
|
||||
|
||||
func (MgtLinkRoleApp) TableName() string {
|
||||
return "mgt_link_role_app"
|
||||
}
|
||||
|
||||
// func init() {
|
||||
// database.AppendMigrate(&MgtLinkRoleApp{})
|
||||
// }
|
||||
Reference in New Issue
Block a user