xuzhiheng 4 years ago
parent
commit
da790d5147
2 changed files with 3 additions and 0 deletions
  1. 2 0
      src/main.go
  2. 1 0
      src/web/templates/private/customer_list.html

+ 2 - 0
src/main.go

@@ -6,6 +6,7 @@ import (
 	"front"
 	"history"
 	"log"
+	"push"
 	qu "qfw/util"
 	"qfw/util/mail"
 	"service"
@@ -41,6 +42,7 @@ func init() {
 	xweb.AddAction(&client.Client{})
 	xweb.AddAction(&client.OwnTag{})
 	xweb.AddAction(&client.CustomerRule{})
+	xweb.AddAction(&push.Push{})
 	xweb.RootApp().AppConfig.SessionTimeout = 1 * time.Hour
 	xweb.RootApp().Logger.SetOutputLevel(1)
 	go history.SaveMgo()

+ 1 - 0
src/web/templates/private/customer_list.html

@@ -7,6 +7,7 @@
     <section class="content-header">
         <h1>
             <small><a href="/service/customer/create" class="btn btn-primary opr">新建客户</a></small>
+            <small><a href="/push/index" class="btn btn-info opr">数据推送</a></small>
         </h1>
         <ol class="breadcrumb">
             <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>