package com.sckw.product.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sckw.core.model.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serial;
import java.io.Serializable;

/**
 * @desc 商品-单位换算
 * @author zk
 * @date 2023/12/4 0004
 */
@Data
@Accessors(chain = true)
@TableName("kwp_goods_unit")
@EqualsAndHashCode(callSuper = false)
public class KwpGoodsUnit extends BaseModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 49704905372870133L;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 被转换单位
     */
    private String fromUnit;

    /**
     * 转换目标单位
     */
    private String toUnit;

    /**
     * 换算值
     */
    private Double conversionValue;
}
