Browse Source

果断

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
0c7674885b
2 changed files with 7 additions and 5 deletions
  1. +5
    -3
      modules/aisafety/resty.go
  2. +2
    -2
      routers/routes/routes.go

+ 5
- 3
modules/aisafety/resty.go View File

@@ -39,9 +39,11 @@ type ReturnMsg struct {
Times int64 `json:"times"`
}
type ReturnData struct {
No string `json:"no"`
Code int `json:"code"`
Status int `json:"status"`
ID int `json:"id"`
No string `json:"no"`
StandardJson string `json:"standardJson"`
Code int `json:"code"`
Status int `json:"status"`
}

const (


+ 2
- 2
routers/routes/routes.go View File

@@ -1232,9 +1232,9 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("", reqRepoCloudBrainWriter, repo.GetAiSafetyTask)
m.Post("/stop", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.StopAiSafetyTask)
m.Post("/del", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.DelAiSafetyTask)
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.AiSafetyCreateForGet)
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.AiSafetyCreateForPost)
})
m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.AiSafetyCreateForGet)
m.Post("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.AiSafetyCreateForPost)
}, context.RepoRef())

m.Group("/debugjob", func() {


Loading…
Cancel
Save