feat: add TenantLedger model and query generation
- 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.
This commit is contained in:
14
backend/app/http/tenant/dto/order_me.go
Normal file
14
backend/app/http/tenant/dto/order_me.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user