feat: 升级 samber/do v1 → v2
This commit is contained in:
+6
-6
@@ -1,11 +1,11 @@
|
||||
package base
|
||||
|
||||
type ResApiParam struct {
|
||||
Code string `db:"code"`
|
||||
Name string `db:"name"`
|
||||
Category string `db:"category"`
|
||||
DataType string `db:"type"`
|
||||
IsRequired bool `db:"isRequired"`
|
||||
Code string `db:"code" json:"code"`
|
||||
Name string `db:"name" json:"name"`
|
||||
Category string `db:"category" json:"category"`
|
||||
DataType string `db:"type" json:"type"`
|
||||
IsRequired bool `db:"isRequired" json:"isRequired"`
|
||||
}
|
||||
|
||||
type ResApi struct {
|
||||
@@ -16,7 +16,7 @@ type ResApi struct {
|
||||
PrimaryKey string `db:"primaryKey"`
|
||||
ResourceUuid string `db:"resource_uuid"`
|
||||
Method string `db:"method"`
|
||||
Category string `db:"action"`
|
||||
Action string `db:"action"`
|
||||
Params []ResApiParam `db:"params"`
|
||||
Roles []string `db:"roles"`
|
||||
IsAuthDB int `db:"is_auth_db"` // 启用权限过滤
|
||||
|
||||
Reference in New Issue
Block a user