feat: align ids to int64
This commit is contained in:
@@ -22,7 +22,7 @@ type WalletResponse struct {
|
||||
}
|
||||
|
||||
type Transaction struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Amount float64 `json:"amount"`
|
||||
Type string `json:"type"` // income, expense
|
||||
@@ -40,7 +40,7 @@ type RechargeResponse struct {
|
||||
}
|
||||
|
||||
type Order struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Type string `json:"type"` // consts.OrderType...
|
||||
TypeDescription string `json:"type_description"`
|
||||
CreateTime string `json:"create_time"`
|
||||
@@ -50,7 +50,7 @@ type Order struct {
|
||||
Amount float64 `json:"amount"`
|
||||
Quantity int `json:"quantity"`
|
||||
Items []ContentItem `json:"items"`
|
||||
TenantID string `json:"tenant_id"`
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
TenantName string `json:"tenant_name"`
|
||||
IsVirtual bool `json:"is_virtual"`
|
||||
BuyerName string `json:"buyer_name"`
|
||||
@@ -60,7 +60,7 @@ type Order struct {
|
||||
}
|
||||
|
||||
type Notification struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Type string `json:"type"`
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
|
||||
Reference in New Issue
Block a user