Documentation
¶
Index ¶
- type Account
- type Accounts
- type ErrorResponse
- type ForgotPasswordInput
- type Inventories
- type Inventory
- type LighterPack
- type LighterPackItem
- type LoginInput
- type MailServer
- type OkResponse
- type Pack
- type PackContent
- type PackContentRequest
- type PackContentWithItem
- type PackContentWithItems
- type PackContents
- type Packs
- type PasswordUpdateInput
- type RegisterInput
- type Token
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID uint `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Firstname string `json:"firstname"`
Lastname string `json:"lastname"`
Role string `json:"role"`
Status string `json:"status"`
PreferredCurrency string `json:"preferred_currency"`
PreferredUnitSystem string `json:"preferred_unit_system"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type ForgotPasswordInput ¶ added in v0.3.0
type ForgotPasswordInput struct {
Email string `json:"email" binding:"required"`
}
type Inventories ¶
type Inventories []Inventory
type Inventory ¶
type Inventory struct {
ID uint `json:"id"`
UserID uint `json:"user_id"`
ItemName string `json:"item_name"`
Category string `json:"category"`
Description string `json:"description"`
Weight int `json:"weight"`
URL string `json:"url"`
Price int `json:"price"`
Currency string `json:"currency"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type LighterPack ¶
type LighterPack []LighterPackItem
type LighterPackItem ¶
type LighterPackItem struct {
ItemName string `json:"item_name"`
Category string `json:"category"`
Desc string `json:"desc"`
Qty int `json:"qty"`
Weight int `json:"weight"`
Unit string `json:"unit"`
URL string `json:"url"`
Price int `json:"price"`
Worn bool `json:"worn"`
Consumable bool `json:"consumable"`
}
type LoginInput ¶
type MailServer ¶ added in v0.3.0
type OkResponse ¶ added in v0.3.0
type OkResponse struct {
Response string `json:"message"`
}
type Pack ¶
type Pack struct {
ID uint `json:"id"`
UserID uint `json:"user_id"`
PackName string `json:"pack_name"`
PackDescription string `json:"pack_description"`
PackWeight int `json:"pack_weight"`
PackItemsCount int `json:"pack_items_count"`
SharingCode *string `json:"sharing_code,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type PackContent ¶
type PackContentRequest ¶ added in v0.5.2
type PackContentWithItem ¶
type PackContentWithItem struct {
PackContentID uint `json:"pack_content_id"`
PackID uint `json:"pack_id"`
InventoryID uint `json:"inventory_id"`
ItemName string `json:"item_name"`
Category string `json:"category"`
ItemDescription string `json:"item_description"`
Weight int `json:"weight"`
ItemURL string `json:"item_url"`
Price int `json:"price"`
Currency string `json:"currency"`
Quantity int `json:"quantity"`
Worn bool `json:"worn"`
Consumable bool `json:"consumable"`
}
type PackContentWithItems ¶
type PackContentWithItems []PackContentWithItem
type PackContents ¶
type PackContents []PackContent
type PasswordUpdateInput ¶ added in v0.3.0
type RegisterInput ¶
type User ¶
type User struct {
ID uint `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Firstname string `json:"firstname"`
Lastname string `json:"lastname"`
Role string `json:"role"`
Status string `json:"status"`
Password string `json:"password"`
LastPassword string `json:"last_password"`
PreferredCurrency string `json:"preferred_currency"`
PreferredUnitSystem string `json:"preferred_unit_system"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Click to show internal directories.
Click to hide internal directories.