note

package
v0.0.0-...-62da3de Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(app *eudore.Eudore) error

Types

type CommentController

type CommentController struct {
	controller.ControllerWebsite
}

PostgreSQL Begin CREATE SEQUENCE seq_note_comment_id INCREMENT by 1 MINVALUE 1 START 1; CREATE TABLE tb_note_comment(

"id" INTEGER PRIMARY KEY DEFAULT nextval('seq_note_comment_id'),
"path" VARCHAR(128),
"userid" INTEGER DEFAULT 0,
"format" VARCHAR(8),
"content" TEXT,
"createtime" TIMESTAMP DEFAULT (now()),
"edittime" TIMESTAMP

);

PostgreSQL End

func NewCommentController

func NewCommentController(db *sql.DB) *CommentController

func (*CommentController) ControllerRoute

func (ctl *CommentController) ControllerRoute() map[string]string

func (*CommentController) Delete

func (ctl *CommentController) Delete()

func (*CommentController) Get

func (ctl *CommentController) Get() (interface{}, error)

func (*CommentController) Post

func (ctl *CommentController) Post()

func (*CommentController) Put

func (ctl *CommentController) Put()

type ConsentController

type ConsentController struct {
	controller.ControllerWebsite
}

func NewConsentController

func NewConsentController(db *sql.DB) *ConsentController

func (*ConsentController) ControllerRoute

func (ctl *ConsentController) ControllerRoute() map[string]string

func (*ConsentController) Delete

func (ctl *ConsentController) Delete()

func (*ConsentController) Get

func (ctl *ConsentController) Get() (interface{}, error)

func (*ConsentController) Put

func (ctl *ConsentController) Put()

type ContentController

type ContentController struct {
	controller.ControllerWebsite
}

PostgreSQL Begin CREATE SEQUENCE seq_note_content_id INCREMENT by 1 MINVALUE 1 START 1; CREATE TABLE tb_note_content(

"id" INTEGER PRIMARY KEY DEFAULT nextval('seq_note_content_id'),
"status" INTEGER DEFAULT 0,
"userid" INTEGER DEFAULT 0,
"path" VARCHAR(128),
"ppath" VARCHAR(128) DEFAULT "",
"format" VARCHAR(8),
"title" VARCHAR(50),
"topics" VARCHAR(128) DEFAULT "",
"content" TEXT,
"createtime" TIMESTAMP DEFAULT (now()),
"edittime" TIMESTAMP

);

PostgreSQL End

func NewContentController

func NewContentController(db *sql.DB) *ContentController

func (*ContentController) ControllerRoute

func (ctl *ContentController) ControllerRoute() map[string]string

func (*ContentController) Delete

func (ctl *ContentController) Delete()

func (*ContentController) Get

func (ctl *ContentController) Get() (interface{}, error)

func (*ContentController) Post

func (ctl *ContentController) Post()

func (*ContentController) Put

func (ctl *ContentController) Put()

type IndexController

type IndexController struct {
	controller.ControllerWebsite
}

func NewIndexController

func NewIndexController(db *sql.DB) *IndexController

func (*IndexController) Get

func (ctl *IndexController) Get() (interface{}, error)

func (*IndexController) GetCount

func (ctl *IndexController) GetCount() interface{}

func (*IndexController) GetList

func (ctl *IndexController) GetList() (interface{}, error)

func (*IndexController) GetNameByName

func (ctl *IndexController) GetNameByName() (interface{}, error)

type NoteController

type NoteController struct {
	controller.ControllerWebsite
}

PostgreSQL Begin CREATE SEQUENCE seq_note_content_id INCREMENT by 1 MINVALUE 1 START 1; CREATE TABLE tb_note_content(

"id" INTEGER PRIMARY KEY DEFAULT nextval('seq_note_content_id'),
"status" INTEGER DEFAULT 0,
"userid" INTEGER DEFAULT 0,
"path" VARCHAR(128),
"ppath" VARCHAR(128) DEFAULT "",
"format" VARCHAR(8),
"title" VARCHAR(50),
"topics" VARCHAR(128) DEFAULT "",
"content" TEXT,
"createtime" TIMESTAMP DEFAULT (now()),
"edittime" TIMESTAMP

);

PostgreSQL End

func NewNoteController

func NewNoteController(db *sql.DB) *NoteController

func (*NoteController) GetCount

func (ctl *NoteController) GetCount() interface{}

func (*NoteController) GetIndex

func (ctl *NoteController) GetIndex() (interface{}, error)

func (*NoteController) GetIndexNameByName

func (ctl *NoteController) GetIndexNameByName() (interface{}, error)

func (*NoteController) GetList

func (ctl *NoteController) GetList() (interface{}, error)

Jump to

Keyboard shortcuts

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