Documentation ¶
Overview ¶
Package mperr constant User: 姜伟 Time: 2020-02-19 04:51:13
Package mperr error User: 姜伟 Time: 2020-02-19 04:26:32
Index ¶
- Constants
- type ErrorCommon
- func NewAliOpen(code uint, msg string, err error) *ErrorCommon
- func NewAliOss(code uint, msg string, err error) *ErrorCommon
- func NewAliPay(code uint, msg string, err error) *ErrorCommon
- func NewAliPayAuth(code uint, msg string, err error) *ErrorCommon
- func NewAliPayFund(code uint, msg string, err error) *ErrorCommon
- func NewAliPayLife(code uint, msg string, err error) *ErrorCommon
- func NewAliPayMarket(code uint, msg string, err error) *ErrorCommon
- func NewAliPayMaterial(code uint, msg string, err error) *ErrorCommon
- func NewAliPayTrade(code uint, msg string, err error) *ErrorCommon
- func NewCacheMem(code uint, msg string, err error) *ErrorCommon
- func NewCacheRedis(code uint, msg string, err error) *ErrorCommon
- func NewConfigViper(code uint, msg string, err error) *ErrorCommon
- func NewCurrencyAMJiSu(code uint, msg string, err error) *ErrorCommon
- func NewCurrencyAMYiYuan(code uint, msg string, err error) *ErrorCommon
- func NewDbMonGo(code uint, msg string, err error) *ErrorCommon
- func NewDbMysql(code uint, msg string, err error) *ErrorCommon
- func NewDingTalk(code uint, msg string, err error) *ErrorCommon
- func NewDingTalkCorp(code uint, msg string, err error) *ErrorCommon
- func NewDingTalkProvider(code uint, msg string, err error) *ErrorCommon
- func NewIMTencent(code uint, msg string, err error) *ErrorCommon
- func NewInnerJSON(code uint, msg string, err error) *ErrorCommon
- func NewInnerServer(code uint, msg string, err error) *ErrorCommon
- func NewInnerValidator(code uint, msg string, err error) *ErrorCommon
- func NewIotAliYun(code uint, msg string, err error) *ErrorCommon
- func NewIotBaiDu(code uint, msg string, err error) *ErrorCommon
- func NewIotTencent(code uint, msg string, err error) *ErrorCommon
- func NewLogisticsAMAli(code uint, msg string, err error) *ErrorCommon
- func NewLogisticsKd100(code uint, msg string, err error) *ErrorCommon
- func NewLogisticsKdBird(code uint, msg string, err error) *ErrorCommon
- func NewLogisticsTaoBao(code uint, msg string, err error) *ErrorCommon
- func NewMQ(code uint, msg string, err error) *ErrorCommon
- func NewMQRabbit(code uint, msg string, err error) *ErrorCommon
- func NewMQRedis(code uint, msg string, err error) *ErrorCommon
- func NewMapBaiDu(code uint, msg string, err error) *ErrorCommon
- func NewMapGaoDe(code uint, msg string, err error) *ErrorCommon
- func NewMapTencent(code uint, msg string, err error) *ErrorCommon
- func NewPrintFeYin(code uint, msg string, err error) *ErrorCommon
- func NewProtocol(code uint, msg string, err error) *ErrorCommon
- func NewPushAliYun(code uint, msg string, err error) *ErrorCommon
- func NewPushBaiDu(code uint, msg string, err error) *ErrorCommon
- func NewPushJPush(code uint, msg string, err error) *ErrorCommon
- func NewPushXinGe(code uint, msg string, err error) *ErrorCommon
- func NewQCloud(code uint, msg string, err error) *ErrorCommon
- func NewQCloudCos(code uint, msg string, err error) *ErrorCommon
- func NewQiNiu(code uint, msg string, err error) *ErrorCommon
- func NewQiNiuKodo(code uint, msg string, err error) *ErrorCommon
- func NewSmsAliYun(code uint, msg string, err error) *ErrorCommon
- func NewSmsDaYu(code uint, msg string, err error) *ErrorCommon
- func NewSmsYun253(code uint, msg string, err error) *ErrorCommon
- func NewWx(code uint, msg string, err error) *ErrorCommon
- func NewWxAccount(code uint, msg string, err error) *ErrorCommon
- func NewWxCorp(code uint, msg string, err error) *ErrorCommon
- func NewWxMini(code uint, msg string, err error) *ErrorCommon
- func NewWxOpen(code uint, msg string, err error) *ErrorCommon
- func NewWxOpenAccount(code uint, msg string, err error) *ErrorCommon
- func NewWxOpenMini(code uint, msg string, err error) *ErrorCommon
- func NewWxProvider(code uint, msg string, err error) *ErrorCommon
- type IErrorCommon
Constants ¶
const ( // TypeInnerJSON JSON TypeInnerJSON uint = 1 // TypeInnerServer 服务 TypeInnerServer uint = 2 // TypeInnerValidator 校验器 TypeInnerValidator uint = 3 // TypeMapTencent 腾讯 TypeMapTencent uint = 10000 // TypeMapGaoDe 高德 TypeMapGaoDe uint = 10001 // TypeMapBaiDu 百度 TypeMapBaiDu uint = 10002 // TypeSmsAliYun 阿里云 TypeSmsAliYun uint = 10100 // TypeSmsDaYu 阿里大鱼 TypeSmsDaYu uint = 10101 // TypeSmsYun253 253云 TypeSmsYun253 uint = 10102 // TypeCacheMem memcache TypeCacheMem uint = 10300 // TypeCacheRedis redis TypeCacheRedis uint = 10301 // TypeDbMysql mysql TypeDbMysql uint = 10400 // TypeDbMonGo mongo TypeDbMonGo uint = 10401 // TypeConfigViper viper TypeConfigViper uint = 10500 // TypeAliOpen 阿里云开放平台 TypeAliOpen uint = 10600 // TypeAliPay 支付宝 TypeAliPay uint = 10800 // TypeAliPayAuth 授权 TypeAliPayAuth uint = 10801 // TypeAliPayFund 资金 TypeAliPayFund uint = 10802 // TypeAliPayLife 生活号 TypeAliPayLife uint = 10803 // TypeAliPayMarket 店铺 TypeAliPayMarket uint = 10804 // TypeAliPayMaterial 物料 TypeAliPayMaterial uint = 10805 // TypeAliPayTrade 支付 TypeAliPayTrade uint = 10806 // TypeWx 微信 TypeWx uint = 11000 // TypeWxAccount 公众号 TypeWxAccount uint = 11001 // TypeWxCorp 企业号 TypeWxCorp uint = 11002 // TypeWxProvider 企业号服务商 TypeWxProvider uint = 11003 // TypeWxMini 小程序 TypeWxMini uint = 11004 // TypeWxOpen 开放平台 TypeWxOpen uint = 11005 // TypeWxOpenAccount 开放平台公众号 TypeWxOpenAccount uint = 11006 // TypeWxOpenMini 开放平台小程序 TypeWxOpenMini uint = 11007 // TypePrintFeYin 飞印 TypePrintFeYin uint = 11200 // TypeLogisticsAMAli 阿里云市场阿里 TypeLogisticsAMAli uint = 11300 // TypeLogisticsKd100 快递100 TypeLogisticsKd100 uint = 11301 // TypeLogisticsKdBird 快递鸟 TypeLogisticsKdBird uint = 11302 // TypeLogisticsTaoBao 淘宝 TypeLogisticsTaoBao uint = 11303 // TypeIMTencent 腾讯 TypeIMTencent uint = 11400 // TypeCurrencyAMJiSu 阿里云市场极速 TypeCurrencyAMJiSu uint = 11500 // TypeCurrencyAMYiYuan 阿里云市场易圆 TypeCurrencyAMYiYuan uint = 11501 // TypeQCloud 腾讯云 TypeQCloud uint = 11600 // TypeQCloudCos 对象存储 TypeQCloudCos uint = 11601 // TypeQiNiu 七牛云 TypeQiNiu uint = 11800 // TypeQiNiuKodo 对象存储 TypeQiNiuKodo uint = 11801 // TypeAliOss 阿里云OSS TypeAliOss uint = 11900 // TypeDingTalk 钉钉 TypeDingTalk uint = 12000 // TypeDingTalkCorp 企业号 TypeDingTalkCorp uint = 12001 // TypeDingTalkProvider 服务商 TypeDingTalkProvider uint = 12002 // TypeIotAliYun 阿里云 TypeIotAliYun uint = 12100 // TypeIotBaiDu 百度 TypeIotBaiDu uint = 12101 // TypeIotTencent 腾讯 TypeIotTencent uint = 12102 // TypePushAliYun 阿里云 TypePushAliYun uint = 12200 // TypePushBaiDu 百度 TypePushBaiDu uint = 12201 // TypePushXinGe 信鸽 TypePushXinGe uint = 12202 // TypePushJPush 极光 TypePushJPush uint = 12203 // TypeMQ 消息队列 TypeMQ uint = 12300 // TypeMQRedis redis TypeMQRedis uint = 12301 // TypeMQRabbit rabbit TypeMQRabbit uint = 12302 // TypeProtocol 协议 TypeProtocol uint = 12400 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCommon ¶
type ErrorCommon struct { Type uint `json:"type"` Title string `json:"title"` Code uint `json:"code"` Msg string `json:"msg"` Err error }
ErrorCommon 公共错误
func NewAliOpen ¶
func NewAliOpen(code uint, msg string, err error) *ErrorCommon
NewAliOpen 阿里云开放平台错误
func NewAliPayAuth ¶
func NewAliPayAuth(code uint, msg string, err error) *ErrorCommon
NewAliPayAuth 支付宝授权错误
func NewAliPayFund ¶
func NewAliPayFund(code uint, msg string, err error) *ErrorCommon
NewAliPayFund 支付宝资金错误
func NewAliPayLife ¶
func NewAliPayLife(code uint, msg string, err error) *ErrorCommon
NewAliPayLife 支付宝生活号错误
func NewAliPayMarket ¶
func NewAliPayMarket(code uint, msg string, err error) *ErrorCommon
NewAliPayMarket 支付宝店铺错误
func NewAliPayMaterial ¶
func NewAliPayMaterial(code uint, msg string, err error) *ErrorCommon
NewAliPayMaterial 支付宝物料错误
func NewAliPayTrade ¶
func NewAliPayTrade(code uint, msg string, err error) *ErrorCommon
NewAliPayTrade 支付宝支付错误
func NewCacheMem ¶
func NewCacheMem(code uint, msg string, err error) *ErrorCommon
NewCacheMem memcache缓存错误
func NewCacheRedis ¶
func NewCacheRedis(code uint, msg string, err error) *ErrorCommon
NewCacheRedis redis缓存错误
func NewConfigViper ¶
func NewConfigViper(code uint, msg string, err error) *ErrorCommon
NewConfigViper viper配置错误
func NewCurrencyAMJiSu ¶
func NewCurrencyAMJiSu(code uint, msg string, err error) *ErrorCommon
NewCurrencyAMJiSu 阿里云市场极速货币错误
func NewCurrencyAMYiYuan ¶
func NewCurrencyAMYiYuan(code uint, msg string, err error) *ErrorCommon
NewCurrencyAMYiYuan 阿里云市场易圆货币错误
func NewDbMonGo ¶
func NewDbMonGo(code uint, msg string, err error) *ErrorCommon
NewDbMonGo mongo数据库错误
func NewDbMysql ¶
func NewDbMysql(code uint, msg string, err error) *ErrorCommon
NewDbMysql mysql数据库错误
func NewDingTalkCorp ¶
func NewDingTalkCorp(code uint, msg string, err error) *ErrorCommon
NewDingTalkCorp 钉钉企业号错误
func NewDingTalkProvider ¶
func NewDingTalkProvider(code uint, msg string, err error) *ErrorCommon
NewDingTalkProvider 钉钉服务商错误
func NewIMTencent ¶
func NewIMTencent(code uint, msg string, err error) *ErrorCommon
NewIMTencent 腾讯即时通讯错误
func NewInnerJSON ¶
func NewInnerJSON(code uint, msg string, err error) *ErrorCommon
NewInnerJSON 内部json错误
func NewInnerServer ¶
func NewInnerServer(code uint, msg string, err error) *ErrorCommon
NewInnerServer 内部服务错误
func NewInnerValidator ¶
func NewInnerValidator(code uint, msg string, err error) *ErrorCommon
NewInnerValidator 内部校验器错误
func NewIotAliYun ¶
func NewIotAliYun(code uint, msg string, err error) *ErrorCommon
NewIotAliYun 阿里云物联网错误
func NewIotBaiDu ¶
func NewIotBaiDu(code uint, msg string, err error) *ErrorCommon
NewIotBaiDu 百度物联网错误
func NewIotTencent ¶
func NewIotTencent(code uint, msg string, err error) *ErrorCommon
NewIotTencent 腾讯物联网错误
func NewLogisticsAMAli ¶
func NewLogisticsAMAli(code uint, msg string, err error) *ErrorCommon
NewLogisticsAMAli 阿里云市场阿里物流错误
func NewLogisticsKd100 ¶
func NewLogisticsKd100(code uint, msg string, err error) *ErrorCommon
NewLogisticsKd100 快递100物流错误
func NewLogisticsKdBird ¶
func NewLogisticsKdBird(code uint, msg string, err error) *ErrorCommon
NewLogisticsKdBird 快递鸟物流错误
func NewLogisticsTaoBao ¶
func NewLogisticsTaoBao(code uint, msg string, err error) *ErrorCommon
NewLogisticsTaoBao 淘宝物流错误
func NewMQRabbit ¶
func NewMQRabbit(code uint, msg string, err error) *ErrorCommon
NewMQRabbit Rabbit消息队列错误
func NewMQRedis ¶
func NewMQRedis(code uint, msg string, err error) *ErrorCommon
NewMQRedis Redis消息队列错误
func NewMapBaiDu ¶
func NewMapBaiDu(code uint, msg string, err error) *ErrorCommon
NewMapBaiDu 百度地图错误
func NewMapGaoDe ¶
func NewMapGaoDe(code uint, msg string, err error) *ErrorCommon
NewMapGaoDe 高德地图错误
func NewMapTencent ¶
func NewMapTencent(code uint, msg string, err error) *ErrorCommon
NewMapTencent 腾讯地图错误
func NewPrintFeYin ¶
func NewPrintFeYin(code uint, msg string, err error) *ErrorCommon
NewPrintFeYin 飞印打印错误
func NewPushAliYun ¶
func NewPushAliYun(code uint, msg string, err error) *ErrorCommon
NewPushAliYun 阿里云消息推送错误
func NewPushBaiDu ¶
func NewPushBaiDu(code uint, msg string, err error) *ErrorCommon
NewPushBaiDu 百度消息推送错误
func NewPushJPush ¶
func NewPushJPush(code uint, msg string, err error) *ErrorCommon
NewPushJPush 极光消息推送错误
func NewPushXinGe ¶
func NewPushXinGe(code uint, msg string, err error) *ErrorCommon
NewPushXinGe 信鸽消息推送错误
func NewQCloudCos ¶
func NewQCloudCos(code uint, msg string, err error) *ErrorCommon
NewQCloudCos 腾讯云对象存储错误
func NewQiNiuKodo ¶
func NewQiNiuKodo(code uint, msg string, err error) *ErrorCommon
NewQiNiuKodo 七牛云对象存储错误
func NewSmsAliYun ¶
func NewSmsAliYun(code uint, msg string, err error) *ErrorCommon
NewSmsAliYun 阿里云短信错误
func NewSmsDaYu ¶
func NewSmsDaYu(code uint, msg string, err error) *ErrorCommon
NewSmsDaYu 阿里大鱼短信错误
func NewSmsYun253 ¶
func NewSmsYun253(code uint, msg string, err error) *ErrorCommon
NewSmsYun253 253云短信错误
func NewWxAccount ¶
func NewWxAccount(code uint, msg string, err error) *ErrorCommon
NewWxAccount 微信公众号错误
func NewWxOpenAccount ¶
func NewWxOpenAccount(code uint, msg string, err error) *ErrorCommon
NewWxOpenAccount 微信开放平台公众号错误
func NewWxOpenMini ¶
func NewWxOpenMini(code uint, msg string, err error) *ErrorCommon
NewWxOpenMini 微信开放平台小程序错误
func NewWxProvider ¶
func NewWxProvider(code uint, msg string, err error) *ErrorCommon
NewWxProvider 微信企业号服务商错误
type IErrorCommon ¶
IErrorCommon 错误公共接口