api

package
v0.0.0-...-59ffee2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeThesisRequest

type ChangeThesisRequest struct {
	ID            int      `json:"id"`
	AuthorID      *int     `json:"author_id"`
	SectionID     *int     `json:"section_id"`
	SubSectionsID *int     `json:"subsection_id"`
	Originality   *float64 `json:"originality"`
	Subject       *string  `json:"subject"`
	Thesis        *string  `json:"thesis"`
	Fields        *string  `json:"custom_fields"`
}

func (*ChangeThesisRequest) Marshal

func (c *ChangeThesisRequest) Marshal() ([]byte, error)

func (ChangeThesisRequest) MarshalEasyJSON

func (v ChangeThesisRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ChangeThesisRequest) MarshalJSON

func (v ChangeThesisRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ChangeThesisRequest) UnmarshalEasyJSON

func (v *ChangeThesisRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ChangeThesisRequest) UnmarshalJSON

func (v *ChangeThesisRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ChangeThesisResponse

type ChangeThesisResponse struct {
	Result string `json:"result"`
}

func (ChangeThesisResponse) MarshalEasyJSON

func (v ChangeThesisResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ChangeThesisResponse) MarshalJSON

func (v ChangeThesisResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ChangeThesisResponse) UnmarshalEasyJSON

func (v *ChangeThesisResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ChangeThesisResponse) UnmarshalJSON

func (v *ChangeThesisResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CreateThesisRequest

type CreateThesisRequest struct {
	ID            int     `json:"id"`
	AuthorID      int     `json:"author_id"`
	SectionID     int     `json:"section_id"`
	SubSectionsID int     `json:"subsection_id"`
	Originality   float64 `json:"originality"`
	Subject       string  `json:"subject"`
	Thesis        string  `json:"thesis"`
	Fields        string  `json:"custom_fields"`
}

func (*CreateThesisRequest) Marshal

func (c *CreateThesisRequest) Marshal() ([]byte, error)

func (CreateThesisRequest) MarshalEasyJSON

func (c CreateThesisRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateThesisRequest) MarshalJSON

func (c CreateThesisRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CreateThesisRequest) UnmarshalEasyJSON

func (c *CreateThesisRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateThesisRequest) UnmarshalJSON

func (c *CreateThesisRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CreateThesisResponse

type CreateThesisResponse struct {
	Result string `json:"result"`
}

func (CreateThesisResponse) MarshalEasyJSON

func (c CreateThesisResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateThesisResponse) MarshalJSON

func (c CreateThesisResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CreateThesisResponse) UnmarshalEasyJSON

func (c *CreateThesisResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateThesisResponse) UnmarshalJSON

func (c *CreateThesisResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetThesisByFilterRequest

type GetThesisByFilterRequest struct {
	ID int `json:"id"`
}

func (*GetThesisByFilterRequest) Marshal

func (g *GetThesisByFilterRequest) Marshal() ([]byte, error)

func (GetThesisByFilterRequest) MarshalEasyJSON

func (v GetThesisByFilterRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetThesisByFilterRequest) MarshalJSON

func (v GetThesisByFilterRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetThesisByFilterRequest) UnmarshalEasyJSON

func (v *GetThesisByFilterRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetThesisByFilterRequest) UnmarshalJSON

func (v *GetThesisByFilterRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetThesisByFilterResponse

type GetThesisByFilterResponse struct {
	Thesis Thesis `json:"thesis"`
}

func (GetThesisByFilterResponse) MarshalEasyJSON

func (v GetThesisByFilterResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetThesisByFilterResponse) MarshalJSON

func (v GetThesisByFilterResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetThesisByFilterResponse) UnmarshalEasyJSON

func (v *GetThesisByFilterResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetThesisByFilterResponse) UnmarshalJSON

func (v *GetThesisByFilterResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Logger

type Logger = zerolog.Logger

type Thesis

type Thesis struct {
	ID             int     `json:"id"`
	AuthorID       int     `json:"author_id"`
	SectionID      int     `json:"section_id"`
	SubSectionsID  int     `json:"subsection_id"`
	Originality    float64 `json:"originality"`
	Subject        string  `json:"subject"`
	Thesis         string  `json:"thesis"`
	Fields         string  `json:"custom_fields"`
	DateCreate     string
	DateLastChange string
	Status         string
	Changes        string
}

func (Thesis) MarshalEasyJSON

func (v Thesis) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Thesis) MarshalJSON

func (v Thesis) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Thesis) UnmarshalEasyJSON

func (v *Thesis) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Thesis) UnmarshalJSON

func (v *Thesis) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL