Error code standardization

This commit is contained in:
skiffer-git
2023-01-12 17:31:02 +08:00
parent 56d4064b90
commit fb1e10f32c
2 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -78,7 +78,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,