49 lines
3.2 KiB
Go
49 lines
3.2 KiB
Go
// Source: lemmy/crates/db_schema/src/source/site.rs
|
|
// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
|
|
|
|
package types
|
|
|
|
type Site struct {
|
|
ID int `json:"id" url:"id,omitempty"`
|
|
Name string `json:"name" url:"name,omitempty"`
|
|
Sidebar Optional[string] `json:"sidebar" url:"sidebar,omitempty"`
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
Icon Optional[string] `json:"icon" url:"icon,omitempty"`
|
|
Banner Optional[string] `json:"banner" url:"banner,omitempty"`
|
|
Description Optional[string] `json:"description" url:"description,omitempty"`
|
|
ActorID string `json:"actor_id" url:"actor_id,omitempty"`
|
|
LastRefreshedAt LemmyTime `json:"last_refreshed_at" url:"last_refreshed_at,omitempty"`
|
|
InboxURL string `json:"inbox_url" url:"inbox_url,omitempty"`
|
|
PrivateKey Optional[string] `json:"private_key" url:"private_key,omitempty"`
|
|
PublicKey string `json:"public_key" url:"public_key,omitempty"`
|
|
InstanceID int `json:"instance_id" url:"instance_id,omitempty"`
|
|
}
|
|
type SiteInsertForm struct {
|
|
Name string `json:"name" url:"name,omitempty"`
|
|
Sidebar Optional[string] `json:"sidebar" url:"sidebar,omitempty"`
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
Icon Optional[string] `json:"icon" url:"icon,omitempty"`
|
|
Banner Optional[string] `json:"banner" url:"banner,omitempty"`
|
|
Description Optional[string] `json:"description" url:"description,omitempty"`
|
|
ActorID Optional[string] `json:"actor_id" url:"actor_id,omitempty"`
|
|
LastRefreshedAt LemmyTime `json:"last_refreshed_at" url:"last_refreshed_at,omitempty"`
|
|
InboxURL Optional[string] `json:"inbox_url" url:"inbox_url,omitempty"`
|
|
PrivateKey Optional[string] `json:"private_key" url:"private_key,omitempty"`
|
|
PublicKey Optional[string] `json:"public_key" url:"public_key,omitempty"`
|
|
InstanceID int `json:"instance_id" url:"instance_id,omitempty"`
|
|
}
|
|
type SiteUpdateForm struct {
|
|
Name Optional[string] `json:"name" url:"name,omitempty"`
|
|
Sidebar Optional[Optional[string]] `json:"sidebar" url:"sidebar,omitempty"`
|
|
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
|
|
Icon Optional[Optional[string]] `json:"icon" url:"icon,omitempty"`
|
|
Banner Optional[Optional[string]] `json:"banner" url:"banner,omitempty"`
|
|
Description Optional[Optional[string]] `json:"description" url:"description,omitempty"`
|
|
ActorID Optional[string] `json:"actor_id" url:"actor_id,omitempty"`
|
|
LastRefreshedAt LemmyTime `json:"last_refreshed_at" url:"last_refreshed_at,omitempty"`
|
|
InboxURL Optional[string] `json:"inbox_url" url:"inbox_url,omitempty"`
|
|
PrivateKey Optional[Optional[string]] `json:"private_key" url:"private_key,omitempty"`
|
|
PublicKey Optional[string] `json:"public_key" url:"public_key,omitempty"`
|
|
}
|