2023-01-07 23:05:40 +00:00
|
|
|
// Source: lemmy/crates/db_schema/src/source/comment.rs
|
2023-01-07 22:45:01 +00:00
|
|
|
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
|
|
|
|
|
2023-01-05 20:51:45 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
type Comment struct {
|
2023-01-31 03:38:57 +00:00
|
|
|
ID int `json:"id" url:"id,omitempty"`
|
|
|
|
CreatorID int `json:"creator_id" url:"creator_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Content string `json:"content" url:"content,omitempty"`
|
|
|
|
Removed bool `json:"removed" url:"removed,omitempty"`
|
|
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
|
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
|
|
Deleted bool `json:"deleted" url:"deleted,omitempty"`
|
|
|
|
ApID string `json:"ap_id" url:"ap_id,omitempty"`
|
|
|
|
Local bool `json:"local" url:"local,omitempty"`
|
|
|
|
Path string `json:"path" url:"path,omitempty"`
|
|
|
|
Distinguished bool `json:"distinguished" url:"distinguished,omitempty"`
|
|
|
|
LanguageID int `json:"language_id" url:"language_id,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type CommentInsertForm struct {
|
|
|
|
CreatorID int `json:"creator_id" url:"creator_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Content string `json:"content" url:"content,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
|
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
|
|
Deleted Optional[bool] `json:"deleted" url:"deleted,omitempty"`
|
|
|
|
ApID Optional[string] `json:"ap_id" url:"ap_id,omitempty"`
|
|
|
|
Local Optional[bool] `json:"local" url:"local,omitempty"`
|
|
|
|
Distinguished Optional[bool] `json:"distinguished" url:"distinguished,omitempty"`
|
|
|
|
LanguageID Optional[int] `json:"language_id" url:"language_id,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type CommentUpdateForm struct {
|
|
|
|
Content Optional[string] `json:"content" url:"content,omitempty"`
|
|
|
|
Removed Optional[bool] `json:"removed" url:"removed,omitempty"`
|
|
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
|
|
Deleted Optional[bool] `json:"deleted" url:"deleted,omitempty"`
|
|
|
|
ApID Optional[string] `json:"ap_id" url:"ap_id,omitempty"`
|
|
|
|
Local Optional[bool] `json:"local" url:"local,omitempty"`
|
|
|
|
Distinguished Optional[bool] `json:"distinguished" url:"distinguished,omitempty"`
|
|
|
|
LanguageID Optional[int] `json:"language_id" url:"language_id,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommentLike struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
PersonID int `json:"person_id" url:"person_id,omitempty"`
|
|
|
|
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Score int16 `json:"score" url:"score,omitempty"`
|
|
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommentLikeForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
PersonID int `json:"person_id" url:"person_id,omitempty"`
|
|
|
|
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
|
|
|
|
PostID int `json:"post_id" url:"post_id,omitempty"`
|
|
|
|
Score int16 `json:"score" url:"score,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommentSaved struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
|
|
|
|
PersonID int `json:"person_id" url:"person_id,omitempty"`
|
|
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
|
|
|
type CommentSavedForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
CommentID int `json:"comment_id" url:"comment_id,omitempty"`
|
|
|
|
PersonID int `json:"person_id" url:"person_id,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|