go-lemmy/types/structs.gen.go

39 lines
1.1 KiB
Go
Raw Normal View History

2023-01-31 03:38:57 +00:00
// Source: lemmy/crates/api_common/src/websocket/structs.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
package types
2023-01-31 03:38:57 +00:00
type UserJoin struct {
Auth string `json:"auth" url:"auth,omitempty"`
}
type UserJoinResponse struct {
Joined bool `json:"joined" url:"joined,omitempty"`
LemmyResponse
}
type CommunityJoin struct {
CommunityID int `json:"community_id" url:"community_id,omitempty"`
}
type CommunityJoinResponse struct {
Joined bool `json:"joined" url:"joined,omitempty"`
LemmyResponse
}
type ModJoin struct {
CommunityID int `json:"community_id" url:"community_id,omitempty"`
}
type ModJoinResponse struct {
Joined bool `json:"joined" url:"joined,omitempty"`
LemmyResponse
}
type PostJoin struct {
PostID int `json:"post_id" url:"post_id,omitempty"`
}
type PostJoinResponse struct {
Joined bool `json:"joined" url:"joined,omitempty"`
LemmyResponse
}
type CaptchaItem struct {
Uuid string `json:"uuid" url:"uuid,omitempty"`
Answer string `json:"answer" url:"answer,omitempty"`
Expires LemmyTime `json:"expires" url:"expires,omitempty"`
}