fix(be): update nonstock query to use SupplierID as a non-pointer type

This commit is contained in:
aguhh18
2025-12-31 09:40:05 +07:00
parent d35d0bbe6b
commit 0fc560b91c
3 changed files with 12 additions and 10 deletions
@@ -18,5 +18,5 @@ type Query struct {
Page int `query:"page" validate:"omitempty,number,min=1"`
Limit int `query:"limit" validate:"omitempty,number,min=1,max=100"`
Search string `query:"search" validate:"omitempty,max=50"`
SupplierID *uint `query:"supplier_id" validate:"omitempty,gt=0"`
SupplierID uint `query:"supplier_id" validate:"omitempty,gt=0"`
}