Files
novel/internal/consts/consts.go
2024-01-15 17:30:07 +08:00

24 lines
689 B
Go
Raw Permalink 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 consts
const (
PageSize = 10
PhoneVerifyType1 = 1 // 1-注册/登录
PhoneVerifyType2 = 2 // 2-找回密码
ContextKey = "ContextKey" // 上下文变量存储键名,前后端系统共享
// for 登录相关
TokenType = "Bearer"
CacheModeRedis = 2
GtokenWriterPrefix = "Writer:" // gtoken登录小说作者后台前缀区分
BackendServerName = "小说系统"
MultiLogin = true
FrontendMultiLogin = true
GTokenExpireIn = 10 * 24 * 60 * 60
// for writer
CtxWriterId = "CtxAdminId"
CtxWriterName = "CtxAdminName"
CtxWriterIsAdmin = "CtxAdminIsAdmin"
CtxWriterRoleIds = "CtxAdminRoleIds"
)