request

package
v2.3.204 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 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,dot_underscore_hyphen"`
	Password   string `json:"password" binding:"required,max=60,spec_chars"`
	DeviceID   int    `json:"device_id" binding:"required,device_id"`
	DomainAuth bool   `json:"domain_auth" binding:"omitempty"`
}

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 AuthSSOLoginRequest added in v2.3.146

type AuthSSOLoginRequest struct {
	RedirectURL string `form:"redirect_url" binding:"required,url"`
	DeviceID    int    `form:"device_id" binding:"required,device_id"`
}

type AuthUpdateAccountDataRequest

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

type FilterCreateRequest added in v2.3.99

type FilterCreateRequest struct {
	Name     string `json:"name" binding:"required,max=255,min=2,dot_underscore_hyphen_space"`
	Endpoint string `json:"endpoint" binding:"required,max=255,min=2"`
	Value    string `json:"value" binding:"required,min=1"`
}

type FilterUpdateRequest added in v2.3.99

type FilterUpdateRequest struct {
	Name  *string `json:"name" binding:"omitempty,max=255,min=2,dot_underscore_hyphen_space"`
	Value *string `json:"value" binding:"omitempty,min=1"`
}

type RoleCreateRequest

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

type RoleUpdateRequest

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

type SettingUpdateRequest

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

type UserCreateRequest

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

type UserUpdateRequest

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

Jump to

Keyboard shortcuts

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