Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / entity / WxTemplate.java
package com.newfiber.api.pc.model.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 lombok.Data;

import java.io.Serializable;

/**
 * 微信模板表
 * @ClassName WxTemplate
 * @Description TODO
 * @Author 张鸿志
 * @Date 2021年5月29日09:33:14 9:33
 * Version 1.0
 **/
@TableName("wx_template")
@Data
public class WxTemplate implements Serializable {

    @TableId(value = "template_id",type = IdType.INPUT)
    private String templateId;
    @TableField("title")
    private String title;
    @TableField("primary_industry")
    private String primaryIndustry;
    @TableField("deputy_industry")
    private String deputy_industry;
    @TableField("content")
    private String content;
    @TableField("example")
    private String example;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WxTemplate that = (WxTemplate) o;

        return templateId != null ? templateId.equals(that.templateId) : that.templateId == null;
    }

    @Override
    public int hashCode() {
        return templateId != null ? templateId.hashCode() : 0;
    }
}