Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthLoginRequest ¶
type AuthLogoutRequest ¶
type AuthLogoutRequest struct {
Token string `json:"accessToken" binding:"required"`
}
type AuthRefreshRequest ¶
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=255,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 FilterUpdateRequest ¶ added in v2.3.99
type RoleCreateRequest ¶
type RoleUpdateRequest ¶
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=255,min=8,spec_chars"`
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,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=255,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"`
Roles []int `json:"roles" binding:"omitempty,dive,gte=1"`
Blocked *bool `json:"blocked" binding:"omitempty"`
}
Click to show internal directories.
Click to hide internal directories.