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;

/**
 * spfenlei对象 pos_fenlei
 *
 * @author ruoyi
 * @date 2023-05-21
 */
@Data
@TableName(value = "pos_fenlei")
@EqualsAndHashCode(callSuper = false)
public class PosFenlei
{
    private static final long serialVersionUID = 1L;

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

    /** 门店id */
    @Excel(name = "门店id")
    private Long mendid;

    /** 分类名 */
    @Excel(name = "分类名")
    private String name;

    /** 分类图片 */
    @Excel(name = "分类图片")
    private String img;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    /** 语言 */
    @Excel(name = "语言")
    private String language;

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

    public Long getId()
    {
        return id;
    }
    public void setMendid(Long mendid)
    {
        this.mendid = mendid;
    }

    public Long getMendid()
    {
        return mendid;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mendid", getMendid())
            .append("name", getName())
            .append("img", getImg())
            .append("sort", getSort())
            .append("language", getLanguage())
            .toString();
    }
}
