2023-06-19 02:12:58 +00:00
|
|
|
package gmodel
|
2023-06-16 10:52:24 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_auth_assignment 用户角色和权限信息
|
|
|
|
type FsAuthAssignment struct {
|
|
|
|
ItemName *string `gorm:"index;default:'';" json:"item_name"` // 角色或权限名称
|
|
|
|
UserId *string `gorm:"index;default:'';" json:"user_id"` // 用户ID
|
2023-06-16 11:29:48 +00:00
|
|
|
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
2023-06-16 10:52:24 +00:00
|
|
|
// FsAuthAssignmentIbfk1 foreign `gorm:"" json:"fs_auth_assignment_ibfk_1"`//
|
|
|
|
}
|
|
|
|
type FsAuthAssignmentModel struct{ db *gorm.DB }
|
|
|
|
|
|
|
|
func NewFsAuthAssignmentModel(db *gorm.DB) *FsAuthAssignmentModel { return &FsAuthAssignmentModel{db} }
|