entity

package
v0.0.0-...-21c1986 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRecord = errors.New("models: подходящей записи не найдено")

Functions

This section is empty.

Types

type Snippet

type Snippet struct {
	ID      int       `json:"id"       example:"1"`
	Title   string    `json:"title"       example:"Supper_title"`
	Content string    `json:"content"       example:"Important_content"`
	Created time.Time `json:"created"       example:""`
	Expires time.Time `json:"expires"       example:""`
}

type SnippetCreate

type SnippetCreate struct {
	Title   string `json:"title"       example:"Supper_title"`
	Content string `json:"content"       example:"Important_content"`
	Expires string `json:"expires"       example:""`
}

Jump to

Keyboard shortcuts

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