From 03d5d62b06afdeec9f3a9c1e42655d723457d48d Mon Sep 17 00:00:00 2001 From: masaimu Date: Thu, 14 Mar 2024 14:59:02 +0800 Subject: [PATCH] feat: add sourceType for subscribe (#819) --- .../server/home/dal/model/AlarmSubscribe.java | 215 +----------------- 1 file changed, 8 insertions(+), 207 deletions(-) diff --git a/server/home/home-dal/src/main/java/io/holoinsight/server/home/dal/model/AlarmSubscribe.java b/server/home/home-dal/src/main/java/io/holoinsight/server/home/dal/model/AlarmSubscribe.java index e0d4a7178..83c2fef3d 100644 --- a/server/home/home-dal/src/main/java/io/holoinsight/server/home/dal/model/AlarmSubscribe.java +++ b/server/home/home-dal/src/main/java/io/holoinsight/server/home/dal/model/AlarmSubscribe.java @@ -5,11 +5,13 @@ import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; import javax.persistence.Column; import javax.persistence.Table; import java.util.Date; +@Data @Table(name = "alarm_subscribe") public class AlarmSubscribe { /** @@ -85,216 +87,15 @@ public class AlarmSubscribe { private String envType; /** - * 获取id - * - * @return id - id + * 来源类型 */ - public Long getId() { - return id; - } + @Column(name = "source_type") + private String sourceType; /** - * 设置id - * - * @param id id + * 来源id */ - public void setId(Long id) { - this.id = id; - } + @Column(name = "source_id") + private Long sourceId; - /** - * 获取创建时间 - * - * @return gmt_create - 创建时间 - */ - public Date getGmtCreate() { - return gmtCreate; - } - - /** - * 设置创建时间 - * - * @param gmtCreate 创建时间 - */ - public void setGmtCreate(Date gmtCreate) { - this.gmtCreate = gmtCreate; - } - - /** - * 获取修改时间 - * - * @return gmt_modified - 修改时间 - */ - public Date getGmtModified() { - return gmtModified; - } - - /** - * 设置修改时间 - * - * @param gmtModified 修改时间 - */ - public void setGmtModified(Date gmtModified) { - this.gmtModified = gmtModified; - } - - /** - * 获取创建者 - * - * @return creator - 创建者 - */ - public String getCreator() { - return creator; - } - - /** - * 设置创建者 - * - * @param creator 创建者 - */ - public void setCreator(String creator) { - this.creator = creator; - } - - /** - * 获取修改者 - * - * @return modifier - 修改者 - */ - public String getModifier() { - return modifier; - } - - /** - * 设置修改者 - * - * @param modifier 修改者 - */ - public void setModifier(String modifier) { - this.modifier = modifier; - } - - /** - * 获取订阅者 - * - * @return subscriber - 订阅者 - */ - public String getSubscriber() { - return subscriber; - } - - /** - * 设置订阅者 - * - * @param subscriber 订阅者 - */ - public void setSubscriber(String subscriber) { - this.subscriber = subscriber; - } - - /** - * 获取订阅组id - * - * @return group_id - 订阅组id - */ - public Long getGroupId() { - return groupId; - } - - /** - * 设置订阅组id - * - * @param groupId 订阅组id - */ - public void setGroupId(Long groupId) { - this.groupId = groupId; - } - - /** - * 获取告警id - * - * @return unique_id - 告警id - */ - public String getUniqueId() { - return uniqueId; - } - - /** - * 设置告警id - * - * @param uniqueId 告警id - */ - public void setUniqueId(String uniqueId) { - this.uniqueId = uniqueId; - } - - /** - * 获取通知方式 - * - * @return notice_type - 通知方式 - */ - public String getNoticeType() { - return noticeType; - } - - /** - * 设置通知方式 - * - * @param noticeType 通知方式 - */ - public void setNoticeType(String noticeType) { - this.noticeType = noticeType; - } - - /** - * 获取通知是否生效 - * - * @return status - 通知是否生效 - */ - public Byte getStatus() { - return status; - } - - /** - * 设置通知是否生效 - * - * @param status 通知是否生效 - */ - public void setStatus(Byte status) { - this.status = status; - } - - /** - * 获取租户id - * - * @return tenant - 租户id - */ - public String getTenant() { - return tenant; - } - - /** - * 设置租户id - * - * @param tenant 租户id - */ - public void setTenant(String tenant) { - this.tenant = tenant; - } - - public String getEnvType() { - return envType; - } - - public void setEnvType(String envType) { - this.envType = envType; - } - - public String getWorkspace() { - return workspace; - } - - public void setWorkspace(String workspace) { - this.workspace = workspace; - } }