blog

package
v0.0.0-...-983cbdb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog struct {
	Id        int
	CubeId    string `orm:"index"`
	Cover     string `orm:"type(text)"`
	Title     string
	Content   string `orm:"type(text)"`
	Text      string `orm:"type(text)"`
	Image     string `orm:"type(text)"`
	Date      string `orm:"index;type(datetime)"`
	Label     string
	LabelType string
	Love      int
	Comment   int
	Collect   int
	View      int
}

func (*Blog) BlogDelete

func (b *Blog) BlogDelete(date, cover, image, label, labelType, index, blogId, cubeId string) (string, bool)

func (*Blog) BlogDetail

func (b *Blog) BlogDetail(id string) (interface{}, bool)

func (*Blog) BlogForumGet

func (b *Blog) BlogForumGet(mode, page string) (interface{}, int64, bool)

func (*Blog) BlogGet

func (b *Blog) BlogGet(mode, page, label, labeltype string) (interface{}, int64, string, bool)

func (*Blog) BlogLike

func (b *Blog) BlogLike(id string) (string, bool)

func (*Blog) BlogProfileGet

func (b *Blog) BlogProfileGet(ids string) interface{}

func (*Blog) BlogSearch

func (b *Blog) BlogSearch(keyWord, page string) (int, interface{})

func (*Blog) BlogSend

func (b *Blog) BlogSend(cubeid, cover, title, content, text, images, label, labelType string) (string, bool)

func (*Blog) BlogView

func (b *Blog) BlogView(id string) (string, bool)

type DeleteBlog

type DeleteBlog struct {
	Id     int
	BlogId int
	CubeId string
	Image  string `orm:"type(text)"`
	Cover  string `orm:"type(text)"`
	Date   string `orm:"index;type(datetime)"`
}

Jump to

Keyboard shortcuts

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