Documentation
¶
Index ¶
- func Register()
- type API
- type APIModule
- type APIRsp
- type APIService
- type Button
- type ButtonModule
- type ButtonService
- type CasbinRule
- type Menu
- type MenuModule
- type MenuService
- type Permission
- type PermissionModule
- type Role
- type RoleModule
- type RoleService
- type UserRole
- type UserRoleModule
- type UserRoleService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register()
Register register modules: Permission, Role, UserRole.
Modules:
- Permission
- Role
- UserRole
- CasbinRule
- Menu
Routes:
- GET /api/authz/permissions
- GET /api/authz/permissions/:id
- POST /api/authz/roles
- DELETE /api/authz/roles/:id
- PUT /api/authz/roles/:id
- PATCH /api/authz/roles/:id
- GET /api/authz/roles
- GET /api/authz/roles/:id
- POST /api/authz/user-roles
- DELETE /api/authz/user-roles/:id
- PUT /api/authz/user-roles/:id
- PATCH /api/authz/user-roles/:id
- GET /api/authz/user-roles
- GET /api/authz/user-roles/:id
- POST /api/menus
- DELETE /api/menus/:id
- PUT /api/menus/:id
- PATCH /api/menus/:id
- GET /api/menus
- GET /api/menus/:id
- GET /api/apis
- POST /api/buttons
- DELETE /api/buttons/:id
- PUT /api/buttons/:id
- PATCH /api/buttons/:id
- GET /api/buttons
- GET /api/buttons/:id
Middleware:
- Authz
Panic if creates table records failed.
Types ¶
type API ¶
type API = modelauthz.API
type APIRsp ¶
type APIRsp = modelauthz.APIRsp
type APIService ¶
type APIService = serviceauthz.APIService
type Button ¶
type Button = modelauthz.Button
type ButtonModule ¶
type ButtonModule struct{}
func (*ButtonModule) Param ¶
func (*ButtonModule) Param() string
func (*ButtonModule) Pub ¶
func (*ButtonModule) Pub() bool
func (*ButtonModule) Route ¶
func (*ButtonModule) Route() string
type ButtonService ¶
type ButtonService = serviceauthz.ButtonService
type CasbinRule ¶
type CasbinRule = modelauthz.CasbinRule
type Menu ¶
type Menu = modelauthz.Menu
type MenuModule ¶
type MenuModule struct{}
func (*MenuModule) Param ¶
func (*MenuModule) Param() string
func (*MenuModule) Pub ¶
func (*MenuModule) Pub() bool
func (*MenuModule) Route ¶
func (*MenuModule) Route() string
type MenuService ¶
type MenuService = serviceauthz.MenuService
type Permission ¶
type Permission = modelauthz.Permission
type PermissionModule ¶
type PermissionModule struct{}
func (*PermissionModule) Param ¶
func (*PermissionModule) Param() string
func (*PermissionModule) Pub ¶
func (*PermissionModule) Pub() bool
func (*PermissionModule) Route ¶
func (*PermissionModule) Route() string
func (*PermissionModule) Service ¶
func (*PermissionModule) Service() types.Service[*Permission, *Permission, *Permission]
type Role ¶
type Role = modelauthz.Role
type RoleModule ¶
type RoleModule struct{}
func (*RoleModule) Param ¶
func (*RoleModule) Param() string
func (*RoleModule) Pub ¶
func (*RoleModule) Pub() bool
func (*RoleModule) Route ¶
func (*RoleModule) Route() string
type RoleService ¶
type RoleService = serviceauthz.RoleService
type UserRole ¶
type UserRole = modelauthz.UserRole
type UserRoleModule ¶
type UserRoleModule struct{}
func (*UserRoleModule) Param ¶
func (*UserRoleModule) Param() string
func (*UserRoleModule) Pub ¶
func (*UserRoleModule) Pub() bool
func (*UserRoleModule) Route ¶
func (*UserRoleModule) Route() string
type UserRoleService ¶
type UserRoleService = serviceauthz.UserRoleService
Click to show internal directories.
Click to hide internal directories.