| 程序包 | 说明 |
|---|---|
| cn.woodwhales.common.webhook.event | |
| cn.woodwhales.common.webhook.executor | |
| cn.woodwhales.common.webhook.model.request |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseWebhookRequestBody |
WebhookEvent.getBaseWebhookRequestBody() |
| 构造器和说明 |
|---|
WebhookEvent(Object source,
Throwable throwable,
WebhookProductEnum webhookProductEnum,
String title,
java.util.function.Consumer<BaseWebhookRequestBody> consumer)
创建 WebhookEvent
|
WebhookEvent(Object source,
Throwable throwable,
WebhookProductEnum webhookProductEnum,
String title,
java.util.function.Consumer<BaseWebhookRequestBody> consumer,
List<String> userMobileList) |
WebhookEvent(Object source,
Throwable throwable,
WebhookProductEnum webhookProductEnum,
String title,
java.util.function.Consumer<BaseWebhookRequestBody> consumer,
List<String> userIdList,
List<String> userMobileList) |
WebhookEvent(Object source,
Throwable throwable,
WebhookProductEnum webhookProductEnum,
String title,
List<String> userIdList,
java.util.function.Consumer<BaseWebhookRequestBody> consumer) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BaseWebhookExecutor<RequestBody extends BaseWebhookRequestBody,Response>
请求执行器
|
class |
DingTalkWebhookExecutor<RequestBody extends BaseWebhookRequestBody>
钉钉webhook请求执行器
|
class |
FeiShuWebhookExecutor<RequestBody extends BaseWebhookRequestBody>
飞书webhook请求执行器
|
class |
WeComWebhookExecutor<RequestBody extends BaseWebhookRequestBody> |
| 限定符和类型 | 方法和说明 |
|---|---|
static <RequestBody extends BaseWebhookRequestBody> |
WeComWebhookExecutor.newInstance() |
static <RequestBody extends BaseWebhookRequestBody> |
FeiShuWebhookExecutor.newInstance() |
static <RequestBody extends BaseWebhookRequestBody> |
DingTalkWebhookExecutor.newInstance() |
static <RequestBody extends BaseWebhookRequestBody> |
WebhookExecutorFactory.newInstance(WebhookProductEnum webhookProductEnum) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
WebhookExecutorFactory.execute(String url,
BaseWebhookRequestBody requestBody)
请求执行
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
WebhookExecutorFactory.execute(WebhookProductEnum webhookProductEnum,
String url,
String title,
java.util.function.Consumer<BaseWebhookRequestBody> consumer)
请求执行
|
static void |
WebhookExecutorFactory.execute(WebhookProductEnum webhookProductEnum,
String url,
String title,
java.util.function.Consumer<BaseWebhookRequestBody> consumer,
List<String> userIdList,
List<String> userMobileList) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DingTalkRequestBody |
class |
FeiShuRequestBody |
class |
WeComRequestBody |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseWebhookRequestBody |
BaseWebhookRequestBody.addContent(String tag,
Object obj) |
BaseWebhookRequestBody |
BaseWebhookRequestBody.addContent(String tag,
String text) |
BaseWebhookRequestBody |
BaseWebhookRequestBody.addGlobalInfo(GlobalInfo globalInfo) |
protected BaseWebhookRequestBody |
BaseWebhookRequestBody.addUserIdList(List<String> userIdList)
添加用户id集合
|
protected BaseWebhookRequestBody |
BaseWebhookRequestBody.addUserMobileList(List<String> userMobileList)
添加用户手机号集合
|
static BaseWebhookRequestBody |
WebhookRequestBodyFactory.newInstance(WebhookProductEnum webhookProductEnum,
String title) |
static BaseWebhookRequestBody |
WebhookRequestBodyFactory.newInstance(WebhookProductEnum webhookProductEnum,
String title,
List<String> userIdList,
List<String> userMobileList) |
Copyright © 2021. All rights reserved.