16 lines
243 B
Go
16 lines
243 B
Go
|
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
|
||
|
}
|
||
|
}
|