api

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UNKNOWN_ERROR      = ApiErrorMsg{"UNKNOWN_ERROR", "远程服务调用失败,未知异常!"}
	PARAM_ERROR_CODE   = ApiErrorMsg{"API_PARAM_ILLEGAL", "api参数不合法"}
	DB_TEMP_ADD_FAILED = ApiErrorMsg{"DB_TEMP_ADD_FAILED", "数据新增失败, 请稍后重试"}

	ASSIGNEE_NOT_EXIST = ApiErrorMsg{"ASSIGNEE_NOT_EXIST", "分配的用户不存在"}
	RECORD_NOT_EXIST   = ApiErrorMsg{"RECORD_NOT_EXIST", "记录不存在"}
	PERMISSION_DENIED  = ApiErrorMsg{"PERMISSION_DENIED", "没有权限"}
)

Functions

func Success added in v0.7.4

func Success(result string) []byte

Types

type ApiErrorMsg

type ApiErrorMsg struct {
	ErrorCode, ErrorMsg string
}

type ApiErrorResult

type ApiErrorResult struct {
	ApiResultCommon
	ErrorCode string `json:"errorCode"`
	ErrorMsg  string `json:"errorMsg"`
}

func NewApiErrorResult

func NewApiErrorResult(errorCode, errorMsg string) ApiErrorResult

type ApiResultCommon

type ApiResultCommon struct {
	T       int64 `json:"t"`
	Success bool  `json:"success"`
	Status  bool  `json:"status"`
}

Jump to

Keyboard shortcuts

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