mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-08 21:11:26 +08:00
16
kit/casbin/casbin_model.go
Normal file
16
kit/casbin/casbin_model.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package casbin
|
||||
|
||||
type CasbinRule struct {
|
||||
Ptype string `json:"ptype" gorm:"column:ptype"`
|
||||
RoleKey string `json:"roleKey" gorm:"column:v0"`
|
||||
Path string `json:"path" gorm:"column:v1"`
|
||||
Method string `json:"method" gorm:"column:v2"`
|
||||
V3 string `json:"v3" gorm:"column:v3"`
|
||||
V4 string `json:"v4" gorm:"column:v4"`
|
||||
V5 string `json:"v5" gorm:"column:v5"`
|
||||
Id int `json:"id" gorm:"primary_key;AUTO_INCREMENT;column:id"`
|
||||
}
|
||||
|
||||
func (CasbinRule) TableName() string {
|
||||
return "casbin_rule"
|
||||
}
|
||||
Reference in New Issue
Block a user