Explorar o código

Update sys_casbin.go

SliverHorn %!s(int64=3) %!d(string=hai) anos
pai
achega
5939a24f54
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/model/sys_casbin.go

+ 1 - 1
server/model/sys_casbin.go

@@ -1,7 +1,7 @@
 package model
 
 type CasbinModel struct {
-	Ptype       string `json:"ptype" gorm:"column:p_type"`
+	Ptype       string `json:"ptype" gorm:"column:ptype"`
 	AuthorityId string `json:"rolename" gorm:"column:v0"`
 	Path        string `json:"path" gorm:"column:v1"`
 	Method      string `json:"method" gorm:"column:v2"`