Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusSuccess = "Success" // 操作成功 StatusError = "Error" // 操作失败 )
成功与通用状态
Variables ¶
View Source
var StatusCodes = map[string]StatusMessage{
"Success": {
Code: 1,
Message: "操作成功",
},
"Error": {
Code: 0,
Message: "操作失败",
},
"SnBlank": {
Code: 0,
Message: "sn 不能为空",
},
"CodeInvalid": {
Code: 0,
Message: "Code无效的代码",
},
"AppIdInvalid": {
Code: 0,
Message: "无效的 AppId",
},
"DeviceInfoError": {
Code: 0,
Message: "设备暂未开通",
},
"OpenIdInvalid": {
Code: 0,
Message: "无效的 OpenId",
},
"UuiDInvalid": {
Code: 0,
Message: "无效的 UuId",
},
"SignNameInvalid": {
Code: 0,
Message: "无效的 SignName",
},
"SmsCodeInvalid": {
Code: 0,
Message: "无效的 SmsCode",
},
"PhoneMergeConflictInvalid": {
Code: 0,
Message: "合并手机号不能是当前手机号",
},
"ErrPendingData": {
Code: 0,
Message: "当前有正在处理的数据,暂时无法合并,请稍后再试",
},
"DataConflict": {
Code: 0,
Message: "系统存在冲突数据请仔细检查,或联系管理员",
},
"SmsTypeInvalid": {
Code: 0,
Message: "短信类型不正确",
},
"ImageCaptchaInvalid": {
Code: 0,
Message: "图形验证码不正确",
},
"UserTypeInvalid": {
Code: 0,
Message: "用户类型不正确",
},
"InsufficientBalance": {
Code: 0,
Message: "账户余额不足",
},
"SumError": {
Code: 0,
Message: "聚合计算失败",
},
"DeductionError": {
Code: 0,
Message: "余额变更失败",
},
"LogError": {
Code: 0,
Message: "日志写入失败",
},
"UpdateError": {
Code: 0,
Message: "更新失败",
},
"MerchantIDMissing": {
Code: 1001,
Message: "商户ID缺失",
},
"CompanyIDMissing": {
Code: 1002,
Message: "公司ID缺失",
},
"AppIDMissing": {
Code: 1003,
Message: "微信支付应用ID缺失",
},
"MchIDMissing": {
Code: 1004,
Message: "微信支付商户号缺失",
},
"APIKeyMissing": {
Code: 1005,
Message: "微信支付API密钥缺失",
},
"CertPathMissing": {
Code: 1006,
Message: "微信支付证书路径缺失",
},
"NotifyURLMissing": {
Code: 1007,
Message: "支付回调通知URL缺失",
},
"DescriptionMissing": {
Code: 1008,
Message: "支付参数描述缺失",
},
"StatusInvalid": {
Code: 1009,
Message: "状态值不正确(必须为1或0)",
},
}
StatusCodes 定义状态和提示信息
Functions ¶
This section is empty.
Types ¶
type StatusMessage ¶
StatusMessage 状态和提示信息的结构体
Click to show internal directories.
Click to hide internal directories.