 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PermissionCreate ¶
func PermissionCreate(c *fiber.Ctx) error
func PermissionDelete ¶
func PermissionDelete(c *fiber.Ctx) error
func PermissionEdit ¶
func PermissionEdit(c *fiber.Ctx) error
Types ¶
type PermissionData ¶
type PermissionData struct {
	C      bool   `json:"c"`
	D      bool   `json:"d"`
	MenuID string `json:"menu_id"`
	R      bool   `json:"r"`
	Show   bool   `json:"show"`
	Title  string `json:"title"`
	U      bool   `json:"u"`
}
    func GetPermission ¶
func GetPermission(c *fiber.Ctx) PermissionData
type Permissions ¶
type Permissions struct {
	DefaultMenu string `json:"default_menu"`
	Extra       struct {
		Chart       bool `json:"chart"`
		Datasourcce bool `json:"datasourcce"`
		Datasource  bool `json:"datasource"`
		Moqup       bool `json:"moqup"`
	} `json:"extra"`
	MenuID      int                       `json:"menu_id"`
	Permissions map[string]PermissionData `json:"permissions"`
}
     Click to show internal directories. 
   Click to hide internal directories.