payloads

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRightPayload

type CreateRightPayload struct {
	Name string `json:"name" binding:"required"`
}

type CreateRolePayload

type CreateRolePayload struct {
	Name string `json:"name" binding:"required"`
}

type CreateUserPayload

type CreateUserPayload struct {
	Email    string   `json:"email" binding:"required,email"`
	Password string   `json:"password" binding:"required"`
	Username string   `json:"username" binding:"required"`
	Role     string   `json:"role" binding:"required"`
	Rights   []string `json:"rights"`
}

type ExchangeCodeRequestPayload

type ExchangeCodeRequestPayload struct {
	Email string `json:"email" binding:"required"`
	Code  string `json:"code" binding:"required"`
}

type InviteUserPayload

type InviteUserPayload struct {
	Email string `json:"email"`
}

type PasswordResetPayload

type PasswordResetPayload struct {
	Email    string `json:"email" binding:"required"`
	Code     string `json:"code" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type RecoveryEmailPayload

type RecoveryEmailPayload struct {
	Email string `json:"email" binding:"required"`
}

type UpdateRightPayload

type UpdateRightPayload struct {
	Name string `json:"name" binding:"required"`
}

type UpdateRolePayload

type UpdateRolePayload struct {
	Name string `json:"name" binding:"required"`
}

type UpdateUserPayload

type UpdateUserPayload struct {
	Email                string `json:"email"`
	Username             string `json:"username"`
	IsActive             bool   `json:"isActive"`
	ShouldChangePassword bool   `json:"shoudlChangePassword"`
}

Jump to

Keyboard shortcuts

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