Skip to content

Commit

Permalink
Merge pull request #494 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Matrix-X authored May 20, 2024
2 parents 37cb2f4 + ec83913 commit b279308
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/work/oa/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (comp *Client) CreateApproval(ctx context.Context, data *power.HashMap) (*r

// 批量获取审批单号
// https://developer.work.weixin.qq.com/document/path/91816
func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime int, nextCursor int, size int, filters []*object.HashMap) (*response.ResponseApprovalNoList, error) {
func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime int, nextCursor string, size int, filters []*object.HashMap) (*response.ResponseApprovalNoList, error) {

result := &response.ResponseApprovalNoList{}

Expand All @@ -204,11 +204,11 @@ func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime
}

options := &object.HashMap{
"starttime": fmt.Sprintf("%d", startTime),
"endtime": fmt.Sprintf("%d", endTime),
"cursor": fmt.Sprintf("%d", nextCursor),
"size": size,
"filters": filters,
"starttime": fmt.Sprintf("%d", startTime),
"endtime": fmt.Sprintf("%d", endTime),
"new_cursor": nextCursor,
"size": size,
"filters": filters,
}

_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/oa/getapprovalinfo", options, nil, nil, result)
Expand Down

0 comments on commit b279308

Please sign in to comment.