31 lines
541 B
Go
Raw Normal View History

2025-07-18 20:10:29 +07:00
package models
type Pagination struct {
2025-08-06 00:23:03 +07:00
Page int `json:"page"`
Limit int `json:"limit"`
Total int64 `json:"total_count"`
TotalPages int `json:"total_pages"`
2025-07-18 20:10:29 +07:00
}
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",
}
}