refactor: reorganize modules and add Linux build tooling
This commit is contained in:
20
module/base/mgt/internal/models/link_dpt_user.go
Normal file
20
module/base/mgt/internal/models/link_dpt_user.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// 用户与部门关联表
|
||||
type MgtLinkUserDpt struct {
|
||||
UserId uint `gorm:"column:user_id;primaryKey" json:"user_id"` // 用户ID
|
||||
DptId uint `gorm:"column:dpt_id;primaryKey" json:"dpt_id"` // 部门ID
|
||||
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime" json:"created_at,omitempty"` // 创建时间
|
||||
}
|
||||
|
||||
func (MgtLinkUserDpt) TableName() string {
|
||||
return "mgt_link_user_dpt"
|
||||
}
|
||||
|
||||
// func init() {
|
||||
// database.AppendMigrate(&MgtLinkUserDpt{})
|
||||
// }
|
||||
Reference in New Issue
Block a user