WeMomentsClient.java
2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package com.linkwechat.wecom.client;
import com.dtflys.forest.annotation.*;
import com.linkwechat.wecom.domain.dto.WeResultDto;
import com.linkwechat.wecom.domain.dto.moments.*;
import com.linkwechat.wecom.interceptor.WeAccessTokenInterceptor;
import com.linkwechat.wecom.interceptor.WeAppAccessTokenInterceptor;
import com.linkwechat.wecom.retry.WeCommonRetryWhen;
/**
* 朋友圈
*/
@BaseRequest(baseURL = "${weComServerUrl}${weComePrefix}",interceptor = WeAccessTokenInterceptor.class)
@Retry(maxRetryCount = "3", maxRetryInterval = "1000", condition = WeCommonRetryWhen.class)
public interface WeMomentsClient {
/**
* 创建朋友圈
* @param momentsParamDto
* @return
*/
@PostRequest("/externalcontact/add_moment_task")
MomentsResultDto addMomentTask(@JSONBody MomentsParamDto momentsParamDto);
/**
* 获取任务创建结果
* @param jobid
* @return
*/
@GetRequest("/externalcontact/get_moment_task_result")
MomentsCreateResultDto getMomentTaskResult(@Query("jobid") String jobid);
/**
* 朋友圈详情数据获取
* @param momentsListDetailParamDto
* @return
*/
@PostRequest("/externalcontact/get_moment_list")
MomentsListDetailResultDto get_moment_list(@JSONBody MomentsListDetailParamDto momentsListDetailParamDto);
/**
* 朋友圈互动数据获取
* @param momentsInteracteParamDto
* @return
*/
@PostRequest("/externalcontact/get_moment_comments")
MomentsInteracteResultDto get_moment_comments(@JSONBody MomentsInteracteParamDto momentsInteracteParamDto);
/**
* 获取客户朋友圈企业发表的列表
* @param momentsParamDto
* @return
*/
@PostRequest("/externalcontact/get_moment_task")
MomentsResultDto get_moment_task(@JSONBody MomentsParamDto momentsParamDto);
/**
* 获取客户朋友圈发表时选择的可见范围
* @param momentsParamDto
* @return
*/
@PostRequest("/externalcontact/get_moment_customer_list")
MomentsResultDto get_moment_customer_list(@JSONBody MomentsParamDto momentsParamDto);
}