Skip to content

Commit 20e8c0c

Browse files
committed
Merge branch 'development' of github.com:Ptt-official-app/Ptt-backend into development
2 parents 7d6c1ab + d3fe0a3 commit 20e8c0c

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

internal/delivery/http/route_append_comment.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ func (delivery *Delivery) appendComment(w http.ResponseWriter, r *http.Request,
103103
"data": map[string]interface{}{
104104
"raw": res.Text(),
105105
"parsed": map[string]interface{}{
106-
"is_header_modied": false,
107-
"author_id": userID,
108-
"author_name": userID,
109-
"title": nil,
110-
"post_time": res.Time().Format("2006-01-02 15:04:05"),
111-
"board_name": boardID, // todo: go-bbs articles 需實作新介面取得資訊
106+
"is_header_modified": false,
107+
"author_id": userID,
108+
"author_name": userID,
109+
"title": nil,
110+
"post_time": res.Time().Format("2006-01-02 15:04:05"),
111+
"board_name": boardID, // todo: go-bbs articles 需實作新介面取得資訊
112112
"text": map[string]string{
113113
"text": text, // todo: // todo: go-bbs articles 需實作新介面取得資訊
114114
},

internal/delivery/http/route_create_article.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ func (delivery *Delivery) publishPost(w http.ResponseWriter, r *http.Request, bo
7474
"data": map[string]interface{}{
7575
"raw": base64.StdEncoding.EncodeToString([]byte(raw)),
7676
"parsed": map[string]interface{}{
77-
"is_header_modied": false,
78-
"author_id": userID,
79-
"board_name": boardID, // todo: go-bbs articles 需實作新介面取得資訊
80-
"author_name": record.Owner(),
81-
"title": record.Title(),
82-
"post_time": record.Date(),
77+
"is_header_modified": false,
78+
"author_id": userID,
79+
"board_name": boardID, // todo: go-bbs articles 需實作新介面取得資訊
80+
"author_name": record.Owner(),
81+
"title": record.Title(),
82+
"post_time": record.Date(),
8383
"text": map[string]string{
8484
"text": article, // todo: go-bbs articles 需實作新介面取得資訊
8585
},

swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ paths:
704704
parsed:
705705
type: object
706706
properties:
707-
is_header_modied:
707+
is_header_modified:
708708
type: string
709709
author_id:
710710
type: string
@@ -844,7 +844,7 @@ paths:
844844
parsed:
845845
type: object
846846
properties:
847-
is_header_modify:
847+
is_header_modified:
848848
type: string
849849
author_id:
850850
type: string

0 commit comments

Comments
 (0)