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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbilityRequest

type AbilityRequest struct {
	Description string `json:"description" example:"laser ray"`
}

func (*AbilityRequest) Validator

func (a *AbilityRequest) Validator() error

type AbilityResponse

type AbilityResponse struct {
	ID          string     `json:"id"`
	Description string     `json:"description"`
	CreatedAt   time.Time  `json:"createdAt"`
	UpdatedAt   *time.Time `json:"updatedAt,omitempty"`
}

func NewAbilityResponse

func NewAbilityResponse(id, description string, createdAt time.Time, updatedAt *time.Time) *AbilityResponse

Jump to

Keyboard shortcuts

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