package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 运费模板
 *
 * @author 科技小王子
 * @since 2025-08-12 12:07:03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopExpressTemplate对象", description = "运费模板")
public class ShopExpressTemplate implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Boolean type;

    private String title;

    @Schema(description = "收件价格")
    private BigDecimal firstAmount;

    @Schema(description = "续件价格")
    private BigDecimal extraAmount;

    @Schema(description = "状态, 0已发布, 1待审核 2已驳回 3违规内容")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private Integer sortNumber;

    @Schema(description = "首件数量/重量")
    private BigDecimal firstNum;

    @Schema(description = "续件数量/重量")
    private BigDecimal extraNum;

}
