public abstract class BaseWebhookRequestBody extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected GlobalInfo |
globalInfo |
protected Map<String,Object> |
map |
protected List<String> |
userIdList |
protected List<String> |
userMobileList |
protected WebhookProductEnum |
webhookProductEnum |
| 构造器和说明 |
|---|
BaseWebhookRequestBody() |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseWebhookRequestBody |
addContent(String tag,
Object obj) |
BaseWebhookRequestBody |
addContent(String tag,
String text) |
BaseWebhookRequestBody |
addGlobalInfo(GlobalInfo globalInfo) |
protected BaseWebhookRequestBody |
addUserIdList(List<String> userIdList)
添加用户id集合
|
protected BaseWebhookRequestBody |
addUserMobileList(List<String> userMobileList)
添加用户手机号集合
|
Map<String,Object> |
getMap() |
WebhookProductEnum |
getWebhookProductEnum() |
abstract void |
preToJsonSting()
对象转json字符串之前的操作
|
void |
setWebhookProductEnum(WebhookProductEnum webhookProductEnum) |
String |
toJsonSting() |
protected WebhookProductEnum webhookProductEnum
protected GlobalInfo globalInfo
public String toJsonSting()
protected BaseWebhookRequestBody addUserIdList(List<String> userIdList)
userIdList - 用户id集合protected BaseWebhookRequestBody addUserMobileList(List<String> userMobileList)
userMobileList - 用户手机号集合public abstract void preToJsonSting()
public BaseWebhookRequestBody addContent(String tag, String text)
public BaseWebhookRequestBody addContent(String tag, Object obj)
public void setWebhookProductEnum(WebhookProductEnum webhookProductEnum)
public WebhookProductEnum getWebhookProductEnum()
public BaseWebhookRequestBody addGlobalInfo(GlobalInfo globalInfo)
Copyright © 2021. All rights reserved.