@@ -195,7 +195,7 @@ func (comp *Client) CreateApproval(ctx context.Context, data *power.HashMap) (*r
195
195
196
196
// 批量获取审批单号
197
197
// https://developer.work.weixin.qq.com/document/path/91816
198
- func (comp * Client ) GetApprovalInfo (ctx context.Context , startTime int , endTime int , nextCursor int , size int , filters []* object.HashMap ) (* response.ResponseApprovalNoList , error ) {
198
+ func (comp * Client ) GetApprovalInfo (ctx context.Context , startTime int , endTime int , nextCursor string , size int , filters []* object.HashMap ) (* response.ResponseApprovalNoList , error ) {
199
199
200
200
result := & response.ResponseApprovalNoList {}
201
201
@@ -204,11 +204,11 @@ func (comp *Client) GetApprovalInfo(ctx context.Context, startTime int, endTime
204
204
}
205
205
206
206
options := & object.HashMap {
207
- "starttime" : fmt .Sprintf ("%d" , startTime ),
208
- "endtime" : fmt .Sprintf ("%d" , endTime ),
209
- "cursor " : fmt . Sprintf ( "%d" , nextCursor ) ,
210
- "size" : size ,
211
- "filters" : filters ,
207
+ "starttime" : fmt .Sprintf ("%d" , startTime ),
208
+ "endtime" : fmt .Sprintf ("%d" , endTime ),
209
+ "new_cursor " : nextCursor ,
210
+ "size" : size ,
211
+ "filters" : filters ,
212
212
}
213
213
214
214
_ , err := comp .BaseClient .HttpPostJson (ctx , "cgi-bin/oa/getapprovalinfo" , options , nil , nil , result )
0 commit comments