models

package
v0.0.0-...-9f6fd05 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QiniuDownloadUrl

func QiniuDownloadUrl(domain, key string) string

Types

type Blog

type Blog struct {
	Id                    int64
	Ident                 string `orm:"unique"`
	Title                 string
	Keywords              string       `orm:"null"`
	CatalogId             int64        `orm:"index"`
	Content               *BlogContent `orm:"-"`
	BlogContentId         int64        `orm:"unique"`
	BlogContentLastUpdate int64
	Type                  int8 /*0:original, 1:translate, 2:reprint*/
	Status                int8 /*0:draft, 1:release*/
	Views                 int64
	Created               time.Time `orm:"auto_now_add;type(datetime)"`
	SnapShot              string
}

func (*Blog) TableEngine

func (*Blog) TableEngine() string

type BlogContent

type BlogContent struct {
	Id      int64
	Content string `orm:"type(text)"`
}

func (*BlogContent) TableEngine

func (*BlogContent) TableEngine() string

type Catalog

type Catalog struct {
	Id           int64
	Ident        string `orm:"unique"`
	Name         string
	Resume       string
	DisplayOrder int
	ImgUrl       string
	IsAuth       bool `orm:"tinyint"`
}

func (*Catalog) TableEngine

func (*Catalog) TableEngine() string

type RssFeeder

type RssFeeder struct {
	Id            int64     `json:"id" form:"id"`
	RSSDesc       string    `orm:"column(rss_desc)" json:"rss_desc" valid:"Required" form:"rss_desc"`
	RSSUrl        string    `orm:"column(rss_url)" json:"rss_url" valid:"Required" form:"rss_url"`
	CreateTime    time.Time `orm:"column(create_time)"json:"create_time" form:"-"`
	UpdateTime    time.Time `orm:"column(update_time)"json:"update_time" form:"-"`
	SubscribeTime time.Time `orm:"column(subscribe_time)"json:"subscribe_time" form:"-"`
}

func (*RssFeeder) TableName

func (this *RssFeeder) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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