| | |
| | | FaceExtract_VirtualSdkId = "virtual-faceextract-sdk-pull"//结果输出的算法id |
| | | ) |
| | | |
| | | /* |
| | | // @Summary 查找所有任务,包含任务信息和对应的算法信息 |
| | | // @Description 查找所有任务 |
| | | // @Produce json |
| | |
| | | // @Success 200 {string} json "{"code":200, msg:"请求处理成功",data:"",success:true}" |
| | | // @Failure 500 {string} json "{"code":500, msg:"请求失败",data:"",success:false}" |
| | | // @Router /data/api-v/task/findAll [GET] |
| | | */ |
| | | func (tc TaskController) FindAll(c *gin.Context) { |
| | | // 显示所有任务: 获取信息 |
| | | var taskApi dbapi.TaskApi |
| | |
| | | } |
| | | } |
| | | |
| | | /* |
| | | // @Summary 添加任务 |
| | | // @Description 查找所有任务 |
| | | // @Accept json |
| | |
| | | // @Success 200 {string} json "{"code":200, msg:"请求处理成功",data:"",success:true}" |
| | | // @Failure 500 {string} json "{"code":500, msg:"请求失败",data:"",success:false}" |
| | | // @Router /data/api-v/task/addTask [POST] |
| | | */ |
| | | func (tc TaskController) AddTask(c *gin.Context) { |
| | | var task TaskVo |
| | | var taskApi dbapi.TaskApi |
| | |
| | | Sort int `json:"sort"` |
| | | } |
| | | |
| | | /* |
| | | // @Summary 给任务添加算法 |
| | | // @Description 任务添加算法 |
| | | // @Produce json |
| | |
| | | // @Success 200 {string} json "{"code":200, msg:"请求处理成功",data:"",success:true}" |
| | | // @Failure 500 {string} json "{"code":500, msg:"请求失败",data:"",success:false}" |
| | | // @Router /data/api-v/task/addTaskSdk [post] |
| | | */ |
| | | func (tc TaskController) AddTaskSdk(c *gin.Context) { |
| | | var addVo TaskSdkAdd |
| | | err := c.BindJSON(&addVo) |
| | |
| | | } |
| | | } |
| | | |
| | | /* |
| | | // @Summary 任务删除算法 |
| | | // @Description 根据taskid和sdkid删除 |
| | | // @Produce json |
| | |
| | | // @Success 200 {string} json "{"code":200, msg:"请求处理成功",data:"",success:true}" |
| | | // @Failure 500 {string} json "{"code":500, msg:"请求失败",data:"",success:false}" |
| | | // @Router /data/api-v/task/delTaskSdk [GET] |
| | | */ |
| | | func (tc TaskController) DeleteTaskSdk(c *gin.Context) { |
| | | var taskApi dbapi.TaskApi |
| | | taskId := c.Query("taskId") |
| | |
| | | } |
| | | } |
| | | |
| | | /* |
| | | // @Summary 更新任务名称 |
| | | // @Description 更新任务名称 |
| | | // @Produce json |
| | |
| | | // @Success 200 {string} json "{"code":200, msg:"",data:"",success:true}" |
| | | // @Failure 500 {string} json "{"code":500, msg:"",data:"",success:false}" |
| | | // @Router /data/api-v/task/updateTaskName [POST] |
| | | */ |
| | | func (tc TaskController) UpdateTaskName(c *gin.Context) { |
| | | taskId := c.PostForm("taskId") |
| | | taskName := c.PostForm("taskName") |
| | |
| | | Enable bool `json:"enable"` |
| | | } |
| | | |
| | | /* |
| | | // @Summary 更新任务状态 |
| | | // @Description (算法不变,只更新任务状态) |
| | | // @Produce json |
| | |
| | | // @Success 200 {string} json "{"code":200, msg:"请求处理成功",data:"",success:true}" |
| | | // @Failure 500 {string} json "{"code":500, msg:"请求失败",data:"",success:false}" |
| | | // @Router /data/api-v/task/updateTaskStatus [POST] |
| | | */ |
| | | func (tc TaskController) UpdateTaskStatus(c *gin.Context) { |
| | | var tsvo TaskStatusVo |
| | | err := c.BindJSON(&tsvo) |
| | |
| | | } |
| | | |
| | | |
| | | /* |
| | | // @Summary 删除任务 |
| | | // @Description 根据任务id删除任务 |
| | | // @Produce json |
| | |
| | | // @Success 200 {string} json "{"code":200, msg:"请求处理成功",data:"",success:true}" |
| | | // @Failure 500 {string} json "{"code":500, msg:"请求失败",data:"",success:false}" |
| | | // @Router /data/api-v/task/delete [GET] |
| | | */ |
| | | func (tc TaskController) DeleteTask(c *gin.Context) { |
| | | var taskApi dbapi.TaskApi |
| | | taskId := c.Query("taskId") |
| | |
| | | SdkArgValue string `json:"sdk_arg_value"` |
| | | } |
| | | |
| | | /* |
| | | // @Summary 保存算法规则 |
| | | // @Description 保存算法规则 |
| | | // @Accept json |
| | |
| | | // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" |
| | | // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" |
| | | // @Router /data/api-v/task/saveTaskSdkRule [post] |
| | | */ |
| | | func (tc TaskController) SaveTaskSdkRule(c *gin.Context) { |
| | | var rules TaskSdkRules |
| | | err := c.BindJSON(&rules) |
| | |
| | | } |
| | | } |
| | | |
| | | /* |
| | | // @Summary 删除算法规则 |
| | | // @Description 删除算法规则 |
| | | // @Produce json |
| | |
| | | // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" |
| | | // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" |
| | | // @Router /data/api-v/task/deleteTaskSdkRule [post] |
| | | */ |
| | | func (tc TaskController) DeleteTaskSdkRule(c *gin.Context) { |
| | | taskId := c.PostForm("taskId") |
| | | sdkId := c.PostForm("sdkId") |
| | |
| | | } |
| | | |
| | | |
| | | /* |
| | | // @Summary 查询算法规则 |
| | | // @Description 查询算法规则 |
| | | // @Produce json |
| | |
| | | // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" |
| | | // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" |
| | | // @Router /data/api-v/task/getRulesByTaskSdk [get] |
| | | */ |
| | | func (tc TaskController) GetRulesByTaskSdk(c *gin.Context) { |
| | | taskId := c.Query("taskId") |
| | | sdkId := c.Query("sdkId") |