Add Balance Api

This commit is contained in:
aditya.siregar
2024-07-30 23:51:53 +07:00
parent b6f75082e9
commit b8e034d8d8
10 changed files with 127 additions and 287 deletions
+4 -14
View File
@@ -1,17 +1,7 @@
package response
type Branch struct {
ID *int64 `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Location string `json:"location"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type BranchList struct {
Branches []Branch `json:"branches"`
Total int64 `json:"total"`
Limit int `json:"limit"`
Offset int `json:"offset"`
type Balance struct {
PartnerID int64 `json:"partner_id"`
Balance float64 `json:"balance"`
AuthBalance float64 `json:"auth_balance"`
}