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 ¶
Click to show internal directories.
Click to hide internal directories.