正在显示
1 个修改的文件
包含
10 行增加
和
10 行删除
| @@ -387,26 +387,26 @@ func (gateway HttplibAlliedCreationCooperation) CooperationApplicationsOneclickA | @@ -387,26 +387,26 @@ func (gateway HttplibAlliedCreationCooperation) CooperationApplicationsOneclickA | ||
| 387 | url := gateway.baseUrL + "/cooperation-applications/oneclick-approval" | 387 | url := gateway.baseUrL + "/cooperation-applications/oneclick-approval" |
| 388 | method := "POST" | 388 | method := "POST" |
| 389 | req := gateway.CreateRequest(url, method) | 389 | req := gateway.CreateRequest(url, method) |
| 390 | - log.Logger.Debug("向业务模块请求数据:共创申请批量审核。", map[string]interface{}{ | 390 | + log.Logger.Debug("向业务模块请求数据:共创申请一键审核。", map[string]interface{}{ |
| 391 | "api": method + ":" + url, | 391 | "api": method + ":" + url, |
| 392 | "param": param, | 392 | "param": param, |
| 393 | }) | 393 | }) |
| 394 | req, err := req.JSONBody(param) | 394 | req, err := req.JSONBody(param) |
| 395 | if err != nil { | 395 | if err != nil { |
| 396 | - return nil, fmt.Errorf("请求共创申请批量审核失败:%w", err) | 396 | + return nil, fmt.Errorf("请求共创申请一键审核失败:%w", err) |
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | byteResult, err := req.Bytes() | 399 | byteResult, err := req.Bytes() |
| 400 | if err != nil { | 400 | if err != nil { |
| 401 | - return nil, fmt.Errorf("获取共创申请批量审核失败:%w", err) | 401 | + return nil, fmt.Errorf("获取共创申请一键审核失败:%w", err) |
| 402 | } | 402 | } |
| 403 | - log.Logger.Debug("获取业务模块请求数据:共创申请批量审核。", map[string]interface{}{ | 403 | + log.Logger.Debug("获取业务模块请求数据:共创申请一键审核。", map[string]interface{}{ |
| 404 | "result": string(byteResult), | 404 | "result": string(byteResult), |
| 405 | }) | 405 | }) |
| 406 | var result service_gateway.GatewayResponse | 406 | var result service_gateway.GatewayResponse |
| 407 | err = json.Unmarshal(byteResult, &result) | 407 | err = json.Unmarshal(byteResult, &result) |
| 408 | if err != nil { | 408 | if err != nil { |
| 409 | - return nil, fmt.Errorf("解析共创申请批量审核:%w", err) | 409 | + return nil, fmt.Errorf("解析共创申请一键审核:%w", err) |
| 410 | } | 410 | } |
| 411 | var data DataCooperationApplicationOneclickApproval | 411 | var data DataCooperationApplicationOneclickApproval |
| 412 | err = gateway.GetResponseData(result, &data) | 412 | err = gateway.GetResponseData(result, &data) |
| @@ -418,26 +418,26 @@ func (gateway HttplibAlliedCreationCooperation) ApplyForCooperation(param ReqApp | @@ -418,26 +418,26 @@ func (gateway HttplibAlliedCreationCooperation) ApplyForCooperation(param ReqApp | ||
| 418 | url := gateway.baseUrL + "/cooperation-applications/" + strconv.Itoa(param.CooperationProjectId) + "/apply-for-cooperation" | 418 | url := gateway.baseUrL + "/cooperation-applications/" + strconv.Itoa(param.CooperationProjectId) + "/apply-for-cooperation" |
| 419 | method := "POST" | 419 | method := "POST" |
| 420 | req := gateway.CreateRequest(url, method) | 420 | req := gateway.CreateRequest(url, method) |
| 421 | - log.Logger.Debug("向业务模块请求数据:创建共创申请。", map[string]interface{}{ | 421 | + log.Logger.Debug("向业务模块请求数据:申请共创项目。", map[string]interface{}{ |
| 422 | "api": method + ":" + url, | 422 | "api": method + ":" + url, |
| 423 | "param": param, | 423 | "param": param, |
| 424 | }) | 424 | }) |
| 425 | req, err := req.JSONBody(param) | 425 | req, err := req.JSONBody(param) |
| 426 | if err != nil { | 426 | if err != nil { |
| 427 | - return nil, fmt.Errorf("请求创建共创申请失败:%w", err) | 427 | + return nil, fmt.Errorf("请求申请共创项目失败:%w", err) |
| 428 | } | 428 | } |
| 429 | 429 | ||
| 430 | byteResult, err := req.Bytes() | 430 | byteResult, err := req.Bytes() |
| 431 | if err != nil { | 431 | if err != nil { |
| 432 | - return nil, fmt.Errorf("获取创建共创申请失败:%w", err) | 432 | + return nil, fmt.Errorf("获取申请共创项目失败:%w", err) |
| 433 | } | 433 | } |
| 434 | - log.Logger.Debug("获取业务模块请求数据:创建共创申请。", map[string]interface{}{ | 434 | + log.Logger.Debug("获取业务模块请求数据:申请共创项目。", map[string]interface{}{ |
| 435 | "result": string(byteResult), | 435 | "result": string(byteResult), |
| 436 | }) | 436 | }) |
| 437 | var result service_gateway.GatewayResponse | 437 | var result service_gateway.GatewayResponse |
| 438 | err = json.Unmarshal(byteResult, &result) | 438 | err = json.Unmarshal(byteResult, &result) |
| 439 | if err != nil { | 439 | if err != nil { |
| 440 | - return nil, fmt.Errorf("解析创建共创申请:%w", err) | 440 | + return nil, fmt.Errorf("解析申请共创项目:%w", err) |
| 441 | } | 441 | } |
| 442 | var data DataApplyForCooperation | 442 | var data DataApplyForCooperation |
| 443 | err = gateway.GetResponseData(result, &data) | 443 | err = gateway.GetResponseData(result, &data) |
-
请 注册 或 登录 后发表评论