Bläddra i källkod

补缺少接口

baishaojie 1 år sedan
förälder
incheckning
1dfc297ca8
3 ändrade filer med 3 tillägg och 1 borttagningar
  1. BIN
      __debug_bin.exe
  2. 1 1
      http/handle/api/scheduled.go
  3. 2 0
      http/routers/app_api.go

BIN
__debug_bin.exe


+ 1 - 1
http/handle/api/scheduled.go

@@ -132,7 +132,7 @@ func CronScheduled(ctx context.Context) {
 
 	//
 	// //圣牧自动同步前天有进行中的任务
-	manualUdData(pastureinfo)
+	// manualUdData(pastureinfo)
 
 	//现代牧业sap同步
 	// xdmy := cron.New()

+ 2 - 0
http/routers/app_api.go

@@ -218,6 +218,8 @@ func AppAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) {
 		{
 			apiV3.POST("/GetDataByName", api.GetDataByName)
 			apiV3.POST("/PostDataByName", api.PostDataByName)
+			apiV3.POST("/plandata", api.GetPlanData)
+			apiV3.POST("/plandata/edit", api.PostPlanData)
 		}
 
 		apiV4 := s.Group("/customreport") // restful  接口 tablename 是 表名字