Initial commit: 商品售卖网站
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package schemas
|
||||
|
||||
type UpdateSettingsRequest struct {
|
||||
Settings map[string]string `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"`
|
||||
}
|
||||
Reference in New Issue
Block a user