Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct { ID string `json:"id"` Login string `json:"login" validate:"required"` Password string `json:"password,omitempty"` EncryptPassword string `json:"-"` *config.Config `json:"-"` }
func TestAuthentication ¶
func TestAuthentication(t *testing.T) *Authentication
func (*Authentication) BeforeCreate ¶
func (a *Authentication) BeforeCreate() error
func (*Authentication) ComparePassword ¶
func (a *Authentication) ComparePassword(password string) bool
func (*Authentication) Sanitize ¶
func (a *Authentication) Sanitize()
Sanitize очищает поля, для того чтоб они не возвращались в ответе
func (*Authentication) Validate ¶
func (a *Authentication) Validate() error
type GoferResponse ¶
type Gofermart ¶
type Gofermart struct { Slug string `json:"slug,omitempty" example:"1674872720465761244B_5"` // Строковый идентификатор URL string `json:"url,omitempty" example:"https://example.com/go/to/home.html"` // URL для сокращения UserID string `json:"user_id,omitempty"` Order string `json:"order,omitempty"` Del bool `json:"del"` *config.Config `json:"-"` }
Gofermart -.
type Gofermarts ¶
type Gofermarts []Gofermart
type LoyaltyStatus ¶
type OrderList ¶
type OrderList []OrderResponse
type OrderResponse ¶
type Response ¶
type Response []GoferResponse
type WithdrawResponse ¶
type WithdrawalsList ¶
type WithdrawalsList []WithdrawResponse
Click to show internal directories.
Click to hide internal directories.