service

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v1.0.2

type Auth struct {
	Identity *models.Identity
}

func NewAuth added in v1.0.2

func NewAuth(c *gin.Context) *Auth

func (*Auth) Login added in v1.0.2

func (a *Auth) Login(c *gin.Context, account string, password string) error

Login 用户登录

type Category

type Category struct {
	Identity *models.Identity
}

func NewCategory added in v1.0.2

func NewCategory(c *gin.Context) *Category

func (*Category) Add added in v1.0.2

func (c *Category) Add(data yiigo.X) (int64, error)

func (*Category) Delete added in v1.0.2

func (c *Category) Delete(id int) error

func (*Category) Edit added in v1.0.2

func (c *Category) Edit(id int, data yiigo.X) error

func (*Category) GetAll added in v1.0.2

func (c *Category) GetAll() ([]models.Category, error)

func (*Category) GetDetail added in v1.0.2

func (c *Category) GetDetail(id int) (*models.Category, error)

type Doc

type Doc struct {
	Identity *models.Identity
}

func NewDoc added in v1.0.2

func NewDoc(c *gin.Context) *Doc

func (*Doc) Add added in v1.0.2

func (d *Doc) Add(data yiigo.X, history yiigo.X) (int64, error)

func (*Doc) Delete added in v1.0.2

func (c *Doc) Delete(id int) error

func (*Doc) Edit added in v1.0.2

func (d *Doc) Edit(id int, data yiigo.X) error

func (*Doc) GetDetail added in v1.0.2

func (d *Doc) GetDetail(id int) (*models.Doc, error)

func (*Doc) GetDocs added in v1.0.2

func (d *Doc) GetDocs(projectID int) ([]models.Doc, error)

type History

type History struct {
	Identity *models.Identity
}

func NewHistory added in v1.0.2

func NewHistory(c *gin.Context) *History

func (*History) GetHistory added in v1.0.2

func (h *History) GetHistory(docID int) ([]models.History, error)

type Project

type Project struct {
	Identity *models.Identity
}

func NewProject added in v1.0.2

func NewProject(c *gin.Context) *Project

func (*Project) Add added in v1.0.2

func (p *Project) Add(data yiigo.X) (int64, error)

func (*Project) Delete added in v1.0.2

func (c *Project) Delete(id int) error

func (*Project) Edit added in v1.0.2

func (p *Project) Edit(id int, data yiigo.X) error

func (*Project) GetDetail added in v1.0.2

func (p *Project) GetDetail(id int) (*models.Project, error)

func (*Project) GetProjects added in v1.0.2

func (p *Project) GetProjects(categoryID int) ([]models.Project, error)

type User

type User struct {
	Identity *models.Identity
}

func NewUser added in v1.0.2

func NewUser(c *gin.Context) *User

func (*User) Add added in v1.0.2

func (u *User) Add(data yiigo.X) (int64, error)

func (*User) CheckUnique added in v1.0.2

func (u *User) CheckUnique(name string, email string, id ...int) (bool, error)

func (*User) Delete added in v1.0.2

func (u *User) Delete(id int) error

func (*User) Edit added in v1.0.2

func (u *User) Edit(id int, data yiigo.X) error

func (*User) GetDetail added in v1.0.2

func (u *User) GetDetail(id int) (*models.User, error)

func (*User) GetUserList added in v1.0.2

func (u *User) GetUserList(query url.Values, size ...int) (int, int, int, []models.User, error)

Jump to

Keyboard shortcuts

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