request

package
v0.0.0-...-31ddaea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AclPermissionUpdateRequest

type AclPermissionUpdateRequest struct {
	Permissions []string `json:"permissions"`
}

type AclUserUpdateRequest

type AclUserUpdateRequest struct {
	Permissions []string `json:"permissions"`
	Roles       []string `json:"roles"`
}

type AuthEmailRequest

type AuthEmailRequest struct {
	Email string `json:"email" validate:"required|min:3|email"`
}

type AuthLoginRequest

type AuthLoginRequest struct {
	Email    string `json:"email" validate:"required|min:3|email"`
	Password string `json:"password" validate:"required|min:6"`
}

type AuthPasswordResetRequest

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

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

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

type PermissionQueryParams struct {
	Search  string `query:"search"`
	Page    int    `query:"page" default:"1"`
	PerPage int    `query:"per_page" default:"10"`
}

type PermissionUpdateRequest

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

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

type RoleQueryParams struct {
	Search  string `query:"search"`
	Page    int    `query:"page" default:"1"`
	PerPage int    `query:"per_page" default:"10"`
}

type RoleUpdateRequest

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"`
}

Jump to

Keyboard shortcuts

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