序列化表格
|
软件包 com.github.sd4324530.fastweixin.api.config |
tokenRefreshing
AtomicBoolean tokenRefreshing
- 这里定义token正在刷新的标识,想要达到的目标是当有一个请求来获取token,发现token已经过期(我这里的过期逻辑是比官方提供的早100秒),然后开始刷新token
在刷新的过程里,如果又继续来获取token,会先把旧的token返回,直到刷新结束,之后再来的请求,将获取到新的token
利用AtomicBoolean实现原理:
当请求来的时候,检查token是否已经过期(7100秒)以及标识是否已经是true(表示已经在刷新了,还没刷新完),过期则将此标识设为true,并开始刷新token
在刷新结束前再次进来的请求,由于标识一直是true,而会直接拿到旧的token,由于我们的过期逻辑比官方的早100秒,所以旧的还可以继续用
无论刷新token正在结束还是出现异常,都在最后将标识改回false,表示刷新工作已经结束
jsRefreshing
AtomicBoolean jsRefreshing
appid
String appid
secret
String secret
accessToken
String accessToken
jsApiTicket
String jsApiTicket
enableJsApi
boolean enableJsApi
jsTokenStartTime
long jsTokenStartTime
weixinTokenStartTime
long weixinTokenStartTime
noticeTime
Date noticeTime
appid
String appid
type
ChangeType type
value
String value
|
软件包 com.github.sd4324530.fastweixin.api.entity |
thumbMediaId
String thumbMediaId
author
String author
title
String title
contentSourceUrl
String contentSourceUrl
content
String content
digest
String digest
showConverPic
Integer showConverPic
msgid
String msgid
title
String title
intPageReadUser
Integer intPageReadUser
intPageReadCount
Integer intPageReadCount
oriPageReadUser
Integer oriPageReadUser
oriPageReadCount
Integer oriPageReadCount
shareUser
Integer shareUser
share_count
Integer share_count
addToFavUser
Integer addToFavUser
addToFavCount
Integer addToFavCount
msgid
String msgid
title
String title
details
List<E> details
statDate
Date statDate
targetUser
Integer targetUser
intPageReadUser
Integer intPageReadUser
intPageReadCount
Integer intPageReadCount
oriPageReadUser
Integer oriPageReadUser
oriPageReadCount
Integer oriPageReadCount
shareUser
Integer shareUser
shareCount
Integer shareCount
addToFavUser
Integer addToFavUser
addToFavCount
Integer addToFavCount
refDate
Date refDate
accountName
String accountName
nickName
String nickName
password
String password
id
String id
headImg
String headImg
id
Integer id
name
String name
count
Integer count
industryId1
String industryId1
- 行业1
industryId2
String industryId2
- 行业2
callbackCount
Integer callbackCount
failCount
Integer failCount
totalTimeCost
Integer totalTimeCost
maxTimeCost
Integer maxTimeCost
refHour
Integer refHour
tagId
String tagId
groupId
String groupId
- 已过时。
sex
String sex
country
String country
province
String province
city
String city
clientPlatformType
String clientPlatformType
button
List<E> button
- 一级菜单列表,最多3个
matchrule
Matchrule matchrule
- 菜单匹配规则
- 从以下版本开始:
- 1.3.7
menuId
String menuId
- 菜单ID,查询时会返回,删除个性化菜单时会用到
- 从以下版本开始:
- 1.3.7
type
MenuType type
- 菜单类别
name
String name
- 菜单上显示的文字
key
String key
- 菜单key,当MenuType值为CLICK时用于区别菜单
url
String url
- 菜单跳转的URL,当MenuType值为VIEW时用
mediaId
String mediaId
- 菜单显示的永久素材的MaterialID,当MenuType值为media_id和view_limited时必需
subButton
List<E> subButton
- 二级菜单列表,每个一级菜单下最多5个
id
Integer id
name
String name
count
Integer count
touser
String touser
templateId
String templateId
url
String url
topcolor
String topcolor
- 已过时。
data
Map<K,V> data
value
String value
- 值
color
String color
- 颜色
msgType
Integer msgType
msgUser
Integer msgUser
msgCount
Integer msgCount
countInterval
Integer countInterval
msgUser
Integer msgUser
refHour
Integer refHour
msgType
Integer msgType
msgUser
Integer msgUser
msgCount
Integer msgCount
cumulateUser
Integer cumulateUser
openid
String openid
lang
String lang
intPageReadUser
Integer intPageReadUser
intPageReadCount
Integer intPageReadCount
oriPageReadUser
Integer oriPageReadUser
oriPageReadCount
Integer oriPageReadCount
shareUser
Integer shareUser
shareCount
Integer shareCount
addToFavUser
Integer addToFavUser
addToFavCount
Integer addToFavCount
refHour
Integer refHour
intPageReadUser
Integer intPageReadUser
intPageReadCount
Integer intPageReadCount
oriPageReadUser
Integer oriPageReadUser
oriPageReadCount
Integer oriPageReadCount
shareUser
Integer shareUser
shareCount
Integer shareCount
addToFavUser
Integer addToFavUser
addToFavCount
Integer addToFavCount
shareScene
Integer shareScene
shareCount
Integer shareCount
shareUser
Integer shareUser
refHour
Integer refHour
shareScene
Integer shareScene
shareCount
Integer shareCount
shareUser
Integer shareUser
userSource
Integer userSource
- 用户的渠道,数值代表的含义如下:
0代表其他 30代表扫二维码 17代表名片分享 35代表搜号码(即微信添加朋友页的搜索) 39代表查询微信公众帐号 43代表图文页右上角菜单
newUser
Integer newUser
- 新增的用户数量
cancelUser
Integer cancelUser
- 取消关注的用户数量,new_user减去cancel_user即为净增用户数量
|
软件包 com.github.sd4324530.fastweixin.api.request |
|
软件包 com.github.sd4324530.fastweixin.api.response |
templateId
String templateId
- 模版id
errcode
String errcode
errmsg
String errmsg
group
Group group
tag
Tag tag
news
List<E> news
title
String title
description
String description
downUrl
String downUrl
content
byte[] content
fileName
String fileName
fileName
String fileName
content
byte[] content
tags
List<E> tags
list
List<E> list
list
List<E> list
customAccountList
List<E> customAccountList
groups
List<E> groups
list
List<E> list
list
List<E> list
ticket
String ticket
expiresIn
Integer expiresIn
totalCount
int totalCount
itemCount
int itemCount
items
List<E> items
video
int video
voice
int voice
image
int image
news
int news
menu
Menu menu
msgId
String msgId
noncestr
String noncestr
timestamp
long timestamp
url
String url
signature
String signature
accessToken
String accessToken
expiresIn
Integer expiresIn
list
List<E> list
list
List<E> list
list
List<E> list
list
List<E> list
list
List<E> list
list
List<E> list
list
List<E> list
list
List<E> list
user_info_list
List<E> user_info_list
subscribe
Integer subscribe
openid
String openid
nickname
String nickname
sex
Integer sex
language
String language
city
String city
province
String province
country
String country
headimgurl
String headimgurl
subscribeTime
Long subscribeTime
unionid
String unionid
remark
String remark
groupid
Integer groupid
list
List<E> list
list
List<E> list
list
List<E> list
list
List<E> list
total
long total
count
int count
data
GetUsersResponse.Openid data
nextOpenid
String nextOpenid
openid
String[] openid
list
List<E> list
refreshToken
String refreshToken
openid
String openid
scope
String scope
unionid
String unionid
templateId
String templateId
- 模板ID
title
String title
- 模板标题
primaryIndustry
String primaryIndustry
- 模板所属行业的一级行业
deputyIndustry
String deputyIndustry
- 模板所属行业的二级行业
content
String content
- 模板内容
example
String example
- 模板示例
remark
String remark
- 模板备注
ticket
String ticket
expireSeconds
Integer expireSeconds
url
String url
msgid
String msgid
- 消息id
url
String url
mediaId
String mediaId
type
String type
mediaId
String mediaId
createdAt
Date createdAt
|
软件包 com.github.sd4324530.fastweixin.company.api.config |
CACHE_TIME
Integer CACHE_TIME
tokenRefreshing
AtomicBoolean tokenRefreshing
jsRefreshing
AtomicBoolean jsRefreshing
corpid
String corpid
corpsecret
String corpsecret
accessToken
String accessToken
jsApiTicket
String jsApiTicket
enableJsApi
boolean enableJsApi
jsTokenStartTime
long jsTokenStartTime
weixinTokenStartTime
long weixinTokenStartTime
noticeTime
Date noticeTime
corpID
String corpID
type
ChangeType type
value
String value
|
软件包 com.github.sd4324530.fastweixin.company.api.entity |
agentId
String agentId
name
String name
squareLogoUrl
String squareLogoUrl
roundLogoUrl
String roundLogoUrl
description
String description
allowUserInfos
Map<K,V> allowUserInfos
allowPartys
Map<K,V> allowPartys
allowTags
Map<K,V> allowTags
close
Integer close
redirectDomain
String redirectDomain
reportLocationFlag
Integer reportLocationFlag
isReportUser
Integer isReportUser
isReportEnter
Integer isReportEnter
id
Integer id
name
String name
parentId
Integer parentId
order
Integer order
button
List<E> button
type
QYMenuType type
name
String name
key
String key
url
String url
subButton
List<E> subButton
tagname
String tagname
tagid
Integer tagid
userId
String userId
name
String name
department
Integer[] department
position
String position
mobile
String mobile
gender
String gender
email
String email
weixinid
String weixinid
avatarMdiaid
String avatarMdiaid
avatar
String avatar
status
Integer status
extattr
Map<K,V> extattr
|
软件包 com.github.sd4324530.fastweixin.company.api.response |
invalidlist
String invalidlist
invalidparty
List<E> invalidparty
id
Integer id
tagid
Integer tagid
invalidlist
String invalidlist
invalidparty
List<E> invalidparty
fileName
String fileName
content
byte[] content
departments
List<E> departments
userid
String userid
openid
String openid
deviceid
String deviceid
agentId
String agentId
name
String name
squareLogoUrl
String squareLogoUrl
roundLogoUrl
String roundLogoUrl
description
String description
allowUserInfos
Map<K,V> allowUserInfos
allowPartys
Map<K,V> allowPartys
allowTags
Map<K,V> allowTags
close
Integer close
redirectDomain
String redirectDomain
reportLocationFlag
Integer reportLocationFlag
isReportUser
Integer isReportUser
isReportEnter
Integer isReportEnter
agentList
List<E> agentList
menu
QYMenu menu
invalidUser
String invalidUser
invalidParty
String invalidParty
invalidTag
String invalidTag
userList
List<E> userList
userId
String userId
name
String name
departments
Integer[] departments
position
String position
mobile
String mobile
gender
String gender
email
String email
weixinid
String weixinid
avatar
String avatar
status
Integer status
extattr
Map<K,V> extattr
type
Integer type
users
List<E> users
partys
List<E> partys
tags
List<E> tags
type
String type
mediaId
String mediaId
createTime
String createTime
|
软件包 com.github.sd4324530.fastweixin.company.message |
toUser
String toUser
toParty
String toParty
toTag
String toTag
msgType
String msgType
agentId
String agentId
safe
String safe
file
QYFileMsg.File file
image
QYImageMsg.Image image
news
Map<K,V> news
news
Map<K,V> news
text
QYTextMsg.Text text
video
QYVideoMsg.Video video
voice
QYVoiceMsg.Voice voice
|
软件包 com.github.sd4324530.fastweixin.company.message.resp |
toUserName
String toUserName
fromUserName
String fromUserName
createTime
int createTime
msgType
String msgType
mediaId
String mediaId
maxSize
int maxSize
articles
List<E> articles
contentBuilder
StringBuilder contentBuilder
mediaId
String mediaId
title
String title
description
String description
mediaId
String mediaId
|
软件包 com.github.sd4324530.fastweixin.exception |
|
软件包 com.github.sd4324530.fastweixin.message |
toUserName
String toUserName
fromUserName
String fromUserName
createTime
long createTime
msgType
String msgType
kfAccount
String kfAccount
mediaId
String mediaId
mediaId
String mediaId
title
String title
description
String description
musicUrl
String musicUrl
hqMusicUrl
String hqMusicUrl
thumbMediaId
String thumbMediaId
maxSize
int maxSize
articles
List<E> articles
contentBuilder
StringBuilder contentBuilder
mediaId
String mediaId
title
String title
description
String description
mediaId
String mediaId
|
软件包 com.github.sd4324530.fastweixin.message.aes |
code
int code
|
软件包 com.github.sd4324530.fastweixin.servlet |
support
QYWeixinSupport support
support
WeixinSupport support
Copyright © 2017. All rights reserved.