handler

package
v0.0.0-...-db099c4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserId

func GetUserId(c *gin.Context) uint64

GetUserId get user id from context

func SendResponse

func SendResponse(c *gin.Context, err error, data interface{})

SendResponse send response to client

Types

type ListResponse

type ListResponse struct {
	HasMore   int         `json:"has_more"`
	PageKey   string      `json:"page_key"`
	PageValue int         `json:"page_value"`
	Items     interface{} `json:"items"`
}

ListResponse api list response

type Response

type Response struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Response api response

Directories

Path Synopsis
v1
im

Jump to

Keyboard shortcuts

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