feat[BE]: implement customer payment report retrieval with pagination and filtering

This commit is contained in:
aguhh18
2026-01-14 11:46:39 +07:00
parent 7f1d796b65
commit f6e872c0aa
6 changed files with 460 additions and 73 deletions
@@ -71,3 +71,11 @@ type ProductionResultQuery struct {
Limit int `query:"limit" validate:"omitempty,min=1,max=100,gt=0"`
ProjectFlockKandangID uint `query:"-" validate:"required,gt=0"`
}
type CustomerPaymentQuery struct {
Page int `query:"page" validate:"omitempty,min=1,gt=0"`
Limit int `query:"limit" validate:"omitempty,min=1,max=100,gt=0"`
CustomerID *uint `query:"customer_id" validate:"omitempty,gt=0"`
StartDate string `query:"start_date" validate:"omitempty,datetime=2006-01-02"`
EndDate string `query:"end_date" validate:"omitempty,datetime=2006-01-02"`
}