Files
tyapi-server/internal/domains/api/services/processors/errors.go
2026-06-29 11:25:32 +08:00

22 lines
553 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package processors
import "errors"
// 处理器相关错误类型
var (
ErrDatasource = errors.New("数据源异常")
ErrSystem = errors.New("系统异常")
ErrInvalidParam = errors.New("参数校验不正确")
ErrNotFound = errors.New("查询为空")
ErrContactBusiness = errors.New("请联系商务咨询")
)
// SuccessNoBillError 携带成功响应但不扣费(如活体检测 result=2
type SuccessNoBillError struct {
Response []byte
}
func (e *SuccessNoBillError) Error() string {
return "成功不扣费"
}