lint: fix lack of comment #13

This commit is contained in:
Umputun
2018-05-15 18:52:21 -05:00
parent 58e21dbc5c
commit 369e4d8be7
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -251,7 +251,8 @@ _currently supported providers are `google`, `facebook` and `github`_
type Comment struct {
ID string `json:"id"` // comment ID, read only
ParentID string `json:"pid"` // parent ID
Text string `json:"text"` // comment text
Text string `json:"text"` // comment text, after md processing
Orig string `json:"orig"` // original comment text
User User `json:"user"` // user info, read only
Locator Locator `json:"locator"` // post locator
Score int `json:"score"` // comment score, read only
+1
View File
@@ -88,6 +88,7 @@ func (s *Service) Vote(locator Locator, commentID string, userID string, val boo
return comment, s.Put(locator, comment)
}
// EditRequest contains fields needed for comment update
type EditRequest struct {
Text string
Orig string