feat:完善项目

This commit is contained in:
henry
2021-11-04 16:16:57 +08:00
parent 42c6fb01bb
commit c41adc075a
10 changed files with 74 additions and 28 deletions

View File

@ -4,9 +4,12 @@ import (
"ArmedPolice/app/event"
"ArmedPolice/app/service"
"ArmedPolice/config"
"ArmedPolice/lib"
)
func Init() {
// 载入数据配置
lib.LoadConfig("./json/area.json", &config.SettingAreaInfo)
// RedisHash存储/移除监听
service.Subscribe(config.EventForRedisHashProduce, event.NewRedisHashProduce())
service.Subscribe(config.EventForRedisHashDestroy, event.NewRedisHashDestroy())