2023-07-31 10:15:02 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
type ErrorCode int
|
|
|
|
|
|
|
|
// 1xxx表示各种逻辑错误
|
|
|
|
// 2xxx表示各种数据错误
|
|
|
|
// 3xxx表示各种参数错误
|
|
|
|
const (
|
|
|
|
LogicError = 1000
|
|
|
|
DataNotExist = 2000
|
|
|
|
DataAlreadyExist = 2001
|
|
|
|
// DataOperationError 数据操作错误(增删改查操作出了意料之外的错误都算)
|
|
|
|
DataOperationError = 2002
|
|
|
|
ArgumentParseError = 3000
|
2023-08-30 14:26:48 +08:00
|
|
|
|
|
|
|
NoAuthOperationError = 4001
|
2023-08-30 18:05:11 +08:00
|
|
|
|
|
|
|
QueryDBError = 5000
|
2023-07-31 10:15:02 +08:00
|
|
|
)
|