Skip to content

Commit

Permalink
✨ Feat(签署流程): 归档和下载
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsir committed Jul 8, 2020
1 parent 6d2e3a8 commit 330a854
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/SignFlow/SignFlow.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,36 @@ public function getExecuteUrl($flowId, $accountId, $orgId = null, $urlType = 0,

return $this->parseJSON('get', [$url, $params]);
}

/**
* 签署流程归档.
*
* @param string $flowId 流程id
*
* @return Collection|null
*
* @throws HttpException
*/
public function archiveSign($flowId)
{
$url = sprintf('/v1/signflows/%s/archive', $flowId);

return $this->parseJSON('put', [$url]);
}

/**
* 流程文档下载.
*
* @param string $flowId 流程id
*
* @return Collection|null
*
* @throws HttpException
*/
public function downloadDocument($flowId)
{
$url = sprintf('/v1/signflows/%s/documents', $flowId);

return $this->parseJSON('get', [$url]);
}
}

0 comments on commit 330a854

Please sign in to comment.