init
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package models
|
||||
|
||||
// Pagination represents pagination information
|
||||
type Pagination struct {
|
||||
Page int `json:"page"`
|
||||
Limit int `json:"limit"`
|
||||
Total int64 `json:"total"`
|
||||
TotalPages int `json:"total_pages"`
|
||||
}
|
||||
|
||||
// PaginatedResponse represents a paginated response
|
||||
type PaginatedResponse[T any] struct {
|
||||
Data []T `json:"data"`
|
||||
Pagination Pagination `json:"pagination"`
|
||||
}
|
||||
|
||||
func GetAllModelNames() []string {
|
||||
return []string{
|
||||
"Organization",
|
||||
"Outlet",
|
||||
"User",
|
||||
"Category",
|
||||
"Product",
|
||||
"ProductVariant",
|
||||
"Inventory",
|
||||
"Order",
|
||||
"OrderItem",
|
||||
"PaymentMethod",
|
||||
"Payment",
|
||||
"Customer",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user