feat: align ids to int64
This commit is contained in:
@@ -6,20 +6,20 @@ type ContentListFilter struct {
|
||||
requests.Pagination
|
||||
Keyword *string `query:"keyword"`
|
||||
Genre *string `query:"genre"`
|
||||
TenantID *string `query:"tenantId"`
|
||||
TenantID *int64 `query:"tenantId"`
|
||||
Sort *string `query:"sort"`
|
||||
IsPinned *bool `query:"is_pinned"`
|
||||
PriceType *string `query:"price_type"`
|
||||
}
|
||||
|
||||
type ContentItem struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Cover string `json:"cover"`
|
||||
Genre string `json:"genre"`
|
||||
Type string `json:"type"` // video, audio, article
|
||||
Price float64 `json:"price"`
|
||||
AuthorID string `json:"author_id"`
|
||||
AuthorID int64 `json:"author_id"`
|
||||
AuthorName string `json:"author_name"`
|
||||
AuthorAvatar string `json:"author_avatar"`
|
||||
AuthorIsFollowing bool `json:"author_is_following"`
|
||||
@@ -52,24 +52,24 @@ type Meta struct {
|
||||
}
|
||||
|
||||
type Comment struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Content string `json:"content"`
|
||||
UserID string `json:"user_id"`
|
||||
UserID int64 `json:"user_id"`
|
||||
UserNickname string `json:"user_nickname"`
|
||||
UserAvatar string `json:"user_avatar"`
|
||||
CreateTime string `json:"create_time"`
|
||||
Likes int `json:"likes"`
|
||||
IsLiked bool `json:"is_liked"`
|
||||
ReplyTo string `json:"reply_to"`
|
||||
ReplyTo int64 `json:"reply_to"`
|
||||
}
|
||||
|
||||
type CommentCreateForm struct {
|
||||
Content string `json:"content"`
|
||||
ReplyTo string `json:"reply_to"`
|
||||
ReplyTo int64 `json:"reply_to"`
|
||||
}
|
||||
|
||||
type Topic struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Cover string `json:"cover"`
|
||||
Tag string `json:"tag"`
|
||||
|
||||
Reference in New Issue
Block a user