Browse Source

新增多个上传类型

csx 4 years ago
parent
commit
c0bdefdccc
2 changed files with 1073 additions and 1251 deletions
  1. 3 2
      main.go
  2. 1070 1249
      service/city/auto_create_week_schedules_service.go

+ 3 - 2
main.go View File

@@ -3,7 +3,8 @@ package main
3 3
 import (
4 4
 	_ "Data_Upload_Api/routers"
5 5
 	"Data_Upload_Api/service"
6
-	_"Data_Upload_Api/service/city"
6
+	"Data_Upload_Api/service/city"
7
+	_ "Data_Upload_Api/service/city"
7 8
 
8 9
 	"github.com/astaxie/beego"
9 10
 )
@@ -13,6 +14,6 @@ func init() {
13 14
 }
14 15
 
15 16
 func main() {
16
-	// city.AutoSZUploadData()
17
+	city.BeginAutoJob()
17 18
 	beego.Run()
18 19
 }

File diff suppressed because it is too large
+ 1070 - 1249
service/city/auto_create_week_schedules_service.go