add qcxg7a2b

This commit is contained in:
2025-08-03 23:30:30 +08:00
parent f991ad94d3
commit bce55a3bb2
6 changed files with 75 additions and 23 deletions

View File

@@ -45,3 +45,9 @@ func GetErrorCode(err error) int {
}
return 1001 // 默认返回接口异常
}
// GetErrorMessage 获取错误对应的错误消息
func GetErrorMessage(err error) string {
// 直接返回预定义的错误消息
return err.Error()
}