go-lemmy/types/person_mention.gen.go
2023-04-20 19:27:38 -07:00

21 lines
870 B
Go

// Source: lemmy/crates/db_schema/src/source/person_mention.rs
// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types
type PersonMention struct {
ID int `json:"id" url:"id,omitempty"`
RecipientID int `json:"recipient_id" url:"recipient_id,omitempty"`
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
Read bool `json:"read" url:"read,omitempty"`
Published LemmyTime `json:"published" url:"published,omitempty"`
}
type PersonMentionInsertForm struct {
RecipientID int `json:"recipient_id" url:"recipient_id,omitempty"`
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
Read Optional[bool] `json:"read" url:"read,omitempty"`
}
type PersonMentionUpdateForm struct {
Read Optional[bool] `json:"read" url:"read,omitempty"`
}