Documentation
¶
Index ¶
- func CheckUser(ctx context.Context, c *app.RequestContext)
- func CreateNote(ctx context.Context, c *app.RequestContext)
- func CreateUser(ctx context.Context, c *app.RequestContext)
- func DeleteNote(ctx context.Context, c *app.RequestContext)
- func QueryNote(ctx context.Context, c *app.RequestContext)
- func SendResponse(c *app.RequestContext, err error, data interface{})
- func UpdateNote(ctx context.Context, c *app.RequestContext)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUser ¶
func CheckUser(ctx context.Context, c *app.RequestContext)
CheckUser . @router /v1/user/login [POST]
func CreateNote ¶
func CreateNote(ctx context.Context, c *app.RequestContext)
CreateNote . @router /v1/note [POST]
func CreateUser ¶
func CreateUser(ctx context.Context, c *app.RequestContext)
CreateUser . @router /v1/user/register [POST]
func DeleteNote ¶
func DeleteNote(ctx context.Context, c *app.RequestContext)
DeleteNote . @router /v1/note/:note_id [DELETE]
func QueryNote ¶
func QueryNote(ctx context.Context, c *app.RequestContext)
QueryNote . @router /v1/note/query [GET]
func SendResponse ¶
func SendResponse(c *app.RequestContext, err error, data interface{})
SendResponse pack response
func UpdateNote ¶
func UpdateNote(ctx context.Context, c *app.RequestContext)
UpdateNote . @router /v1/note/:note_id [PUT]
Types ¶
Click to show internal directories.
Click to hide internal directories.