package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Nov 30, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AddToyDTO struct {
MasterID uint64 `json:"masterID"`
CategoryID uint32 `json:"categoryID"`
Name string `json:"name"`
Description string `json:"description"`
Price float32 `json:"price"`
Quantity uint32 `json:"quantity"`
TagsIDs []uint32 `json:"tags"`
}
type Category struct {
ID uint32 `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type Master struct {
ID uint64 `json:"id"`
UserID uint64 `json:"userID"`
Info string `json:"info"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Toys []*Toy `json:"toys"`
}
type RawAddToyDTO struct {
AccessToken string `json:"accessToken"`
CategoryID uint32 `json:"categoryID"`
Name string `json:"name"`
Description string `json:"description"`
Price float32 `json:"price"`
Quantity uint32 `json:"quantity"`
TagsIDs []uint32 `json:"tags"`
}
type RawRegisterMasterDTO struct {
AccessToken string `json:"accessToken"`
Info string `json:"info"`
}
type RegisterMasterDTO struct {
UserID uint64 `json:"userID"`
Info string `json:"info"`
}
type Tag struct {
ID uint32 `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type Toy struct {
ID uint64 `json:"id"`
MasterID uint64 `json:"masterID"`
CategoryID uint32 `json:"categoryID"`
Name string `json:"name"`
Description string `json:"description"`
Price float32 `json:"price"`
Quantity uint32 `json:"quantity"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Tags []*Tag `json:"tags"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.