Rename structs, move them to a separate file

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-05-03 19:17:39 -04:00
parent 9e7cb10526
commit c897c14b23
6 changed files with 343 additions and 362 deletions
-9
View File
@@ -25,15 +25,6 @@ type CommentServiceOp struct {
var _ CommentService = &CommentServiceOp{}
// CommentList holds information about a list of comments
// The after and before fields help decide the anchor point for a subsequent
// call that returns a list
type CommentList struct {
Comments []Comment `json:"comments,omitempty"`
After string `json:"after,omitempty"`
Before string `json:"before,omitempty"`
}
func (s *CommentServiceOp) isCommentID(id string) bool {
return strings.HasPrefix(id, kindComment+"_")
}