models

package
v0.0.0-...-2f455a3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Engine   *xorm.Engine
	DataType string
	Path     string
)

Functions

func ConDb

func ConDb() (*xorm.Engine, error)

func DeleteTask

func DeleteTask(id int64) (int64, error)

func GetTasks

func GetTasks(offset int, limit int, field string) (*[]*Task, error)

func PostTask

func PostTask(name string) (int64, error)

func PutTask

func PutTask(task Task) (int64, error)

func SetEngine

func SetEngine() (*xorm.Engine, error)

Types

type Task

type Task struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
	Done int64  `json:"done"`
}

Jump to

Keyboard shortcuts

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