mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #2755 【小程序】增加小程序云开发短信接口
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package cn.binarywang.wx.miniapp.bean.cloud;
|
||||
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 发送携带 URL Link 的短信结果
|
||||
*
|
||||
* @author liming1019
|
||||
* @date 2022-07-26
|
||||
*/
|
||||
@Data
|
||||
public class WxCloudSendSmsV2Result extends WxMaBaseResponse implements Serializable {
|
||||
private static final long serialVersionUID = 4273038291300329985L;
|
||||
|
||||
@SerializedName("send_status_list")
|
||||
private List<SendStatus> sendStatusList;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public static class SendStatus implements Serializable {
|
||||
private static final long serialVersionUID = 5765836923681051366L;
|
||||
|
||||
@SerializedName("serial_no")
|
||||
private String serialNo;
|
||||
|
||||
@SerializedName("phone_number")
|
||||
private String phoneNumber;
|
||||
|
||||
@SerializedName("code")
|
||||
private String code;
|
||||
|
||||
@SerializedName("message")
|
||||
private String message;
|
||||
|
||||
@SerializedName("iso_code")
|
||||
private String isoCode;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package cn.binarywang.wx.miniapp.bean.cloud.request;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 发送携带 URL Link 的短信请求
|
||||
*
|
||||
* @author liming1019
|
||||
* @date 2022-07-26
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
public class WxCloudSendSmsV2Request implements Serializable {
|
||||
private static final long serialVersionUID = 8917033507660980594L;
|
||||
|
||||
@SerializedName("env")
|
||||
private String env;
|
||||
|
||||
@SerializedName("url_link")
|
||||
private String urlLink;
|
||||
|
||||
@SerializedName("template_id")
|
||||
private String templateId;
|
||||
|
||||
@SerializedName("template_param_list")
|
||||
private List<String> templateParamList;
|
||||
|
||||
@SerializedName("phone_number_list")
|
||||
private List<String> phoneNumberList;
|
||||
|
||||
@SerializedName("use_short_name")
|
||||
private Boolean useShortName;
|
||||
|
||||
@SerializedName("resource_appid")
|
||||
private String resourceAppid;
|
||||
}
|
||||
Reference in New Issue
Block a user