model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID            int    `json:"id"`
	UserId        string `json:"userid"`
	Password      string `json:"password"`
	UserName      string `json:"user_name"`
	RegDate       string `json:"reg_date"`
	LastLoginDate string `json:"last_login_date"`
	Status        int    `json:"status"`
}

type AccountList

type AccountList struct {
	List  []*Account `json:"list"`
	Total int64      `json:"total"`
}

type Article

type Article struct {
	Id         string        `json:"id"`
	Title      string        `json:"title"`
	Icon       string        `json:"icon"`
	Brief      string        `json:"brief"`
	Body       template.HTML `json:"body"`
	UserID     int           `json:"user_id"`
	NickName   string        `json:"nick_name"`
	Origin     string        `json:"origin"`
	CreateTime time.Time     `json:"create_time"`
	Visited    int           `json:"visited"`
	Catalog    string        `json:"catalog"`
}

type ArticleList

type ArticleList struct {
	List  []*Article `json:"list"`
	Total int64      `json:"total"`
}
type CusLink struct {
	Id         int    `json:"id"`
	Title      string `json:"title"`
	Url        string `json:"url"`
	Status     int    `json:"status"`
	LinkType   string `json:"link_type"`
	Catid      string `json:"cat_id"`
	Adddate    string `json:"add_date"`
	Updatedate string `json:"update_date"`
	Visited    int    `json:"visited"`
}
type CusLinkList struct {
	List  []*CusLink `json:"list"`
	Total int64      `json:"total"`
}

type Index

type Index struct {
	Common   []*Link
	Info     []*Link
	CusLinks []*CusLink
	Articles []*Article
	Other    *LinkGroup
	Backend  *LinkGroup
	Frontend *LinkGroup
	Hot      *LinkGroup
}
type Link struct {
	Id         string        `json:"id"`
	Title      string        `json:"title"`
	Icon       string        `json:"icon"`
	Catid      string        `json:"cat_id"`
	LinkType   string        `json:"link_type"`
	Visited    int           `json:"visited"`
	Brief      template.HTML `json:"brief"`
	Url        string        `json:"url"`
	CreateTime string        `json:"create_time"`
}

type LinkCat

type LinkCat struct {
	ID      string `json:"id"`
	CatName string `json:"cat_name"`
}

type LinkCatList

type LinkCatList struct{ List []*LinkCat }

type LinkGroup

type LinkGroup struct {
	Active *OneGroup
	Rests  []*OneGroup
}
type LinkList struct {
	List  []*Link `json:"list"`
	Total int64   `json:"total"`
}

type OneGroup

type OneGroup struct {
	CatId string
	Name  string
	Items []*Link
	Size  int
}

type OneGroups

type OneGroups []*OneGroup

func (OneGroups) Len

func (s OneGroups) Len() int

func (OneGroups) Less

func (s OneGroups) Less(i, j int) bool

func (OneGroups) Swap

func (s OneGroups) Swap(i, j int)

type Pager

type Pager struct {
	Page int
	Size int
}
type Search struct {
	Id    string `json:"id"`
	Title string `json:"title"`
	CatId string `json:"cat_id"`
	Url   string `json:"url"`
}

type SearchPager

type SearchPager struct {
	Pager
	*Search
}

type Token

type Token struct {
	UserId string
	Code   string
}

Jump to

Keyboard shortcuts

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