Skip to content

Commit b74d22c

Browse files
committed
refactor: remove unnecessary fields from PostDTO
1 parent 965a28c commit b74d22c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/model/post.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ type PostDTO struct {
1919
Title string `json:"title"`
2020
Content string `json:"content"`
2121
// length until 30
22-
Category string `json:"category"`
23-
Tags []string `json:"tags"`
24-
CreatedAt time.Time `json:"created_at"`
25-
UpdatedAt time.Time `json:"updated_at"`
22+
Category string `json:"category"`
23+
Tags []string `json:"tags"`
2624
}

0 commit comments

Comments
 (0)