feat: import services and standardize Go 1.26.5
This commit is contained in:
16
apps/base/mgt/internal/models/link_dpt_role.go
Normal file
16
apps/base/mgt/internal/models/link_dpt_role.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// 部门与角色关联表(部门替代用户组:一个部门可关联多个角色)
|
||||
type MgtLinkDptRole struct {
|
||||
DptId uint `gorm:"column:dpt_id;primaryKey" json:"dpt_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 (MgtLinkDptRole) TableName() string {
|
||||
return "mgt_link_dpt_role"
|
||||
}
|
||||
Reference in New Issue
Block a user