XinYeYouKu/app/services/common.go

16 lines
243 B
Go
Raw Normal View History

2024-06-11 18:47:02 +08:00
package services
import (
"qteam/app/constants/errorcode"
"qteam/app/utils"
)
func handErr(err error) int {
if err != nil {
utils.Log(nil, "sys err", err.Error())
return errorcode.SystemError
} else {
return errorcode.Success
}
}