auth

package
v0.0.0-...-d6791e1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminRole  = "ADMIN"
	MemberRole = "MEMBER"
)

Variables

View Source
var Permission = struct {
	GetUserProfile    Right
	UpdateUserProfile Right
	DeleteUser        Right
	DeactivateUser    Right
	GetListUser       Right

	GetListOrDetailRole Right
	CreateOrUpdateRole  Right
	DeleteRole          Right
	AssignRoletoUsers   Right
}{
	GetUserProfile: Right{
		Code:        "USER-001",
		Description: "get user profile",
		Service:     constants.ServerNamespace,
	},
	UpdateUserProfile: Right{
		Code:        "USER-002",
		Description: "update user profile",
		Service:     constants.ServerNamespace,
	},
	DeleteUser: Right{
		Code:        "USER-003",
		Description: "delete user",
		Service:     constants.ServerNamespace,
	},
	DeactivateUser: Right{
		Code:        "USER-004",
		Description: "deactivate user",
		Service:     constants.ServerNamespace,
	},
	GetListUser: Right{
		Code:        "USER-005",
		Description: "get list user",
		Service:     constants.ServerNamespace,
	},

	GetListOrDetailRole: Right{
		Code:        "USER-006",
		Description: "get list or detail role",
		Service:     constants.ServerNamespace,
	},
	CreateOrUpdateRole: Right{
		Code:        "USER-007",
		Description: "create or update role",
		Service:     constants.ServerNamespace,
	},
	DeleteRole: Right{
		Code:        "USER-008",
		Description: "delete role",
		Service:     constants.ServerNamespace,
	},
	AssignRoletoUsers: Right{
		Code:        "USER-009",
		Description: "assign role to users",
		Service:     constants.ServerNamespace,
	},
}

Functions

This section is empty.

Types

type Right struct {
	Code        string
	Description string
	Service     string
}

Jump to

Keyboard shortcuts

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