feat: sale manager

This commit is contained in:
zzw
2026-08-28 10:49:09 +08:00
parent 97eba7ad48
commit 6f567319be
82 changed files with 4491 additions and 182 deletions
+11
View File
@@ -252,6 +252,17 @@ func (p ProductNumberAddValidator) GetMessage() validate.ValidatorMessages {
}
}
type ProductNumberItemsValidator struct {
Type uint32 `validate:"required,oneof=1 2"`
}
func (p ProductNumberItemsValidator) GetMessage() validate.ValidatorMessages {
return validate.ValidatorMessages{
"Type.required": "类型不能为空",
"Type.oneof": "类型不对",
}
}
type ProductItemsByIdsValidator struct {
Ids []int64 `validate:"required,min=1"`
}