Documentation ¶
Overview ¶
Domain entities
Index ¶
Constants ¶
View Source
const ( StatusNew = "NEW" StatusRegistered = "REGISTERED" StatusProcessed = "PROCESSED" StatusInvalid = "INVALID" StatusProcessing = "PROCESSING" )
order status
Variables ¶
View Source
var ( ErrEnvVarNotFound = errors.New("env var not set") ErrMethodNotAllowed = errors.New("method not allowed") ErrUnsupportedMediaType = errors.New("unsupported media type") ErrInternalServerError = errors.New("internal server error") ErrStatusBadRequest = errors.New("bad request") ErrUserLoginNotUnique = errors.New("login not unique") ErrUnprocessableEntity = errors.New("unprocessable entity") ErrOrderAlreadyUploadedAnotherUser = errors.New("order already uploaded another user") ErrOrderAlreadyUploaded = errors.New("order already uploaded") ErrNoContent = errors.New("no content") ErrInsufficientBalance = errors.New("insufficient balance") )
define errors
Functions ¶
This section is empty.
Types ¶
type BalanceUpdate ¶
type BalanceUpdate struct { Order string `json:"order"` Sum float64 `json:"sum"` UploadedAt time.Time `json:"processed_at,omitempty"` }
struct for update user Balance
Click to show internal directories.
Click to hide internal directories.