Versions in this module Expand all Collapse all v1 v1.0.2 Sep 27, 2023 v1.0.1 May 23, 2023 Changes in this version + const ACCESS_TOKEN_TIMEOUT + const ADD_FAILED + const AUTH_ERROR + const Buniss_Add + const Buniss_Auth + const Buniss_Clean + const Buniss_Del + const Buniss_Edit + const Buniss_Export + const Buniss_Import + const Buniss_Other + const Buniss_Retreat + const CACHE_READ_ERROR + const CACHE_SAVE_ERROR + const CURL_ERROR + const DATA_EXISTS + const DB_READ_ERROR + const DB_SAVE_ERROR + const DELETE_FAILED + const EMPTY_PARAMS + const ERROR + const EXCEPTION + const FILE_SAVE_ERROR + const INVALID + const JSON_PARSE_FAIL + const LOGIN_ERROR + const NOTLOGIN + const NOT_EXISTS + const NUMBER_MATCH_ERROR + const OTHER_LOGIN + const PARAM_INVALID + const RECORD_NOT_FOUND + const SESSION_TIMEOUT + const SUCCESS + const Status202 + const Status204 + const Status206 + const Status401 + const Status403 + const Status412 + const Status417 + const Status500 + const TYPE_ERROR + const UNAUTHORIZED + const UNKNOWN + const UPDATE_FAILED + const VERSION_INVALID + func CodeMsg(code int) string + func ErrorCheck(r *ghttp.Request, err error) + func Fail(r *ghttp.Request) + func FailWithData(r *ghttp.Request, data interface{}) + func FailWithDetailed(r *ghttp.Request, code int, data interface{}, message string) + func FailWithMessage(r *ghttp.Request, message string) + func GetTranslate(r *ghttp.Request, msg string, sl, tl string) (message string) + func Json(r *ghttp.Request, code int, message string, data ...interface{}) + func JsonExit(r *ghttp.Request, err int, msg string, data ...interface{}) + func NullCheck(r *ghttp.Request, data ...interface{}) + func Ok(r *ghttp.Request) + func OkDetailed(r *ghttp.Request, data interface{}, message string) + func OkWithData(r *ghttp.Request, data interface{}) + func OkWithMessage(r *ghttp.Request, message string) + func Result(r *ghttp.Request, code int, data interface{}, message string) + func RoundRobin(mps map[string]string, index int) (AppId, Sign string) + func SetAdapter(redis gcache.Adapter) + func Translate(r *ghttp.Request, message string) (string, error) + func TranslateCtx(ctx context.Context, message string) (string, error) + func WithStatus(r *ghttp.Request, status int, code int, data interface{}, message string) + type BaiduTranslateRsp struct + ErrorCode string + ErrorMsg string + From string + To string + TransResult []struct{ ... } + type JsonResponse struct + Code int + Data interface{} + Message string + func FailRes(msg string) JsonResponse + func SuccRes(data interface{}) JsonResponse + func Unauthorized(msg string, data interface{}) JsonResponse + func (resp JsonResponse) DataString() string + func (resp JsonResponse) Get(key string) interface{} + func (resp JsonResponse) GetInt(key string) int + func (resp JsonResponse) GetString(key string) string + func (resp JsonResponse) Json() string + func (resp JsonResponse) Success() bool + type Limiters struct + TencentLimit *glimiter.Period