Documentation ¶
Index ¶
- func AdminLogin(c echo.Context) error
- func AdminProfile(c echo.Context) error
- func CreateClient(c echo.Context) error
- func PermissionList(c echo.Context) error
- func RandString(n int) string
- func RoleDetails(c echo.Context) error
- func RoleList(c echo.Context) error
- func RoleNew(c echo.Context) error
- func RolePatch(c echo.Context) error
- func RoleRange(c echo.Context) error
- func UserDetails(c echo.Context) error
- func UserFirstLoginChangePassword(c echo.Context) error
- func UserList(c echo.Context) error
- func UserNew(c echo.Context) error
- func UserPatch(c echo.Context) error
- type AdminLoginCreds
- type JWTclaims
- type RolePayload
- type UserPayload
- type UserSelect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PermissionList ¶
PermissionList get all defined permissions
func RandString ¶
RandString random string alphanumeric. parameter length
func UserFirstLoginChangePassword ¶
UserFirstLoginChangePassword check if user is first login and change the password
Types ¶
type AdminLoginCreds ¶
AdminLoginCreds admin credentials container
type JWTclaims ¶
type JWTclaims struct { Username string `json:"username"` Group string `json:"group"` Permissions []string `json:"permissions"` jwt.StandardClaims }
JWTclaims type
type RolePayload ¶
type RolePayload struct { Name string `json:"name"` Description string `json:"description"` System string `json:"system"` Status string `json:"status"` Permissions []string `json:"permissions"` }
RolePayload handles role request body
type UserPayload ¶
type UserPayload struct { Roles []int64 `json:"roles"` Username string `json:"username"` Email string `json:"email"` Phone string `json:"phone"` Status string `json:"status"` }
UserPayload handle user request body
type UserSelect ¶
type UserSelect struct { // UserSelect custom query models.User RolesName pq.StringArray `json:"roles_name"` }
UserSelect custom select container
Click to show internal directories.
Click to hide internal directories.