WeExternalContactDto.java
1.53 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
package com.linkwechat.wecom.domain.dto;
import lombok.Builder;
import lombok.Data;
/**
* @description: 对外联系相关字段
* @author: HaoN
* @create: 2020-10-13 10:53
**/
@Data
public class WeExternalContactDto extends WeResultDto {
//系我二维码链接,仅在scene为2时返回
private String qr_code;
//新增联系方式的配置id
private String config_id;
@Data
public static class WeContactWay {
//系我二维码链接,仅在scene为2时返回
private String config_id;
// 联系方式类型,1-单人, 2-多人
private Integer type;
//场景,1-在小程序中联系,2-通过二维码联系
private Integer scene;
//外部客户添加时是否无需验证,默认为true
private Boolean skip_verify;
//使用该联系方式的用户userID列表,在type为1时为必填,且只能有一个
private String[] user;
//使用该联系方式的部门id列表,只在type为2时有效
private Long[] party;
//企业自定义的state参数,用于区分不同的添加渠道,在调用“获取外部联系人详情”时会返回该参数值,不超过30个字符
private String state;
//样式
private Integer style = 1;
public WeContactWay() {
}
public WeContactWay(Integer type, Integer scene, Boolean skip_verify) {
this.type = type;
this.scene = scene;
this.skip_verify = skip_verify;
}
}
}