commento/api/comment.go

21 lines
586 B
Go
Raw Permalink Normal View History

package main
import (
"time"
)
type comment struct {
2018-06-11 01:43:42 +08:00
CommentHex string `json:"commentHex"`
Domain string `json:"domain,omitempty"`
Path string `json:"url,omitempty"`
CommenterHex string `json:"commenterHex"`
Markdown string `json:"markdown"`
Html string `json:"html"`
ParentHex string `json:"parentHex"`
Score int `json:"score"`
2019-05-02 07:57:18 +08:00
State string `json:"state,omitempty"`
2018-06-11 01:43:42 +08:00
CreationDate time.Time `json:"creationDate"`
Direction int `json:"direction"`
Deleted bool `json:"deleted"`
}