package
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Dec 29, 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:"master_id"`
CategoryID uint32 `json:"category_id"`
Name string `json:"name"`
Description string `json:"description"`
Price float32 `json:"price"`
Quantity uint32 `json:"quantity"`
TagsIDs []uint32 `json:"tag_ids"`
}
type Category struct {
ID uint32 `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Master struct {
ID uint64 `json:"id"`
UserID uint64 `json:"user_id"`
Info string `json:"info"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type RawAddToyDTO struct {
UserID uint64 `json:"user_id"`
CategoryID uint32 `json:"category_id"`
Name string `json:"name"`
Description string `json:"description"`
Price float32 `json:"price"`
Quantity uint32 `json:"quantity"`
TagsIDs []uint32 `json:"tag_ids"`
}
type RegisterMasterDTO struct {
UserID uint64 `json:"user_id"`
Info string `json:"info"`
}
type Tag struct {
ID uint32 `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Toy struct {
ID uint64 `json:"id"`
MasterID uint64 `json:"master_id"`
CategoryID uint32 `json:"category_id"`
Name string `json:"name"`
Description string `json:"description"`
Price float32 `json:"price"`
Quantity uint32 `json:"quantity"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Tags []Tag `json:"tags"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.