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 ¶ 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 RoleUpdateRequest ¶ added in v2.0.4
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"` }
Click to show internal directories.
Click to hide internal directories.