callback start

This commit is contained in:
withchao
2023-02-14 19:28:57 +08:00
parent e83a070e81
commit e147dc5b1b
11 changed files with 142 additions and 136 deletions
+1 -5
View File
@@ -41,13 +41,9 @@ type CommonCallbackResp struct {
ActionCode int `json:"actionCode"`
ErrCode int32 `json:"errCode"`
ErrMsg string `json:"errMsg"`
//OperationID string `json:"operationID"`
}
func (c *CommonCallbackResp) Parse() error {
if c == nil {
return constant.ErrData.Wrap("callback common is nil")
}
func (c CommonCallbackResp) Parse() error {
if c.ActionCode != constant.NoError || c.ErrCode != constant.NoError {
newErr := constant.ErrCallback
newErr.ErrCode = c.ErrCode