类 BaseWebhookRequestBody
- java.lang.Object
-
- cn.woodwhales.common.webhook.model.request.BaseWebhookRequestBody
-
public abstract class BaseWebhookRequestBody extends Object
- 作者:
- woodwhales on 2021-07-19 14:52
-
-
字段概要
字段 修饰符和类型 字段 说明 protected GlobalInfoglobalInfoprotected Map<String,Object>mapprotected List<String>userIdListprotected List<String>userMobileListprotected WebhookProductEnumwebhookProductEnum
-
构造器概要
构造器 构造器 说明 BaseWebhookRequestBody()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 BaseWebhookRequestBodyaddContent(String tag, Object obj)BaseWebhookRequestBodyaddContent(String tag, String text)BaseWebhookRequestBodyaddGlobalInfo(GlobalInfo globalInfo)BaseWebhookRequestBodyaddSign(long timestamp, String sign)BaseWebhookRequestBodyaddUserIdList(List<String> userIdList)添加用户id集合BaseWebhookRequestBodyaddUserMobileList(List<String> userMobileList)添加用户手机号集合Map<String,Object>getMap()abstract StringgetUrlAndSignContent(ExecuteParam executeParam)对内容签名并返回 urlWebhookProductEnumgetWebhookProductEnum()abstract voidpreToJsonSting()对象转json字符串之前的操作voidsetWebhookProductEnum(WebhookProductEnum webhookProductEnum)StringtoJsonSting()
-
-
-
字段详细资料
-
webhookProductEnum
@Expose(serialize=false) protected WebhookProductEnum webhookProductEnum
-
globalInfo
@Expose(serialize=false) protected GlobalInfo globalInfo
-
-
方法详细资料
-
toJsonSting
public String toJsonSting()
-
getUrlAndSignContent
public abstract String getUrlAndSignContent(ExecuteParam executeParam)
对内容签名并返回 url- 参数:
executeParam- 请求对象- 返回:
- 签名的通知地址
-
addUserIdList
public BaseWebhookRequestBody addUserIdList(List<String> userIdList)
添加用户id集合- 参数:
userIdList- 用户id集合- 返回:
- BaseWebhookRequestBody 对象
-
addUserMobileList
public BaseWebhookRequestBody addUserMobileList(List<String> userMobileList)
添加用户手机号集合- 参数:
userMobileList- 用户手机号集合- 返回:
- BaseWebhookRequestBody 对象
-
preToJsonSting
public abstract void preToJsonSting()
对象转json字符串之前的操作
-
addContent
public BaseWebhookRequestBody addContent(String tag, String text)
-
addContent
public BaseWebhookRequestBody addContent(String tag, Object obj)
-
addSign
public BaseWebhookRequestBody addSign(long timestamp, String sign)
-
setWebhookProductEnum
public void setWebhookProductEnum(WebhookProductEnum webhookProductEnum)
-
getWebhookProductEnum
public WebhookProductEnum getWebhookProductEnum()
-
addGlobalInfo
public BaseWebhookRequestBody addGlobalInfo(GlobalInfo globalInfo)
-
-