apiperm

command module
v0.0.0-...-4b6388e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

README

1. 默认权限

resolver.perm: 针对graphql接口 views.perm: 针对restful接口

[write]
CreateRole = admin
CreateUser = amdin
CreateDate
Logout

[read]
CreateRole = admin
Users = amdin,public
Datas = amdin,public
  • write: 表示SET方式(增删改资源)的rest接口、graphql节点。
  • read: 表示QUERY方式(获取资源)的rest接口、graphql节点。
  • CreateRole = admin: 含义为: 节点/视图 = 默认角色(多个角色以逗号隔开)

2. 初始化graphql

$ go run github.com/99designs/gqlgen init

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL