4 Star 18 Fork 6

samoye / GoWeChat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
WxPayErr.go 517 Bytes
一键复制 编辑 原始数据 按行查看 历史
samoye 提交于 2023-01-29 20:00 . 2021-01-29
package entity
import (
"fmt"
)
type WxPayErr struct {
Code string `json:"code"`
Message string `json:"message"`
Detail WxPayErrDetail `json:"detail"`
}
type WxPayErrDetail struct {
Field string `json:"field"`
Value interface{} `json:"value"`
Issue string `json:"issue"`
Location string `json:"location"`
}
func (w WxPayErr) Error() string {
return fmt.Sprintf("code:%s message:%s field:%s value:%s issue:%s location:%s",w.Code,w.Message,w.Detail.Field,w.Detail.Value,w.Detail.Issue,w.Detail.Location)
}
Go
1
https://gitee.com/yizhisamoye/GoWeChat.git
git@gitee.com:yizhisamoye/GoWeChat.git
yizhisamoye
GoWeChat
GoWeChat
ed8de99d2f46

搜索帮助