mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
479 B
Go
18 lines
479 B
Go
package dto
|
|
|
|
import "github.com/go-sonic/sonic/consts"
|
|
|
|
type Journal struct {
|
|
ID int32 `json:"id"`
|
|
SourceContent string `json:"sourceContent"`
|
|
Content string `json:"content"`
|
|
Likes int64 `json:"likes"`
|
|
CreateTime int64 `json:"createTime"`
|
|
JournalType consts.JournalType `json:"journalType"`
|
|
}
|
|
|
|
type JournalWithComment struct {
|
|
Journal
|
|
CommentCount int64 `json:"commentCount"`
|
|
}
|