Error code standardization

This commit is contained in:
skiffer-git
2023-01-05 11:33:17 +08:00
parent 847860a0c7
commit 4147c68f6d
8 changed files with 208 additions and 237 deletions
+4
View File
@@ -85,6 +85,10 @@ func ToAPIErrWithErr(err error) ErrInfo {
return ErrDefaultOther
}
func ToAPIErrWithErrCode(errCode int32) ErrInfo {
}
func Error2CommResp(ctx context.Context, info ErrInfo, detailErrMsg string) *sdkws.CommonResp {
err := &sdkws.CommonResp{
ErrCode: info.ErrCode,