package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
|
/**
|
* <p>
|
* 套餐管理
|
* </p>
|
*
|
* @author 无关风月
|
* @since 2024-02-06
|
*/
|
@TableName("t_package")
|
@Data
|
public class Package extends Model<Package> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 部位ids 逗号隔开
|
*/
|
@ApiModelProperty(value = "部位ids")
|
private String positions;
|
/**
|
* 原价
|
*/
|
@ApiModelProperty(value = "原价")
|
private BigDecimal amount;
|
|
@ApiModelProperty(value = "基础价格合计")
|
private BigDecimal total;
|
@ApiModelProperty(value = "状态 1上架 2下架 3删除")
|
private Integer state;
|
@ApiModelProperty(value = "套餐名称")
|
private String name;
|
/**
|
* 优惠价
|
*/
|
@ApiModelProperty(value = "套餐价")
|
private BigDecimal price;
|
/**
|
* 优惠价
|
*/
|
@ApiModelProperty(value = "ios用 苹果的价格")
|
private BigDecimal appleAmount;
|
@ApiModelProperty(value = "选择部位的难度 和部位ids一一对应")
|
private String difficulty;
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getPositions() {
|
return positions;
|
}
|
|
public void setPositions(String positions) {
|
this.positions = positions;
|
}
|
|
public BigDecimal getAmount() {
|
return amount;
|
}
|
|
public void setAmount(BigDecimal amount) {
|
this.amount = amount;
|
}
|
|
public BigDecimal getPrice() {
|
return price;
|
}
|
|
public void setPrice(BigDecimal price) {
|
this.price = price;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "Package{" +
|
"id=" + id +
|
", positions=" + positions +
|
", amount=" + amount +
|
", price=" + price +
|
"}";
|
}
|
}
|