syncd: github.com/dreamans/syncd/render Index | Files

package render

import "github.com/dreamans/syncd/render"

Index

Package Files

render.go

Constants

const (
    CODE_OK                     = 0
    CODE_ERR_SYSTEM             = 1000
    CODE_ERR_APP                = 1001
    CODE_ERR_PARAM              = 1002
    CODE_ERR_DATA_REPEAT        = 1003
    CODE_ERR_LOGIN_FAILED       = 1004
    CODE_ERR_NO_LOGIN           = 1005
    CODE_ERR_NO_PRIV            = 1006
    CODE_ERR_TASK_ERROR         = 1007
    CODE_ERR_USER_OR_PASS_WRONG = 1008
    CODE_ERR_NO_DATA            = 1009
)

func AppError Uses

func AppError(c *gin.Context, message string)

func CustomerError Uses

func CustomerError(c *gin.Context, code int, message string)

func JSON Uses

func JSON(c *gin.Context, data interface{})

func NoDataError Uses

func NoDataError(c *gin.Context, message string)

func ParamError Uses

func ParamError(c *gin.Context, message string)

func RepeatError Uses

func RepeatError(c *gin.Context, message string)

func Success Uses

func Success(c *gin.Context)

Package render imports 2 packages (graph) and is imported by 6 packages. Updated 2019-03-30. Refresh now. Tools for package owners.