@@ -24,28 +24,72 @@ public interface WxCpConfigStorage {
2424 /**
2525 * 读取企业微信 API Url.
2626 * 支持私有化企业微信服务器.
27+ *
28+ * @param path the path
29+ * @return the api url
2730 */
2831 String getApiUrl (String path );
2932
33+ /**
34+ * Gets access token.
35+ *
36+ * @return the access token
37+ */
3038 String getAccessToken ();
3139
40+ /**
41+ * Gets access token lock.
42+ *
43+ * @return the access token lock
44+ */
3245 Lock getAccessTokenLock ();
3346
47+ /**
48+ * Is access token expired boolean.
49+ *
50+ * @return the boolean
51+ */
3452 boolean isAccessTokenExpired ();
3553
3654 /**
3755 * 强制将access token过期掉.
3856 */
3957 void expireAccessToken ();
4058
59+ /**
60+ * Update access token.
61+ *
62+ * @param accessToken the access token
63+ */
4164 void updateAccessToken (WxAccessToken accessToken );
4265
66+ /**
67+ * Update access token.
68+ *
69+ * @param accessToken the access token
70+ * @param expiresIn the expires in
71+ */
4372 void updateAccessToken (String accessToken , int expiresIn );
4473
74+ /**
75+ * Gets jsapi ticket.
76+ *
77+ * @return the jsapi ticket
78+ */
4579 String getJsapiTicket ();
4680
81+ /**
82+ * Gets jsapi ticket lock.
83+ *
84+ * @return the jsapi ticket lock
85+ */
4786 Lock getJsapiTicketLock ();
4887
88+ /**
89+ * Is jsapi ticket expired boolean.
90+ *
91+ * @return the boolean
92+ */
4993 boolean isJsapiTicketExpired ();
5094
5195 /**
@@ -55,13 +99,31 @@ public interface WxCpConfigStorage {
5599
56100 /**
57101 * 应该是线程安全的.
102+ *
103+ * @param jsapiTicket the jsapi ticket
104+ * @param expiresInSeconds the expires in seconds
58105 */
59106 void updateJsapiTicket (String jsapiTicket , int expiresInSeconds );
60107
108+ /**
109+ * Gets agent jsapi ticket.
110+ *
111+ * @return the agent jsapi ticket
112+ */
61113 String getAgentJsapiTicket ();
62114
115+ /**
116+ * Gets agent jsapi ticket lock.
117+ *
118+ * @return the agent jsapi ticket lock
119+ */
63120 Lock getAgentJsapiTicketLock ();
64121
122+ /**
123+ * Is agent jsapi ticket expired boolean.
124+ *
125+ * @return the boolean
126+ */
65127 boolean isAgentJsapiTicketExpired ();
66128
67129 /**
@@ -71,51 +133,114 @@ public interface WxCpConfigStorage {
71133
72134 /**
73135 * 应该是线程安全的.
136+ *
137+ * @param jsapiTicket the jsapi ticket
138+ * @param expiresInSeconds the expires in seconds
74139 */
75140 void updateAgentJsapiTicket (String jsapiTicket , int expiresInSeconds );
76141
142+ /**
143+ * Gets corp id.
144+ *
145+ * @return the corp id
146+ */
77147 String getCorpId ();
78148
149+ /**
150+ * Gets corp secret.
151+ *
152+ * @return the corp secret
153+ */
79154 String getCorpSecret ();
80155
156+ /**
157+ * Gets agent id.
158+ *
159+ * @return the agent id
160+ */
81161 Integer getAgentId ();
82162
163+ /**
164+ * Gets token.
165+ *
166+ * @return the token
167+ */
83168 String getToken ();
84169
170+ /**
171+ * Gets aes key.
172+ *
173+ * @return the aes key
174+ */
85175 String getAesKey ();
86176
177+ /**
178+ * Gets expires time.
179+ *
180+ * @return the expires time
181+ */
87182 long getExpiresTime ();
88183
184+ /**
185+ * Gets oauth 2 redirect uri.
186+ *
187+ * @return the oauth 2 redirect uri
188+ */
89189 String getOauth2redirectUri ();
90190
191+ /**
192+ * Gets http proxy host.
193+ *
194+ * @return the http proxy host
195+ */
91196 String getHttpProxyHost ();
92197
198+ /**
199+ * Gets http proxy port.
200+ *
201+ * @return the http proxy port
202+ */
93203 int getHttpProxyPort ();
94204
205+ /**
206+ * Gets http proxy username.
207+ *
208+ * @return the http proxy username
209+ */
95210 String getHttpProxyUsername ();
96211
212+ /**
213+ * Gets http proxy password.
214+ *
215+ * @return the http proxy password
216+ */
97217 String getHttpProxyPassword ();
98218
219+ /**
220+ * Gets tmp dir file.
221+ *
222+ * @return the tmp dir file
223+ */
99224 File getTmpDirFile ();
100225
101226 /**
102227 * http client builder.
103228 *
104- * @return ApacheHttpClientBuilder
229+ * @return ApacheHttpClientBuilder apache http client builder
105230 */
106231 ApacheHttpClientBuilder getApacheHttpClientBuilder ();
107232
108233 /**
109234 * 是否自动刷新token
110235 *
111- * @return .
236+ * @return . boolean
112237 */
113238 boolean autoRefreshToken ();
114239
115240 /**
116241 * 获取群机器人webhook的key
117242 *
118- * @return key
243+ * @return key webhook key
119244 */
120245 String getWebhookKey ();
121246}
0 commit comments