models

package
v0.0.0-...-3235cf1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMAIL        = ""
	IS_SUPERUSER = 0
	FIRST_NAME   = ""
	LAST_NAME    = ""
	IS_STAFF     = 0
	IS_ACTIVE    = 1
)
View Source
const (
	IS_DO = 0
)

Variables

This section is empty.

Functions

func AddSession

func AddSession(sessionid string, user_id int64) (int64, error)

func AddTask

func AddTask(user_id int64, content string) (int64, error)

func AddTodo

func AddTodo(user_id int64, content string) (int64, error)

func AddUser

func AddUser(username, password string) (int64, error)

func ChangePassword

func ChangePassword(username, password string) error

func CheckPassword

func CheckPassword(username, password string) (interface{}, bool)

func CheckSession

func CheckSession(sessionid string) (interface{}, error)

func CheckUserName

func CheckUserName(username string) bool

func DeleteTodo

func DeleteTodo(todo_id int64) error

func DoTodo

func DoTodo(todo_id int64, do int) error

func GetAllTodo

func GetAllTodo(user_id int64) ([]orm.Params, error)

func GetTask

func GetTask(user_id int64) ([]orm.Params, error)

func GetTodo

func GetTodo(user_id int64, is_do, gte bool) ([]orm.Params, error)

func GetUser

func GetUser(user_id int64) (interface{}, error)

func SearchTodo

func SearchTodo(content string) ([]orm.Params, error)

func UpdateSession

func UpdateSession(sessionid string) error

func UpdateTodo

func UpdateTodo(todo_id int64, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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