Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func ErrorResponse(err error) serializer.Response
func Hello ¶
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 ¶
@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 ¶
@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.