21 lines
590 B
Go
21 lines
590 B
Go
package schemas
|
|
|
|
type UpdateSettingsRequest struct {
|
|
Settings map[string]interface{} `json:"settings" binding:"required"`
|
|
}
|
|
|
|
type AuthorizeSupplierRequest struct {
|
|
Type string `json:"type" binding:"required,oneof=category product"`
|
|
RefID uint `json:"ref_id" binding:"required"`
|
|
}
|
|
|
|
type AddSupplierRequest struct {
|
|
Username string `json:"username" binding:"required"`
|
|
Email string `json:"email" binding:"required,email"`
|
|
Password string `json:"password" binding:"required,min=6"`
|
|
}
|
|
|
|
type UpdateInventoryRequest struct {
|
|
Quantity int `json:"quantity" binding:"required,min=0"`
|
|
}
|