Files
sale/backend/internal/schemas/system.go
T
nuyue e4ec378237
Build and Push Docker Image / build-and-push (push) Successful in 1m1s
Build and Push Docker Image / deploy (push) Successful in 9s
fix: handle interface{} type in settings update request
2026-07-16 16:23:10 +08:00

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"`
}