fusenapi/model/gmodel/fs_auth_assignment_gen.go

22 lines
653 B
Go
Raw Normal View History

2023-06-19 01:53:35 +00:00
package gmodel
2023-06-16 11:04:13 +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 11:04:13 +00:00
// FsAuthAssignmentIbfk1 foreign `gorm:"" json:"fs_auth_assignment_ibfk_1"`//
}
type FsAuthAssignmentModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsAuthAssignmentModel(db *gorm.DB) *FsAuthAssignmentModel {
return &FsAuthAssignmentModel{db: db, name: "fs_auth_assignment"}
}