Merge remote-tracking branch 'origin/errcode' into errcode

This commit is contained in:
withchao
2023-01-12 17:37:33 +08:00
2 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func CommonResp2Err(resp *sdkws.CommonResp) error {
return nil
}
func Error2CommResp(ctx context.Context, info ErrInfo, detailErrMsg string) *sdkws.CommonResp {
func Error2CommResp(ctx context.Context, info *ErrInfo, detailErrMsg string) *sdkws.CommonResp {
err := &sdkws.CommonResp{
ErrCode: info.ErrCode,
ErrMsg: info.ErrMsg,