package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * version对象 app_version
 *
 * @author ruoyi
 * @date 2023-06-13
 */
@Data
@TableName(value = "app_version")
@EqualsAndHashCode(callSuper = false)
public class AppVersion
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @GeneratedValue
    /** id */
    private Long id;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String name;

    /** 版本名称 */
    @Excel(name = "版本名称")
    private String versionName;

    /** 版本号 */
    @Excel(name = "版本号")
    private String version;

    /** 运行平台 */
    @Excel(name = "运行平台")
    private Long platform;

    /** 下载地址 */
    @Excel(name = "下载地址")
    private String downloadUrl;

    /** 版本说明 */
    @Excel(name = "版本说明")
    private String introduce;

    /** 强制更新 */
    @Excel(name = "强制更新")
    private Long renew;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setVersionName(String versionName)
    {
        this.versionName = versionName;
    }

    public String getVersionName()
    {
        return versionName;
    }
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }
    public void setPlatform(Long platform)
    {
        this.platform = platform;
    }

    public Long getPlatform()
    {
        return platform;
    }
    public void setDownloadUrl(String downloadUrl)
    {
        this.downloadUrl = downloadUrl;
    }

    public String getDownloadUrl()
    {
        return downloadUrl;
    }
    public void setIntroduce(String introduce)
    {
        this.introduce = introduce;
    }

    public String getIntroduce()
    {
        return introduce;
    }
    public void setRenew(Long renew)
    {
        this.renew = renew;
    }

    public Long getRenew()
    {
        return renew;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("versionName", getVersionName())
            .append("version", getVersion())
            .append("platform", getPlatform())
            .append("downloadUrl", getDownloadUrl())
            .append("introduce", getIntroduce())
            .append("renew", getRenew())
            .toString();
    }
}
