增加设备模板列表
This commit is contained in:
@@ -67,6 +67,9 @@ func NewApplication(configPath string) (*Application, error) {
|
||||
// 初始化区域主控仓库
|
||||
areaControllerRepo := repository.NewGormAreaControllerRepository(storage.GetDB())
|
||||
|
||||
// 初始化设备模板仓库
|
||||
deviceTemplateRepo := repository.NewGormDeviceTemplateRepository(storage.GetDB())
|
||||
|
||||
// 初始化计划仓库
|
||||
planRepo := repository.NewGormPlanRepository(storage.GetDB())
|
||||
|
||||
@@ -130,6 +133,7 @@ func NewApplication(configPath string) (*Application, error) {
|
||||
userRepo,
|
||||
deviceRepo,
|
||||
areaControllerRepo,
|
||||
deviceTemplateRepo,
|
||||
planRepo,
|
||||
userActionLogRepo,
|
||||
tokenService,
|
||||
|
||||
Reference in New Issue
Block a user