From a7a91049535f150c0db7ea322d2a2a456601f9ea Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Tue, 13 Jun 2023 18:26:35 +0800 Subject: [PATCH] err --- myerr/code.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/myerr/code.go b/myerr/code.go index 49713da..dd65707 100755 --- a/myerr/code.go +++ b/myerr/code.go @@ -2,7 +2,6 @@ package myerr import ( "fmt" - "git.hilo.cn/hilo-common/myerr" "git.hilo.cn/hilo-common/mylogrus" "github.com/pkg/errors" "strconv" @@ -226,7 +225,3 @@ func WrapErr(err error) error { return errors.Wrap(err, "") } } - -func ToLocal(err *myerr.BusinessError) error { - return NewBusinessCode(err.GetCode(), err.GetMsg(), BusinessData{}) -} -- 2.22.0