Commit 5c8d0aa7 authored by Bess严根旺's avatar Bess严根旺

修改

parent bca5dc9f
package controllers
import (
"doc-service/common/log"
"doc-service/modes/db"
"doc-service/service"
"github.com/gin-contrib/sessions"
......@@ -84,15 +85,24 @@ func (con ApiController) GetTaskProject(c *gin.Context) {
req.ProjectName = c.Query("project_name")
req.TaskId = c.Query("task_id")
req.TaskType = c.Query("task_type")
//requestDefinition := c.Query("request_definition")
req.RequestDefinition = true
projectId := c.Query("project_id")
log.Info("项目id %+v", projectId)
if projectId != "" {
}
result, errs := service.NewConversion().GetTaskProject(req)
if errs != nil {
ret["errmsg"] = errs.Error()
ret["errcode"] = 100011
}
ret["result"] = result
//入库
res(c, http.StatusOK, "成功", ret)
return
}
......@@ -4,7 +4,6 @@ import (
"doc-service/common/log"
"encoding/json"
"errors"
"fmt"
openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
imm20200930 "github.com/alibabacloud-go/imm-20200930/v4/client"
openapiutil "github.com/alibabacloud-go/openapi-util/service"
......@@ -268,7 +267,6 @@ func (o *Conversion) GetTaskProject(args GetTaskRequest) (*imm20200930.GetTaskRe
if _err != nil {
return nil, _err
}
fmt.Println("获取任务返回参数", resp)
return resp, _err
}()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment