package
Version:
v0.0.0-...-31ddaea
Opens a new window with list of versions in this module.
Published: Nov 27, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AclPermissionUpdateRequest struct {
Permissions []string `json:"permissions"`
}
type AclUserUpdateRequest struct {
Permissions []string `json:"permissions"`
Roles []string `json:"roles"`
}
type AuthEmailRequest struct {
Email string `json:"email" validate:"required|min:3|email"`
}
type AuthLoginRequest struct {
Email string `json:"email" validate:"required|min:3|email"`
Password string `json:"password" validate:"required|min:6"`
}
type AuthPasswordResetRequest struct {
Token string `json:"token" validate:"required"`
Password string `json:"password" validate:"required|min:6"`
ConfirmPassword string `json:"confirm_password" validate:"required|min:6|same:password"`
}
type AuthRegisterRequest struct {
Name string `json:"name" validate:"required|min:3"`
Email string `json:"email" validate:"required|min:3|email"`
Password string `json:"password" validate:"required|min:6"`
ConfirmPassword string `json:"confirm_password" validate:"required|min:6|same:password"`
}
type PermissionCreateRequest struct {
Name string `json:"name" validate:"required|min:3"`
DisplayName string `json:"display_name" validate:"required|min:3"`
Description string `json:"description"`
}
type PermissionQueryParams struct {
Search string `query:"search"`
Page int `query:"page" default:"1"`
PerPage int `query:"per_page" default:"10"`
}
type PermissionUpdateRequest struct {
ID *common.ID `param:"id" validate:"required"`
Name string `json:"name" validate:"required|min:3"`
DisplayName string `json:"display_name" validate:"required|min:3"`
Description string `json:"description"`
}
type RoleCreateRequest struct {
Name string `json:"name" validate:"required|min:3"`
DisplayName string `json:"display_name" validate:"required|min:3"`
Description string `json:"description"`
}
type RoleQueryParams struct {
Search string `query:"search"`
Page int `query:"page" default:"1"`
PerPage int `query:"per_page" default:"10"`
}
type RoleUpdateRequest struct {
ID *common.ID `param:"id" validate:"required"`
Name string `json:"name" validate:"required|min:3"`
DisplayName string `json:"display_name" validate:"required|min:3"`
Description string `json:"description"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.