mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
refactor: 引入tailwind css & 后端部分非公共包位置调整
This commit is contained in:
34
server/internal/pkg/consts/consts.go
Normal file
34
server/internal/pkg/consts/consts.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package consts
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
AdminId = 1
|
||||
|
||||
MachineConnExpireTime = 60 * time.Minute
|
||||
DbConnExpireTime = 120 * time.Minute
|
||||
RedisConnExpireTime = 30 * time.Minute
|
||||
MongoConnExpireTime = 30 * time.Minute
|
||||
|
||||
/**** 开发测试使用 ****/
|
||||
// MachineConnExpireTime = 4 * time.Minute
|
||||
// DbConnExpireTime = 2 * time.Minute
|
||||
// RedisConnExpireTime = 2 * time.Minute
|
||||
// MongoConnExpireTime = 2 * time.Minute
|
||||
|
||||
ResourceTypeMachine int8 = 1
|
||||
ResourceTypeDbInstance int8 = 2
|
||||
ResourceTypeRedis int8 = 3
|
||||
ResourceTypeMongo int8 = 4
|
||||
|
||||
// imsg起始编号
|
||||
ImsgNumSys = 10000
|
||||
ImsgNumAuth = 20000
|
||||
ImsgNumTag = 30000
|
||||
ImsgNumFlow = 40000
|
||||
ImsgNumMachine = 50000
|
||||
ImsgNumDb = 60000
|
||||
ImsgNumRedis = 70000
|
||||
ImsgNumMongo = 80000
|
||||
ImsgNumMsg = 90000
|
||||
)
|
||||
Reference in New Issue
Block a user