dto

package
v0.0.0-...-0ef8f77 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostDTO

type PostDTO struct {
	ID           string    `json:"id"`
	Title        string    `json:"title" binding:"required"`
	ThumbnailURL string    `json:"thumbnailUrl" binding:"required"`
	Content      string    `json:"content" binding:"required"`
	Permalink    string    `json:"permalink" binding:"required"`
	IsDraft      *bool     `json:"isDraft" binding:"required"`
	CreatedAt    time.Time `json:"createdAt"`
	UpdatedAt    time.Time `json:"updatedAt"`
	PublishedAt  time.Time `json:"publishedAt"`
}

type PostsTagsDTO

type PostsTagsDTO struct {
	ID        string    `json:"id"`
	PostID    string    `json:"postId" binding:"required"`
	TagID     string    `json:"tagId" binding:"required"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type TagDTO

type TagDTO struct {
	ID        string    `json:"id"`
	Name      string    `json:"name" binding:"required"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type UserDTO

type UserDTO struct {
	ID             string
	MailAddress    string
	Password       string
	CreatedAt      time.Time
	UpdatedAt      time.Time
	LastLoggedinAt time.Time
}

Jump to

Keyboard shortcuts

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