fusenapi/model/gmodel/fs_auth_rule_gen.go

22 lines
600 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_rule 规则表
type FsAuthRule struct {
Name string `gorm:"primary_key;default:'';" json:"name"` // 规则名称
Data *[]byte `gorm:"default:'';" json:"data"` // 规则的额外数据
2023-08-18 03:41:36 +00:00
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
2023-06-16 11:04:13 +00:00
}
type FsAuthRuleModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsAuthRuleModel(db *gorm.DB) *FsAuthRuleModel {
return &FsAuthRuleModel{db: db, name: "fs_auth_rule"}
}