model

package
v0.0.0-...-af7f33b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	ID      int    `json:"id" db:"id"`
	Title   string `json:"title" db:"title" validate:"required"`
	Content string `json:"content" db:"content" validate:"required"`
	Author  string `json:"author" db:"author" validate:"required"`
}

Article represents article

func (*Article) TableName

func (a *Article) TableName() string

TableName set table name in DB

Jump to

Keyboard shortcuts

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