dto

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTeamByName

type GetTeamByName struct {
	Name string `uri:"name" binding:"required"`
}

type TeamRequest

type TeamRequest struct {
	Name     string `json:"name" validate:"required" example:"X-Men"`
	Universe string `json:"universe" validate:"universe,required" example:"MARVEL"`
}

func (*TeamRequest) Validator

func (t *TeamRequest) Validator() error

type TeamResponse

type TeamResponse struct {
	ID        string     `json:"id"`
	Name      string     `json:"name"`
	Universe  string     `json:"universe"`
	CreatedAt time.Time  `json:"createdAt"`
	UpdatedAt *time.Time `json:"updatedAt"`
}

func NewTeamResponse

func NewTeamResponse(id, name, universe string,
	createdAt time.Time, updatedAt *time.Time) *TeamResponse

Jump to

Keyboard shortcuts

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