2023-01-07 23:05:40 +00:00
|
|
|
// Source: lemmy/crates/db_schema/src/source/activity.rs
|
2023-04-21 02:27:38 +00:00
|
|
|
// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
|
2023-01-07 22:45:01 +00:00
|
|
|
|
2023-01-05 20:51:45 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
type Activity struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
Data any `json:"data" url:"data,omitempty"`
|
|
|
|
Local bool `json:"local" url:"local,omitempty"`
|
|
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
|
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
|
|
ApID string `json:"ap_id" url:"ap_id,omitempty"`
|
|
|
|
Sensitive Optional[bool] `json:"sensitive" url:"sensitive,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type ActivityInsertForm struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
Data any `json:"data" url:"data,omitempty"`
|
|
|
|
Local Optional[bool] `json:"local" url:"local,omitempty"`
|
|
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
|
|
ApID string `json:"ap_id" url:"ap_id,omitempty"`
|
2023-01-31 03:38:57 +00:00
|
|
|
Sensitive Optional[bool] `json:"sensitive" url:"sensitive,omitempty"`
|
|
|
|
}
|
|
|
|
type ActivityUpdateForm struct {
|
|
|
|
Data any `json:"data" url:"data,omitempty"`
|
|
|
|
Local Optional[bool] `json:"local" url:"local,omitempty"`
|
|
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
|
|
Sensitive Optional[Optional[bool]] `json:"sensitive" url:"sensitive,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|