refactor: reorganize modules and add Linux build tooling
This commit is contained in:
17
module/base/mgt/internal/models/link_dpt_pmn.go
Normal file
17
module/base/mgt/internal/models/link_dpt_pmn.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// 部门与权限关联表(部门替代用户组:一个部门可关联多个权限,按应用维度与 user_pmn/role_pmn 一致)
|
||||
type MgtLinkDptPmn struct {
|
||||
DptId uint `gorm:"column:dpt_id;primaryKey" json:"dpt_id"` // 部门ID
|
||||
AppId uint `gorm:"column:app_id;primaryKey" json:"app_id"` // 应用ID
|
||||
PmnId uint `gorm:"column:pmn_id;primaryKey" json:"pmn_id"` // 权限ID
|
||||
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime" json:"created_at,omitempty"` // 创建时间
|
||||
}
|
||||
|
||||
func (MgtLinkDptPmn) TableName() string {
|
||||
return "mgt_link_dpt_pmn"
|
||||
}
|
||||
Reference in New Issue
Block a user