Documentation
¶
Overview ¶
Package controllers provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCommentJSONBody ¶
type AddCommentJSONBody = NewComment
AddCommentJSONBody defines parameters for AddComment.
type AddCommentJSONRequestBody ¶
type AddCommentJSONRequestBody = AddCommentJSONBody
AddCommentJSONRequestBody defines body for AddComment for application/json ContentType.
type Comment ¶
type Comment struct { CreatedAt *time.Time `json:"created_at,omitempty"` Id *int64 `json:"id,omitempty"` Text string `json:"text"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
Comment defines model for Comment.
func FromUComment ¶
func (Comment) ToUComment ¶
type CommonProps ¶
type CommonProps struct { CreatedAt *time.Time `json:"created_at,omitempty"` Id *int64 `json:"id,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
CommonProps defines model for CommonProps.
type GetCommentsParams ¶
type GetCommentsParams struct { Query *string `form:"query,omitempty" json:"query,omitempty"` Year *string `form:"year,omitempty" json:"year,omitempty"` Yearmonth *string `form:"yearmonth,omitempty" json:"yearmonth,omitempty"` }
GetCommentsParams defines parameters for GetComments.
func FromUGetCommentsParams ¶
func FromUGetCommentsParams(uGetCommentsParams usecases.UGetCommentsParams) GetCommentsParams
func (GetCommentsParams) ToUGetCommentsParams ¶
func (getCommentsParams GetCommentsParams) ToUGetCommentsParams() usecases.UGetCommentsParams
type NewComment ¶
type NewComment struct {
Text string `json:"text"`
}
NewComment defines model for NewComment.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.