feat(api): permission

This commit is contained in:
ttk
2024-09-26 12:55:44 +08:00
parent 7ed7646954
commit c646a98059
20 changed files with 271 additions and 189 deletions

View File

@@ -159,5 +159,5 @@ func (c *Controller) GetGateways(ctx *gin.Context) {
db = db.Order("name")
doGet(ctx, !info, db, acl.GetResourceTypeName(conf.RESOURCE_GATEWAY), gatewayPostHooks...)
doGet(ctx, !info, db, conf.RESOURCE_GATEWAY, gatewayPostHooks...)
}