Skip to content

Commit

Permalink
Remove created at int field.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmari-h committed Nov 11, 2024
1 parent 14e3443 commit 832542c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 0 additions & 2 deletions comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type CommentData struct {

type Comment struct {
Namespace string `json:"namespace"`
CreatedAt int64 `json:"created_at"`
Text string `json:"text"`
ID string `json:"id"`
}
Expand All @@ -57,7 +56,6 @@ type Author struct {
Namespace string `json:"namespace"`
ID string `json:"id"`
Username string `json:"username"`
CreatedAt int64 `json:"created_at"`
Bio string `json:"bio"`
Image string `json:"image"`
}
Expand Down
10 changes: 4 additions & 6 deletions contents.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type UpdateContentRequest struct {

type Content struct {
Namespace string `json:"namespace"`
CreatedAt int64 `json:"created_at"`
ID string `json:"id"`
Description string `json:"description"`
Title string `json:"title"`
Expand All @@ -37,11 +36,10 @@ type GetContentResponse struct {
}

type AuthorProfile struct {
ID string `json:"id"`
CreatedAt int64 `json:"created_at"`
Username string `json:"username"`
Bio string `json:"bio"`
Image string `json:"image"`
ID string `json:"id"`
Username string `json:"username"`
Bio string `json:"bio"`
Image string `json:"image"`
}

type RequestingProfileSocialInfo struct {
Expand Down
9 changes: 4 additions & 5 deletions profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ type GetFollowingResponse struct {
}

type ProfileDetails struct {
ID string `json:"id"`
CreatedAt int64 `json:"created_at"`
Username string `json:"username"`
Bio string `json:"bio,omitempty"`
Image string `json:"image,omitempty"`
ID string `json:"id"`
Username string `json:"username"`
Bio string `json:"bio,omitempty"`
Image string `json:"image,omitempty"`
}

type GetFollowingWhoFollowResponse struct {
Expand Down

0 comments on commit 832542c

Please sign in to comment.