2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_auth_item_child 角色和权限关系表
|
|
|
|
type FsAuthItemChild struct {
|
|
|
|
Parent *string `gorm:"index;default:'';" json:"parent"` // 父角色或权限名称
|
|
|
|
Child *string `gorm:"index;default:'';" json:"child"` // 子角色或权限名称
|
|
|
|
// FsAuthItemChildIbfk1 foreign `gorm:"" json:"fs_auth_item_child_ibfk_1"`//
|
|
|
|
// FsAuthItemChildIbfk2 foreign `gorm:"" json:"fs_auth_item_child_ibfk_2"`//
|
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsAuthItemChildModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsAuthItemChildModel(db *gorm.DB) *FsAuthItemChildModel {
|
|
|
|
return &FsAuthItemChildModel{db: db, name: "fs_auth_item_child"}
|
|
|
|
}
|