forked from free-lancers/electricity_bill_calc_service
enhance(config):配置雪花ID生成算法增加主机编号配置。
This commit is contained in:
@@ -33,6 +33,7 @@ type ServiceSetting struct {
|
|||||||
MaxSessionLife time.Duration
|
MaxSessionLife time.Duration
|
||||||
ItemsPageSize int
|
ItemsPageSize int
|
||||||
CacheLifeTime time.Duration
|
CacheLifeTime time.Duration
|
||||||
|
HostSerial int64
|
||||||
}
|
}
|
||||||
|
|
||||||
// 定义全局变量
|
// 定义全局变量
|
||||||
|
@@ -20,3 +20,4 @@ Service:
|
|||||||
MaxSessionLife: 2h
|
MaxSessionLife: 2h
|
||||||
ItemsPageSize: 20
|
ItemsPageSize: 20
|
||||||
CacheLifeTime: 5m
|
CacheLifeTime: 5m
|
||||||
|
HostSerial: 5
|
||||||
|
Reference in New Issue
Block a user