28 lines
1.3 KiB
Go
28 lines
1.3 KiB
Go
// Source: lemmy/crates/db_schema/src/source/activity.rs
|
|
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
|
|
|
|
package types
|
|
|
|
type Activity struct {
|
|
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"`
|
|
}
|
|
type ActivityInsertForm struct {
|
|
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"`
|
|
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"`
|
|
}
|