mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #3115【小程序】增加短剧媒资管理相关接口支持
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodAuditDramaRequest implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("drama_id")
|
||||
private Integer dramaId;
|
||||
@SerializedName("name")
|
||||
private String name;
|
||||
@SerializedName("media_count")
|
||||
private Long mediaCount;
|
||||
@SerializedName("media_id_list")
|
||||
private List<Integer> mediaIdList;
|
||||
@SerializedName("producer")
|
||||
private String producer;
|
||||
@SerializedName("cover_material_id")
|
||||
private String coverMaterialId;
|
||||
@SerializedName("authorized_material_id")
|
||||
private String authorizedMaterialId;
|
||||
@SerializedName("registration_number")
|
||||
private String registrationNumber;
|
||||
@SerializedName("publish_license")
|
||||
private String publishLicense;
|
||||
@SerializedName("publish_license_material_id")
|
||||
private String publishLicenseMaterialId;
|
||||
@SerializedName("expedited")
|
||||
private Long expedited;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodAuditDramaResponse extends WxMaBaseResponse implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
@SerializedName("drama_id")
|
||||
private Integer dramaId;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodDeleteMediaRequest implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("media_id")
|
||||
private Integer mediaId;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
public class WxMaVodDramaInfo implements Serializable {
|
||||
private static final long serialVersionUID = -7663757440028175135L;
|
||||
|
||||
private String name;
|
||||
private String producer;
|
||||
private String playwright;
|
||||
|
||||
@SerializedName("drama_id")
|
||||
private Integer dramaId;
|
||||
@SerializedName("create_time")
|
||||
private Long createTime;
|
||||
@SerializedName("cover_url")
|
||||
private String coverUrl;
|
||||
@SerializedName("media_count")
|
||||
private Long mediaCount;
|
||||
@SerializedName("expedited")
|
||||
private Long expedited;
|
||||
@SerializedName("production_license")
|
||||
private String productionLicense;
|
||||
@SerializedName("description")
|
||||
private String description;
|
||||
|
||||
@SerializedName("audit_detail")
|
||||
private DramaAuditDetail auditDetail;
|
||||
@SerializedName("media_list")
|
||||
private List<DramaMediaInfo> mediaList;
|
||||
|
||||
@Data
|
||||
public static class DramaAuditDetail {
|
||||
|
||||
@SerializedName("status")
|
||||
private Integer status;
|
||||
@SerializedName("create_time")
|
||||
private Long createTime;
|
||||
@SerializedName("audit_time")
|
||||
private Long auditTime;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class DramaMediaInfo {
|
||||
|
||||
@SerializedName("media_id")
|
||||
private Integer mediaId;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodGetDramaRequest implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("drama_id")
|
||||
private Integer dramaId;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodGetDramaResponse extends WxMaBaseResponse implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
@SerializedName("drama_info")
|
||||
private WxMaVodDramaInfo dramaInfo;
|
||||
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodGetMediaLinkRequest implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("media_id")
|
||||
private Integer mediaId;
|
||||
@SerializedName("t")
|
||||
private Long t;
|
||||
|
||||
@SerializedName("expr")
|
||||
private Long expr;
|
||||
@SerializedName("rlimit")
|
||||
private Long rlimit;
|
||||
|
||||
@SerializedName("us")
|
||||
private String us;
|
||||
@SerializedName("whref")
|
||||
private String whRef;
|
||||
@SerializedName("bkref")
|
||||
private String bkRef;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodGetMediaLinkResponse extends WxMaBaseResponse implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("media_info")
|
||||
private WxMaVodMediaPlaybackInfo mediaInfo;
|
||||
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodGetMediaRequest implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("media_id")
|
||||
private Integer mediaId;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodGetMediaResponse extends WxMaBaseResponse implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("media_info")
|
||||
private WxMaVodMediaInfo mediaInfo;
|
||||
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodGetTaskRequest implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("task_id")
|
||||
private Integer taskId;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodGetTaskResponse extends WxMaBaseResponse implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
@SerializedName("task_info")
|
||||
private TaskInfo taskInfo;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class TaskInfo {
|
||||
|
||||
@SerializedName("task_type")
|
||||
private Integer taskType;
|
||||
@SerializedName("status")
|
||||
private Integer status;
|
||||
@SerializedName("errcode")
|
||||
private Integer errCode;
|
||||
@SerializedName("errmsg")
|
||||
private String errMsg;
|
||||
@SerializedName("create_time")
|
||||
private Long createTime;
|
||||
@SerializedName("finish_time")
|
||||
private Long finish_time;
|
||||
@SerializedName("media_id")
|
||||
private Integer mediaId;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodListDramaRequest implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
|
||||
@SerializedName("offset")
|
||||
private Integer offset;
|
||||
@SerializedName("limit")
|
||||
private Integer limit;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WxMaVodListMediaRequest implements Serializable {
|
||||
private static final long serialVersionUID = 7495157056049312108L;
|
||||
|
||||
@SerializedName("drama_id")
|
||||
private Integer dramaId;
|
||||
@SerializedName("media_name")
|
||||
private String mediaName;
|
||||
|
||||
@SerializedName("start_time")
|
||||
private Long startTime;
|
||||
@SerializedName("end_time")
|
||||
private Long endTime;
|
||||
|
||||
@SerializedName("offset")
|
||||
private Integer offset;
|
||||
@SerializedName("limit")
|
||||
private Integer limit;
|
||||
|
||||
public String toJson() {
|
||||
return WxMaGsonBuilder.create().toJson(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 小程序帐号的可选类目,其中 address / tag / title 是提交审核会用到的
|
||||
* <p>
|
||||
* media_id number 媒资文件id。
|
||||
* create_time number 上传时间,时间戳。
|
||||
* expire_time number 过期时间,时间戳。
|
||||
* drama_id number 所属剧目id。
|
||||
* file_size string 媒资文件大小,单位:字节。
|
||||
* duration number 播放时长,单位:秒。
|
||||
* name string 媒资文件名。
|
||||
* description string 描述。
|
||||
* cover_url string 封面图临时链接。
|
||||
* original_url string 原始视频临时链接。
|
||||
* mp4_url string mp4格式临时链接 。
|
||||
* hls_url string hls格式临时链接。
|
||||
* audit_detail MediaAuditDetail 审核信息。
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
public class WxMaVodMediaInfo implements Serializable {
|
||||
private static final long serialVersionUID = -7663757440028175135L;
|
||||
private String name;
|
||||
private String description;
|
||||
@SerializedName("media_id")
|
||||
private Integer mediaId;
|
||||
@SerializedName("drama_id")
|
||||
private Integer dramaId;
|
||||
@SerializedName("create_time")
|
||||
private Long createTime;
|
||||
@SerializedName("file_size")
|
||||
private String fileSize;
|
||||
@SerializedName("duration")
|
||||
private Long duration;
|
||||
@SerializedName("expire_time")
|
||||
private Long expireTime;
|
||||
@SerializedName("cover_url")
|
||||
private String coverUrl;
|
||||
@SerializedName("original_url")
|
||||
private String originalUrl;
|
||||
@SerializedName("mp4_url")
|
||||
private String mp4Url;
|
||||
@SerializedName("hls_url")
|
||||
private String hlsUrl;
|
||||
@SerializedName("audit_detail")
|
||||
private MediaAuditDetail auditDetail;
|
||||
|
||||
@Data
|
||||
public static class MediaAuditDetail {
|
||||
|
||||
@SerializedName("status")
|
||||
private Integer status;
|
||||
@SerializedName("create_time")
|
||||
private Long createTime;
|
||||
@SerializedName("audit_time")
|
||||
private Long auditTime;
|
||||
@SerializedName("reason")
|
||||
private String reason;
|
||||
@SerializedName("evidence_material_id_list")
|
||||
private List<String> evidenceMaterialIdList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package cn.binarywang.wx.miniapp.bean.vod;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
public class WxMaVodMediaPlaybackInfo implements Serializable {
|
||||
private static final long serialVersionUID = -7663757440028175135L;
|
||||
|
||||
private String name;
|
||||
private String description;
|
||||
@SerializedName("media_id")
|
||||
private Integer mediaId;
|
||||
@SerializedName("duration")
|
||||
private Long duration;
|
||||
|
||||
@SerializedName("cover_url")
|
||||
private String coverUrl;
|
||||
@SerializedName("mp4_url")
|
||||
private String mp4Url;
|
||||
@SerializedName("hls_url")
|
||||
private String hlsUrl;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user