feat: align ids to int64
This commit is contained in:
@@ -26,13 +26,13 @@ type FloatStatItem struct {
|
||||
}
|
||||
|
||||
type ContentCreateForm struct {
|
||||
Title string `json:"title"`
|
||||
Genre string `json:"genre"`
|
||||
Key string `json:"key"`
|
||||
Price float64 `json:"price"`
|
||||
Status string `json:"status"`
|
||||
CoverIDs []string `json:"cover_ids"`
|
||||
MediaIDs []string `json:"media_ids"`
|
||||
Title string `json:"title"`
|
||||
Genre string `json:"genre"`
|
||||
Key string `json:"key"`
|
||||
Price float64 `json:"price"`
|
||||
Status string `json:"status"`
|
||||
CoverIDs []int64 `json:"cover_ids"`
|
||||
MediaIDs []int64 `json:"media_ids"`
|
||||
}
|
||||
|
||||
type ContentUpdateForm struct {
|
||||
@@ -42,12 +42,12 @@ type ContentUpdateForm struct {
|
||||
Price *float64 `json:"price"`
|
||||
Status string `json:"status"`
|
||||
IsPinned *bool `json:"is_pinned"`
|
||||
CoverIDs []string `json:"cover_ids"`
|
||||
MediaIDs []string `json:"media_ids"`
|
||||
CoverIDs []int64 `json:"cover_ids"`
|
||||
MediaIDs []int64 `json:"media_ids"`
|
||||
}
|
||||
|
||||
type ContentEditDTO struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Genre string `json:"genre"`
|
||||
Key string `json:"key"`
|
||||
@@ -60,7 +60,7 @@ type ContentEditDTO struct {
|
||||
}
|
||||
|
||||
type CreatorContentItem struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Genre string `json:"genre"`
|
||||
Key string `json:"key"`
|
||||
@@ -79,7 +79,7 @@ type CreatorContentItem struct {
|
||||
}
|
||||
|
||||
type AssetDTO struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Role string `json:"role"`
|
||||
Type string `json:"type"`
|
||||
URL string `json:"url"`
|
||||
@@ -110,7 +110,7 @@ type RefundForm struct {
|
||||
}
|
||||
|
||||
type Settings struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Bio string `json:"bio"`
|
||||
Avatar string `json:"avatar"`
|
||||
@@ -119,7 +119,7 @@ type Settings struct {
|
||||
}
|
||||
|
||||
type PayoutAccount struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Type string `json:"type"` // bank, alipay
|
||||
Name string `json:"name"`
|
||||
Account string `json:"account"`
|
||||
@@ -129,5 +129,5 @@ type PayoutAccount struct {
|
||||
type WithdrawForm struct {
|
||||
Amount float64 `json:"amount"`
|
||||
Method string `json:"method"` // wallet, external
|
||||
AccountID string `json:"account_id"`
|
||||
AccountID int64 `json:"account_id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user