- Introduced TenantLedger model with fields for managing tenant transactions, including ID, TenantID, UserID, OrderID, transaction Type, Amount, and balance details. - Implemented CRUD operations for TenantLedger with methods for Create, Update, Delete, and Reload. - Generated query methods for TenantLedger to facilitate database interactions, including filtering, pagination, and aggregation functions. - Established relationships with Order model for foreign key references.
15 lines
423 B
Go
15 lines
423 B
Go
package dto
|
|
|
|
import (
|
|
"quyun/v2/app/requests"
|
|
"quyun/v2/pkg/consts"
|
|
)
|
|
|
|
// MyOrderListFilter defines query filters for listing current user's orders within a tenant.
|
|
type MyOrderListFilter struct {
|
|
// Pagination controls paging parameters (page/limit).
|
|
requests.Pagination `json:",inline" query:",inline"`
|
|
// Status filters orders by order status.
|
|
Status *consts.OrderStatus `json:"status,omitempty" query:"status"`
|
|
}
|