|
@@ -126,11 +126,12 @@ func (c *ContractApi) PostReturnCreate() {
|
|
returnData.CreateUser = account.Account
|
|
returnData.CreateUser = account.Account
|
|
|
|
|
|
err = c.ServiceContract.ReturnCreate(returnData, projectId, bidsectionId, contractsId, projectAccountId)
|
|
err = c.ServiceContract.ReturnCreate(returnData, projectId, bidsectionId, contractsId, projectAccountId)
|
|
|
|
+ contractData := c.ServiceContract.GetContract(contractsId)
|
|
if err != nil {
|
|
if err != nil {
|
|
c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)})
|
|
c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- c.Ctx.JSON(iris.Map{"code": 0, "msg": "新增成功"})
|
|
|
|
|
|
+ c.Ctx.JSON(iris.Map{"code": 0, "msg": "新增成功", "contract": contractData})
|
|
}
|
|
}
|
|
|
|
|
|
// @Summary 更新回款内容
|
|
// @Summary 更新回款内容
|