controllers

package
v0.0.0-...-6f2b15d Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 2 Imported by: 0

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 FromUComment(uComment usecases.UComment) Comment

func (Comment) ToUComment

func (comment Comment) ToUComment() usecases.UComment

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 Error

type Error struct {
	Message string `json:"message"`
}

Error defines model for Error.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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