memos/api/e/codes.go

15 lines
269 B
Go
Raw Normal View History

2021-12-09 22:02:57 +08:00
package e
2021-12-08 23:43:14 +08:00
var Codes = map[string]int{
"NOT_AUTH": 20001,
"REQUEST_BODY_ERROR": 40001,
"UPLOAD_FILE_ERROR": 40002,
2021-12-16 20:43:12 +08:00
"OVERLOAD_MAX_SIZE": 40003,
2021-12-15 10:55:17 +08:00
"NOT_FOUND": 40400,
"USER_NOT_FOUND": 40401,
"RESOURCE_NOT_FOUND": 40402,
2021-12-08 23:43:14 +08:00
"DATABASE_ERROR": 50001,
}