Pārlūkot izejas kodu

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

csx 2 gadus atpakaļ
vecāks
revīzija
1fb486bd40
3 mainītis faili ar 11 papildinājumiem un 9 dzēšanām
  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 Parādīt failu

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

+ 7 - 7
main.go Parādīt failu

5
 	"fmt"
5
 	"fmt"
6
 	"gdyb/models"
6
 	"gdyb/models"
7
 	_ "gdyb/routers"
7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9
 	"github.com/astaxie/beego"
9
 	"github.com/astaxie/beego"
10
 	"github.com/qiniu/api.v7/auth/qbox"
10
 	"github.com/qiniu/api.v7/auth/qbox"
11
 	"github.com/qiniu/api.v7/storage"
11
 	"github.com/qiniu/api.v7/storage"
15
 )
15
 )
16
 
16
 
17
 func init() {
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
 	//UploadSettleList(org_id)
25
 	//UploadSettleList(org_id)
26
 }
26
 }

+ 2 - 0
routers/router.go Parādīt failu

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