package com.ltkj.mall.domain; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.ltkj.common.annotation.Excel; import com.ltkj.common.core.domain.BaseEntity; import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; /** * 关键字对象 mall_keyword * * @author ltkj_赵佳豪&李格 * @date 2023-07-13 */ @Data public class MallKeyword extends BaseEntity { private static final long serialVersionUID = 1L; /** * id */ @TableId(type = IdType.AUTO) @JsonSerialize(using = ToStringSerializer.class) private Long id; /** * 关键字 */ @Excel(name = "关键字") private String keyword; /** * 关键字的跳转链接 */ @Excel(name = "关键字的跳转链接") private String url; /** * 是否是热门关键字 */ @Excel(name = "是否是热门关键字") private Integer isHot; /** * 是否是默认关键字 */ @Excel(name = "是否是默认关键字") private Integer isDefault; /** * 排序 */ @Excel(name = "排序") private Long sortOrder; public void setId(Long id) { this.id = id; } public Long getId() { return id; } public void setKeyword(String keyword) { this.keyword = keyword; } public String getKeyword() { return keyword; } public void setUrl(String url) { this.url = url; } public String getUrl() { return url; } public void setIsHot(Integer isHot) { this.isHot = isHot; } public Integer getIsHot() { return isHot; } public void setIsDefault(Integer isDefault) { this.isDefault = isDefault; } public Integer getIsDefault() { return isDefault; } public void setSortOrder(Long sortOrder) { this.sortOrder = sortOrder; } public Long getSortOrder() { return sortOrder; } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) .append("keyword", getKeyword()) .append("url", getUrl()) .append("isHot", getIsHot()) .append("isDefault", getIsDefault()) .append("sortOrder", getSortOrder()) .append("deleted", getDeleted()) .append("createTime", getCreateTime()) .append("createBy", getCreateBy()) .append("updateTime", getUpdateTime()) .append("updateBy", getUpdateBy()) .toString(); } }