domain

package
v0.0.0-...-cd52cd5 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 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 Article

type Article struct {
	Name  string `validate:"required,min=1,max=200,excludesall=!/#?@&+="`
	Title string `validate:"required,min=1,max=100"`
	// article type name
	Type        string `validate:"required,min=1,max=100,excludesall=!/#?@&+="`
	Description string
	Content     string `validate:"required,min=1"`
	Sort        int    `validate:"min=-99999,max=99999"`
	// previous article
	Prev string
	// next article
	Next string
	Good int
	Top  int
	// article tags
	Tags      []string
	Hits      int
	Author    string
	Chapters  []*Article
	CreatedAt time.Time
}

type ArticleType

type ArticleType struct {
	Name      string `validate:"required,min=1,max=100,excludesall=/!#?@&+="`
	Title     string `validate:"required,min=1,max=100"`
	Sort      int    `validate:"min=-99999,max=99999"`
	CreatedAt time.Time
}

article type

Jump to

Keyboard shortcuts

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