Regenerate code

This commit is contained in:
Elara 2023-01-07 14:45:01 -08:00
parent c13f0633c3
commit 75566b4809
37 changed files with 75 additions and 3 deletions

View File

@ -45,7 +45,7 @@ func (c *Client) ClientLogin(ctx context.Context, l types.Login) error {
return err return err
} }
c.Token = lr.Jwt.MustValue() c.Token = lr.JWT.MustValue()
return nil return nil
} }

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (routes generator). DO NOT EDIT.
package lemmy package lemmy
import ( import (

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Activity struct { type Activity struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Comment struct { type Comment struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type CreateComment struct { type CreateComment struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type CommentReport struct { type CommentReport struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Community struct { type Community struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type GetCommunity struct { type GetCommunity struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type CommunityBlock struct { type CommunityBlock struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type EmailVerification struct { type EmailVerification struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type SortType string type SortType string

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type UserOperation string type UserOperation string

View File

@ -1 +1,3 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type LocalUser struct { type LocalUser struct {

View File

@ -1 +1,3 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type ModRemovePost struct { type ModRemovePost struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type PasswordResetRequest struct { type PasswordResetRequest struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Person struct { type Person struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Login struct { type Login struct {
@ -54,7 +56,7 @@ type ChangePassword struct {
Auth string `json:"auth" url:"auth,omitempty"` Auth string `json:"auth" url:"auth,omitempty"`
} }
type LoginResponse struct { type LoginResponse struct {
Jwt Optional[string] `json:"jwt" url:"jwt,omitempty"` JWT Optional[string] `json:"jwt" url:"jwt,omitempty"`
RegistrationCreated bool `json:"registration_created" url:"registration_created,omitempty"` RegistrationCreated bool `json:"registration_created" url:"registration_created,omitempty"`
VerifyEmailSent bool `json:"verify_email_sent" url:"verify_email_sent,omitempty"` VerifyEmailSent bool `json:"verify_email_sent" url:"verify_email_sent,omitempty"`
LemmyResponse LemmyResponse

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type PersonBlock struct { type PersonBlock struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type PersonMention struct { type PersonMention struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Post struct { type Post struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type CreatePost struct { type CreatePost struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type PostReport struct { type PostReport struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type PrivateMessage struct { type PrivateMessage struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type RegistrationApplication struct { type RegistrationApplication struct {

View File

@ -1 +1,3 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types

View File

@ -1,6 +1,8 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Secret struct { type Secret struct {
ID int32 `json:"id" url:"id,omitempty"` ID int32 `json:"id" url:"id,omitempty"`
JwtSecret string `json:"jwt_secret" url:"jwt_secret,omitempty"` JWTSecret string `json:"jwt_secret" url:"jwt_secret,omitempty"`
} }

View File

@ -1 +1,3 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Site struct { type Site struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type Search struct { type Search struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type CommentReportView struct { type CommentReportView struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type ModAddCommunityView struct { type ModAddCommunityView struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type CommentAggregates struct { type CommentAggregates struct {

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type CommunityBlockView struct { type CommunityBlockView struct {

View File

@ -1 +1,3 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types

View File

@ -1,3 +1,5 @@
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types package types
type UserJoin struct { type UserJoin struct {