完善代码

This commit is contained in:
zchh
2021-01-18 19:56:07 +08:00
parent d47a95df8d
commit 17d6795921
3 changed files with 10 additions and 5 deletions

View File

@@ -1,11 +1,14 @@
package codes
// A Code is an unsigned 32-bit error code as defined in the beego spec.
type Code uint32
const (
// SessionSessionStartError means func SessionStart error in session module.
SessionSessionStartError Code = 5001001
)
// CodeToStr is a map about Code and Code's message
var CodeToStr = map[Code]string{
SessionSessionStartError : `"SESSION_MODULE_SESSION_START_ERROR"`,
}
}