request

package
v2.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthLoginRequest

type AuthLoginRequest struct {
	Login    string `json:"login" binding:"required,max=255"`
	Password string `json:"password" binding:"required,max=255"`
	DeviceID int    `json:"device_id" binding:"required,device_id"`
}

type AuthLogoutRequest

type AuthLogoutRequest struct {
	Token string `json:"accessToken" binding:"required"`
}

type AuthRefreshRequest

type AuthRefreshRequest struct {
	Token    string `json:"token" binding:"required"`
	DeviceID int    `json:"device_id" binding:"required,device_id"`
}

type AuthUpdateAccountDataRequest added in v2.0.12

type AuthUpdateAccountDataRequest struct {
	Login      *string `json:"login" binding:"omitempty,max=255,min=2"`
	FirstName  *string `json:"first_name" binding:"omitempty,max=255,min=2"`
	SecondName *string `json:"second_name" binding:"omitempty,len=0|min=2,max=255"`
	LastName   *string `json:"last_name" binding:"omitempty,len=0|min=2,max=255"`
	Password   *string `json:"password" binding:"omitempty,max=255,min=8"`
	Email      *string `json:"email" binding:"omitempty,len=0|email,max=255"`
	Phone      *string `json:"phone" binding:"omitempty,len=0|min=1,max=255"`
}

type RoleCreateRequest added in v2.0.4

type RoleCreateRequest struct {
	Name  string `json:"name" binding:"required,max=255,min=2"`
	Write []int  `json:"write" binding:"required"`
	Read  []int  `json:"read" binding:"required"`
	Exec  []int  `json:"exec" binding:"required"`
}

type RoleUpdateRequest added in v2.0.4

type RoleUpdateRequest struct {
	Name  *string `json:"name" binding:"omitempty,max=255,min=2"`
	Write []int   `json:"write" binding:"omitempty"`
	Read  []int   `json:"read" binding:"omitempty"`
	Exec  []int   `json:"exec" binding:"omitempty"`
}

type SettingUpdateRequest added in v2.0.18

type SettingUpdateRequest struct {
	Settings *string `json:"settings" binding:"omitempty"`
}

type UserCreateRequest added in v2.0.4

type UserCreateRequest struct {
	Login      string  `json:"login" binding:"required,max=255,min=2"`
	FirstName  string  `json:"first_name" binding:"required,max=255,min=2"`
	SecondName *string `json:"second_name" binding:"omitempty,max=255,min=2"`
	LastName   *string `json:"last_name" binding:"omitempty,max=255,min=2"`
	Password   string  `json:"password" binding:"required,max=255,min=8"`
	Email      *string `json:"email" binding:"omitempty,email,max=255"`
	Phone      *string `json:"phone" binding:"omitempty,max=255,min=1"`
	Roles      []int   `json:"roles" binding:"required"`
}

type UserUpdateRequest added in v2.0.4

type UserUpdateRequest struct {
	Login      *string `json:"login" binding:"omitempty,max=255,min=2"`
	FirstName  *string `json:"first_name" binding:"omitempty,max=255,min=2"`
	SecondName *string `json:"second_name" binding:"omitempty,len=0|min=2,max=255"`
	LastName   *string `json:"last_name" binding:"omitempty,len=0|min=2,max=255"`
	Password   *string `json:"password" binding:"omitempty,max=255,min=8"`
	Email      *string `json:"email" binding:"omitempty,len=0|email,max=255"`
	Phone      *string `json:"phone" binding:"omitempty,len=0|min=1,max=255"`
	Roles      *[]int  `json:"roles" binding:"omitempty"`
}

Jump to

Keyboard shortcuts

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