package com.sqx.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author fang
 * @date 2021.9.14
 * 商品规格
 */
@Data
public class GoodsRule {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("规格名称")
    private String ruleName;

    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("商铺id")
    private Long shopId;

    @ApiModelProperty("商铺名")
    private String shopName;

    @ApiModelProperty("规格值")
    @TableField(exist = false)
    private List<GoodsRuleValue> ruleValue;

}
