You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

247 lines
5.7 KiB

3 years ago
package com.fr.plugin.entitys;
import com.fr.plugin.beans.YTOutputBean;
import com.fr.schedule.base.entity.AbstractScheduleEntity;
import com.fr.schedule.base.entity.output.BaseOutputActionEntity;
import com.fr.stable.db.entity.TableAssociation;
import com.fr.third.javax.persistence.Column;
import com.fr.third.javax.persistence.Entity;
import com.fr.third.javax.persistence.Table;
@Entity
@Table(
name = "fine_yt_output"
)
@TableAssociation(
associated = true
)
public class YtOutputMyEntity extends AbstractScheduleEntity {
private static final String COLUMN_TERMINAL = "terminal";
private static final String COLUMN_AGENTID = "agentId";
private static final String COLUMN_CLIENTID = "clientId";
private static final String COLUMN_SUBJECT = "subject";
private static final String COLUMN_CONTENT = "content";
private static final String COLUMN_LINK_OPEN_TYPE = "linkOpenType";
private static final String COLUMN_CUSTOMIZE_LINK = "customizeLink";
private static final String COLUMN_TYPE = "type";
private static final String COLUMN_MEDIA_ID = "mediaId";
@Column(
name = "terminal"
)
private int terminal = 128;// 般应该使用 2 4 8 16 32 64 128 这样的表示其实就是 000001 000010 0000100 00001000类似这个二进制
@Column(
name = "agentId"
)
private String agentId = null;
@Column(
name = "clientId"
)
private String clientId = null;
@Column(
name = "subject",
length = 65536
)
private String subject;
@Column(
name = "actionName",
nullable = false
)
private String actionName = "com.fr.plugin.beans.YTOutputBean";
@Column(
name = "goUrl",
length = 1022
)
private String goUrl = "";
@Column(
name = "content",
length = 65536
)
private String content;
@Column(
name = "linkOpenType"
)
private int linkOpenType = -1;
@Column(
name = "customizeLink",
length = 65536
)
private String customizeLink;
@Column(
name = "resultURL",
length = 1000
)
private String resultURL = null;
@Column(
name = "outputId"
)
private String outputId = null;
@Column(
name = "type"
)
private int type;
@Column(
name = "runType"
)
private int runType;
@Column(
name = "sendType"
)
private int sendType;
@Column(
name = "mediaId"
)
private String mediaId;
@Column(
name = "fromUserId"
)
private String fromUserId;
public YtOutputMyEntity() {
}
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
public String getGoUrl() {
return goUrl;
}
public void setGoUrl(String goUrl) {
this.goUrl = goUrl;
}
public YTOutputBean createBean() {
YTOutputBean var1 = new YTOutputBean();
var1.setId(this.getId());
var1.setAgentId(this.getAgentId());
var1.setTerminal(this.getTerminal());
var1.setSubject(this.getSubject());
var1.setContent(this.getContent());
var1.setGoUrl(this.getGoUrl());
var1.setLinkOpenType(this.getLinkOpenType());
var1.setCustomizeLink(this.getCustomizeLink());
var1.setType(this.getType());
var1.setClientId(this.getClientId());
var1.setMediaId(this.getMediaId());
var1.setActionName(this.getActionName());
var1.setResultURL(this.getResultURL());
var1.setRunType(this.getRunType());
var1.setFromUserId(this.getFromUserId());
var1.setSendType(this.getSendType());
return var1;
}
public int getSendType() {
return sendType;
}
public void setSendType(int sendType) {
this.sendType = sendType;
}
public int getRunType() {
return runType;
}
public void setRunType(int runType) {
this.runType = runType;
}
public String getFromUserId() {
return fromUserId;
}
public void setFromUserId(String fromUserId) {
this.fromUserId = fromUserId;
}
public String getActionName() {
return this.actionName;
}
public void setActionName(String var1) {
this.actionName = var1;
}
public String getResultURL() {
return this.resultURL;
}
public void setResultURL(String var1) {
this.resultURL = var1;
}
public String getAgentId() {
return this.agentId;
}
public void setAgentId(String var1) {
this.agentId = var1;
}
public int getTerminal() {
return this.terminal;
}
public void setTerminal(int var1) {
this.terminal = var1;
}
public String getSubject() {
return this.subject;
}
public void setSubject(String var1) {
this.subject = var1;
}
public String getContent() {
return this.content;
}
public void setContent(String var1) {
this.content = var1;
}
public int getLinkOpenType() {
return this.linkOpenType;
}
public void setLinkOpenType(int var1) {
this.linkOpenType = var1;
}
public String getCustomizeLink() {
return this.customizeLink;
}
public void setCustomizeLink(String var1) {
this.customizeLink = var1;
}
public int getType() {
return this.type;
}
public void setType(int var1) {
this.type = var1;
}
public String getMediaId() {
return this.mediaId;
}
public void setMediaId(String var1) {
this.mediaId = var1;
}
}