Skip to content

Commit f14b33a

Browse files
committed
🎨 #1599 企业微信获取打卡数据接口返回类增加打卡设备id字段
1 parent b52e676 commit f14b33a

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpCheckinData.java

+45
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,84 @@
1616
public class WxCpCheckinData implements Serializable {
1717
private static final long serialVersionUID = 1915820330847799605L;
1818

19+
/**
20+
* userid 用户id
21+
*/
1922
@SerializedName("userid")
2023
private String userId;
2124

25+
/**
26+
* groupname 打卡规则名称
27+
*/
2228
@SerializedName("groupname")
2329
private String groupName;
2430

31+
/**
32+
* checkin_type 打卡类型。字符串,目前有:上班打卡,下班打卡,外出打卡
33+
*/
2534
@SerializedName("checkin_type")
2635
private String checkinType;
2736

37+
/**
38+
* exception_type 异常类型,字符串,包括:时间异常,地点异常,未打卡,wifi异常,非常用设备。如果有多个异常,以分号间隔
39+
*/
2840
@SerializedName("exception_type")
2941
private String exceptionType;
3042

43+
/**
44+
* checkin_time 打卡时间。Unix时间戳
45+
*/
3146
@SerializedName("checkin_time")
3247
private Long checkinTime;
3348

49+
/**
50+
* location_title 打卡地点title
51+
*/
3452
@SerializedName("location_title")
3553
private String locationTitle;
3654

55+
/**
56+
* location_detail 打卡地点详情
57+
*/
3758
@SerializedName("location_detail")
3859
private String locationDetail;
3960

61+
/**
62+
* wifiname 打卡wifi名称
63+
*/
4064
@SerializedName("wifiname")
4165
private String wifiName;
4266

67+
/**
68+
* wifimac 打卡的MAC地址/bssid
69+
*/
4370
@SerializedName("wifimac")
4471
private String wifiMac;
4572

73+
/**
74+
* notes 打卡备注
75+
*/
4676
private String notes;
4777

78+
/**
79+
* mediaids 打卡的附件media_id,可使用media/get获取附件
80+
*/
4881
@SerializedName("mediaids")
4982
private List<String> mediaIds;
5083

84+
/**
85+
* lat 位置打卡地点纬度,是实际纬度的1000000倍,与腾讯地图一致采用GCJ-02坐标系统标准
86+
*/
5187
private Integer lat;
5288

89+
/**
90+
* lng 位置打卡地点经度,是实际经度的1000000倍,与腾讯地图一致采用GCJ-02坐标系统标准
91+
*/
5392
private Integer lng;
93+
94+
/**
95+
* deviceid 打卡设备id
96+
*/
97+
@SerializedName("deviceid")
98+
private String deviceId;
5499
}

weixin-java-pay/src/test/java/com/github/binarywang/wxpay/bean/result/WxPaySendRedpackResultTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ public void loadFailureResult() {
6868
Assert.assertEquals("FAIL", wxMpRedpackResult.getReturnCode());
6969
Assert.assertEquals("FAIL", wxMpRedpackResult.getResultCode());
7070
Assert.assertEquals("onqOjjmM1tad-3ROpncN-yUfa6uI", wxMpRedpackResult.getReOpenid());
71-
Assert.assertEquals(Integer.valueOf(1), wxMpRedpackResult.getTotalAmount());
71+
Assert.assertEquals(1, wxMpRedpackResult.getTotalAmount().intValue());
7272
}
7373
}

0 commit comments

Comments
 (0)