Versions in this module Expand all Collapse all v1 v1.0.1 May 30, 2022 v1.0.0 May 31, 2022 Changes in this version + const CODE_AUTH_ERROR + const CODE_BIZ + const CODE_BIZ_ERROR + const CODE_NOTFOUND_ERROR + const CODE_OK + const CODE_PARAMS_ERROR + const CODE_SERVER + const CODE_TENANCY_ERROR + type ApiResult struct + Code int + Data interface{} + Message string + Stack string + func Error(code int, msg string) *ApiResult + func NewApiResult(code int, msg string, data interface{}) *ApiResult + func OK(data interface{}) *ApiResult + type KnownError struct + Err error + ErrorCode int + Message string + func (se *KnownError) Error() string + type Staff struct + Ext interface{} + StaffID string + StaffName string + UID string + UInfo string