articles_dtos

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleInput

type ArticleInput struct {
	Title   string `json:"title" binding:"required"`
	Content string `json:"content" binding:"required"`
}

type ArticleRequest

type ArticleRequest struct {
	Id      int32
	UserId  int32
	Title   string
	Content string
	Likes   pq.Int32Array `gorm:"type:integer[]"`
}

type ArticleResponse

type ArticleResponse struct {
	Id      int32
	UserId  int32
	Title   string
	Content string
	Likes   pq.Int32Array `gorm:"type:integer[]"`
}

Jump to

Keyboard shortcuts

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