package com.zy.asrs.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* APK打包任务实体类
|
*/
|
@TableName("apk_build_task")
|
public class ApkBuildTask implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键ID
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 远程打包任务ID
|
*/
|
@TableField("task_id")
|
private String taskId;
|
|
/**
|
* 打包类型(release/debug)
|
*/
|
@TableField("build_type")
|
private String buildType;
|
|
/**
|
* 仓库别名
|
*/
|
@TableField("repo_alias")
|
private String repoAlias;
|
|
/**
|
* 分支名称
|
*/
|
private String branch;
|
|
/**
|
* 状态:0-等待中,1-打包中,2-成功,3-失败
|
*/
|
private Short status;
|
|
/**
|
* 本地APK文件路径
|
*/
|
@TableField("apk_path")
|
private String apkPath;
|
|
/**
|
* 远程APK文件路径
|
*/
|
@TableField("artifact_path")
|
private String artifactPath;
|
|
/**
|
* 项目名称
|
*/
|
@TableField("project_name")
|
private String projectName;
|
|
/**
|
* 错误信息
|
*/
|
private String error;
|
|
/**
|
* 元数据JSON
|
*/
|
private String meta;
|
|
/**
|
* 队列大小
|
*/
|
@TableField("queue_size")
|
private Integer queueSize;
|
|
/**
|
* 创建时间
|
*/
|
@TableField("created_at")
|
private Date createdAt;
|
|
/**
|
* 开始时间
|
*/
|
@TableField("started_at")
|
private Date startedAt;
|
|
/**
|
* 完成时间
|
*/
|
@TableField("finished_at")
|
private Date finishedAt;
|
|
public ApkBuildTask() {
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getTaskId() {
|
return taskId;
|
}
|
|
public void setTaskId(String taskId) {
|
this.taskId = taskId;
|
}
|
|
public String getBuildType() {
|
return buildType;
|
}
|
|
public void setBuildType(String buildType) {
|
this.buildType = buildType;
|
}
|
|
public String getRepoAlias() {
|
return repoAlias;
|
}
|
|
public void setRepoAlias(String repoAlias) {
|
this.repoAlias = repoAlias;
|
}
|
|
public String getBranch() {
|
return branch;
|
}
|
|
public void setBranch(String branch) {
|
this.branch = branch;
|
}
|
|
public Short getStatus() {
|
return status;
|
}
|
|
public void setStatus(Short status) {
|
this.status = status;
|
}
|
|
/**
|
* 获取状态显示文本
|
*/
|
public String getStatus$() {
|
if (null == this.status) {
|
return null;
|
}
|
switch (this.status) {
|
case 0:
|
return "等待中";
|
case 1:
|
return "打包中";
|
case 2:
|
return "成功";
|
case 3:
|
return "失败";
|
default:
|
return String.valueOf(this.status);
|
}
|
}
|
|
public String getApkPath() {
|
return apkPath;
|
}
|
|
public void setApkPath(String apkPath) {
|
this.apkPath = apkPath;
|
}
|
|
public String getArtifactPath() {
|
return artifactPath;
|
}
|
|
public void setArtifactPath(String artifactPath) {
|
this.artifactPath = artifactPath;
|
}
|
|
public String getProjectName() {
|
return projectName;
|
}
|
|
public void setProjectName(String projectName) {
|
this.projectName = projectName;
|
}
|
|
public String getError() {
|
return error;
|
}
|
|
public void setError(String error) {
|
this.error = error;
|
}
|
|
public String getMeta() {
|
return meta;
|
}
|
|
public void setMeta(String meta) {
|
this.meta = meta;
|
}
|
|
public Integer getQueueSize() {
|
return queueSize;
|
}
|
|
public void setQueueSize(Integer queueSize) {
|
this.queueSize = queueSize;
|
}
|
|
public Date getCreatedAt() {
|
return createdAt;
|
}
|
|
public void setCreatedAt(Date createdAt) {
|
this.createdAt = createdAt;
|
}
|
|
public Date getStartedAt() {
|
return startedAt;
|
}
|
|
public void setStartedAt(Date startedAt) {
|
this.startedAt = startedAt;
|
}
|
|
public Date getFinishedAt() {
|
return finishedAt;
|
}
|
|
public void setFinishedAt(Date finishedAt) {
|
this.finishedAt = finishedAt;
|
}
|
}
|