Selaa lähdekoodia

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 vuotta sitten
vanhempi
commit
1fb486bd40
3 muutettua tiedostoa jossa 11 lisäystä ja 9 poistoa
  1. 2 2
      controllers/nm/nm_controller.go
  2. 7 7
      main.go
  3. 2 0
      routers/router.go

+ 2 - 2
controllers/nm/nm_controller.go Näytä tiedosto

@@ -1,4 +1,4 @@
1
-package js
1
+package nm
2 2
 
3 3
 import (
4 4
 	"encoding/json"
@@ -24,7 +24,7 @@ type NmController struct {
24 24
 	controllers.BaseAuthAPIController
25 25
 }
26 26
 
27
-func JSybRegistRouters() {
27
+func NmybRegistRouters() {
28 28
 	beego.Router("/nmyb/1101", &NmController{}, "get:Post1101")
29 29
 	beego.Router("/nmyb/2401", &NmController{}, "post:Post2401")
30 30
 	beego.Router("/nmyb/2402", &NmController{}, "post:Post2402")

+ 7 - 7
main.go Näytä tiedosto

@@ -5,7 +5,7 @@ import (
5 5
 	"fmt"
6 6
 	"gdyb/models"
7 7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9 9
 	"github.com/astaxie/beego"
10 10
 	"github.com/qiniu/api.v7/auth/qbox"
11 11
 	"github.com/qiniu/api.v7/storage"
@@ -15,12 +15,12 @@ import (
15 15
 )
16 16
 
17 17
 func init() {
18
-	//service.ConnectDB()
19
-	//org_id, _ := beego.AppConfig.Int64("org_id")
20
-	//
21
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
-	//CreateLog(miConfig)
23
-	//UploadLog(miConfig)
18
+	service.ConnectDB()
19
+	org_id, _ := beego.AppConfig.Int64("org_id")
20
+
21
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
+	CreateLog(miConfig)
23
+	UploadLog(miConfig)
24 24
 
25 25
 	//UploadSettleList(org_id)
26 26
 }

+ 2 - 0
routers/router.go Näytä tiedosto

@@ -3,6 +3,7 @@ package routers
3 3
 import (
4 4
 	"gdyb/controllers/hb"
5 5
 	"gdyb/controllers/js"
6
+	"gdyb/controllers/nm"
6 7
 	"gdyb/controllers/sg"
7 8
 	"gdyb/controllers/zh"
8 9
 
@@ -29,6 +30,7 @@ func init() {
29 30
 	//sz.SZHisManagerApiRegistRouters()
30 31
 	zh.ZHHisManagerApiRegistRouters()
31 32
 	js.JSybRegistRouters()
33
+	nm.NmybRegistRouters()
32 34
 	//coordinate.CoordinateRegistRouters()
33 35
 
34 36
 }