package com.heketai.website.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


/**
 * <p>
 * 产品应用表
 * </p>
 *
 * @author xjl
 * @since 2019-12-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Cooperative extends Model<Cooperative> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 图片
     */
    @TableField("image")
    private String image;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 跳转地址
     */
    @TableField("url")
    private String url;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 类型
     */
    @TableField("type")
    private Integer type;

    /**
     * 类型
     */
    @TableField("language")
    private Integer language;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Cooperative{" +
                "id=" + id +
                ", image='" + image + '\'' +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", sort=" + sort +
                '}';
    }
}
