service

package
v0.0.0-...-d27c886 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateNote

type CreateNote struct {
	Param
	Title   string `json:"title" binding:"required"`
	PreView string `json:"preView" binding:"required"`
	Content string `json:"content" binding:"required"`
	ID      uint   `json:"-"`
}

func (*CreateNote) BeforeBind

func (param *CreateNote) BeforeBind(c *gin.Context)

func (*CreateNote) Service

func (param *CreateNote) Service()

type CreateToken

type CreateToken struct {
	Param
	Email    string `json:"email" binding:"required,email"`
	Password string `json:"password" binding:"required"`
}

func (*CreateToken) Service

func (param *CreateToken) Service()

type CreateUser

type CreateUser struct {
	Param
	Email    string `json:"email" binding:"required,email"`
	Name     string `json:"name" binding:"required"`
	Password string `json:"password" binding:"required"`
}

func (*CreateUser) Service

func (param *CreateUser) Service()

type GetNote

type GetNote struct {
	Param
	NoteID uint `form:"noteID" binding:"required"`
}

func (*GetNote) Service

func (param *GetNote) Service()

type GetNoteList

type GetNoteList struct {
	Param
	Page int `form:"page" binding:"required"`
}

func (*GetNoteList) Service

func (param *GetNoteList) Service()

type GetUserInfo

type GetUserInfo struct {
	Param
}

func (*GetUserInfo) BeforeBind

func (param *GetUserInfo) BeforeBind(c *gin.Context)

type Param

type Param struct {
	ginHelper.Param
}

func (*Param) Bind

func (param *Param) Bind(c *gin.Context, p ginHelper.Parameter)

func (*Param) Result

func (param *Param) Result(c *gin.Context)

Jump to

Keyboard shortcuts

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