first
This commit is contained in:
14
common/globalkey/constantKey.go
Normal file
14
common/globalkey/constantKey.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package globalkey
|
||||
|
||||
/**
|
||||
global constant key
|
||||
*/
|
||||
|
||||
//软删除
|
||||
var DelStateNo int64 = 0 //未删除
|
||||
var DelStateYes int64 = 1 //已删除
|
||||
|
||||
//时间格式化模版
|
||||
var DateTimeFormatTplStandardDateTime = "Y-m-d H:i:s"
|
||||
var DateTimeFormatTplStandardDate = "Y-m-d"
|
||||
var DateTimeFormatTplStandardTime = "H:i:s"
|
||||
9
common/globalkey/redisCacheKey.go
Normal file
9
common/globalkey/redisCacheKey.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package globalkey
|
||||
|
||||
/**
|
||||
redis key except "model cache key" in here,
|
||||
but "model cache key" in model
|
||||
*/
|
||||
|
||||
// CacheUserTokenKey /** 用户登陆的token
|
||||
const CacheUserTokenKey = "user_token:%d"
|
||||
Reference in New Issue
Block a user