enhance(config):配置雪花ID生成算法增加主机编号配置。

This commit is contained in:
徐涛 2023-05-31 09:40:57 +08:00
parent 1ccd19d78b
commit 83b0cd89f4
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ type ServiceSetting struct {
MaxSessionLife time.Duration
ItemsPageSize int
CacheLifeTime time.Duration
HostSerial int64
}
// 定义全局变量

View File

@ -19,4 +19,5 @@ Redis:
Service:
MaxSessionLife: 2h
ItemsPageSize: 20
CacheLifeTime: 5m
CacheLifeTime: 5m
HostSerial: 5