package services import ( "PaymentCenter/app/constants/errorcode" "PaymentCenter/app/utils" ) func handErr(err error) int { if err != nil { utils.Log(nil, "sys err", err.Error()) return errorcode.SystemError } else { return errorcode.Success } }