models

package
v0.0.0-...-3406725 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2014 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelUser

func DelUser(id int64) error

func InitDB

func InitDB() (err error)

Types

type User

type User struct {
	ID   int64  `json:"id" xorm:"id pk autoincr"`
	Name string `json:"name"` // XXXX

}

func AllUser

func AllUser() (vs []User, err error)

func GetUser

func GetUser(id int64) (v *User, err error)

func (*User) Create

func (v *User) Create() error

create

func (*User) Save

func (v *User) Save() error

func (*User) Update

func (v *User) Update(id int64) error

Jump to

Keyboard shortcuts

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