blog

package
v0.0.0-...-b7df801 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlogMgr *_BlogMgr

Functions

func BlogAddInsertCallback

func BlogAddInsertCallback(cb func(obj EzOrmObj))

func BlogAddUpdateCallback

func BlogAddUpdateCallback(cb func(obj EzOrmObj))

func BlogInsertCallback

func BlogInsertCallback(o *Blog)

func BlogUpdateCallback

func BlogUpdateCallback(o *Blog)

Types

type Blog

type Blog struct {
	ID bson.ObjectId `json:"id" bson:"_id,omitempty"`

	Title string `bson:"title" json:"title"`

	Hits int32 `bson:"Hits" json:"Hits"`

	Slug string `bson:"Slug" json:"Slug"`

	Body string `bson:"Body" json:"Body"`

	User int32 `bson:"User" json:"User"`

	IsPublished bool `bson:"IsPublished" json:"IsPublished"`
	// contains filtered or unexported fields
}

func (*Blog) GetClassName

func (p *Blog) GetClassName() string

func (*Blog) GetNameSpace

func (p *Blog) GetNameSpace() string

func (*Blog) Id

func (o *Blog) Id() string

func (*Blog) InsertUnique

func (o *Blog) InsertUnique(query interface{}) (saved bool, err error)

func (*Blog) IsSearchEnabled

func (o *Blog) IsSearchEnabled() bool

func (*Blog) Save

func (o *Blog) Save() (info *mgo.ChangeInfo, err error)

Jump to

Keyboard shortcuts

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