Discover Packages
github.com/afallenhope/go-vendor
types
package
Version:
v0.0.0-...-9d03f01
Opens a new window with list of versions in this module.
Published: Sep 9, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CreateProductPayload struct {
Name string `json:"name" validate:"required,max=200"`
Description string `json:"description" validate:"required"`
Image uuid .UUID `json:"image" validate:"uuid"`
Price int `json:"price" validate:"required"`
Permissions int `json:"permission"`
}
type LoginPayload struct {
Username string `json:"username" validate:"required,max=63"`
Password string `json:"password" validate:"required,min=3,max=16"`
}
type Product struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Image uuid .UUID `json:"image"`
Price int `json:"price"`
Permissions int `json:"permission"`
CreatedAt time .Time `json:"createdAt"`
UpdatedAt time .Time `json:"updatedAt"`
}
type RegisterUserPayload struct {
UUID uuid .UUID `json:"uuid" validate:"required,uuid"`
Username string `json:"username" validate:"required,max=63"`
Password string `json:"password" validate:"required,min=3,max=16"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.