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.
sonic/model/dto/journal.go

18 lines
479 B
Go

2 years ago
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"`
}