draft

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Draft

type Draft struct {
	Id      int
	CubeId  string `orm:"index;pk"`
	Cover   string `orm:"type(text)"`
	Title   string
	Content string `orm:"type(text)"`
	Image   string `orm:"type(text)"`
}

func (*Draft) DraftGet

func (b *Draft) DraftGet(cubeId string) (interface{}, bool)

func (*Draft) DraftImageDelete

func (b *Draft) DraftImageDelete(cubeId, filename string) bool

func (*Draft) DraftImageMove

func (b *Draft) DraftImageMove(cubeId, filename string)

func (*Draft) DraftImageUpload

func (b *Draft) DraftImageUpload(cubeId, code, mode string) (string, string, bool)

func (*Draft) DraftRemove

func (b *Draft) DraftRemove(cubeId string) (interface{}, bool)

func (*Draft) DraftSend

func (b *Draft) DraftSend(cubeid, cover, title, content, images string) (string, bool)

Jump to

Keyboard shortcuts

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