33 lines
837 B
Go
33 lines
837 B
Go
|
|
package entity
|
||
|
|
|
||
|
|
import "time"
|
||
|
|
|
||
|
|
type SearchRequest struct {
|
||
|
|
Status string // Filter by order status (e.g., "COMPLETED", "PENDING", etc.)
|
||
|
|
Start time.Time // Start date for filtering orders
|
||
|
|
End time.Time // End date for filtering orders
|
||
|
|
Limit int // Maximum number of records to return
|
||
|
|
Offset int // Number of records to skip for pagination
|
||
|
|
}
|
||
|
|
|
||
|
|
type RevenueOverviewRequest struct {
|
||
|
|
PartnerID int64
|
||
|
|
Year int
|
||
|
|
Granularity string // "monthly" or "weekly"
|
||
|
|
Status string
|
||
|
|
}
|
||
|
|
|
||
|
|
type SalesByCategoryRequest struct {
|
||
|
|
PartnerID int64
|
||
|
|
Period string // "d" (daily), "w" (weekly), "m" (monthly)
|
||
|
|
Status string
|
||
|
|
}
|
||
|
|
|
||
|
|
type PopularProductsRequest struct {
|
||
|
|
PartnerID int64
|
||
|
|
Period string // "d" (daily), "w" (weekly), "m" (monthly)
|
||
|
|
Status string
|
||
|
|
Limit int
|
||
|
|
SortBy string // "sales" or "revenue"
|
||
|
|
}
|