api

package
v0.0.0-...-59d6697 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorResponse

func ErrorResponse(err error) serializer.Response

func Hello

func Hello(c *gin.Context)

PingExample godoc @Summary ping example @Schemes @Description do ping @Tags exmaple @Accept json @Produce json @Success 200 {string} Helloworld @Router /example/hello [get]

func UserLogin

func UserLogin(c *gin.Context)

@Tags USER @Summary 用户登陆 @Produce json @Accept json @Param data body service.UserService true "user, password" @Success 200 {object} serializer.ResponseTask "{"status":200, "data":{}, "msg":"ok"}" @Failure 500 {object} serializer.ResponseTask "{"status": 500, "data":{}, "msg":{}, "error":"error"}" @Router /user/login [post]

func UserRegister

func UserRegister(c *gin.Context)

@Tags USER @Summary 用户注册 @Produce json @Accept json @Param data body service.UserService true "user, password" @Success 200 {object} serializer.ResponseUser "{"status":200, "data":{}, "msg":"ok"}" @Failure 500 {object} serializer.ResponseUser "{"status": 500, "data":{}, "msg":{}, "error":"error"}" @Router /user/register [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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