package shop.alien.entity.store.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 价目表通用VO
 * 用于返回美食价目表list 通用价目表list
 *
 * @author assistant
 * @since 2025-12-31
 */
@Data
@JsonInclude
@ApiModel(value = "PriceListVo对象", description = "价目表通用VO")
public class PriceListVo {

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "商户id")
    private Integer storeId;

    @ApiModelProperty(value = "名字")
    private String name;

    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "图片列表，最多 9 张 URL")
    private String images;

    @ApiModelProperty(value = "图文详情-图片")
    private String imageContent;

    @ApiModelProperty(value = "服务项目json(服务名称:name,数量:num,单位:unit,服务说明:details)")
    private String serviceJson;

    @ApiModelProperty(value = "图文详情-文字")
    private String detailContent;

    @ApiModelProperty(value = "补充说明")
    private String extraNote;

    @ApiModelProperty(value = "是否需要预约：0=否，1=是")
    private Integer needReserve;

    @ApiModelProperty(value = "预约规则")
    private String reserveRule;

    @ApiModelProperty(value = "适用人数")
    private String peopleLimit;

    @ApiModelProperty(value = "使用规则")
    private String usageRule;

    @ApiModelProperty(value = "状态：0-待审核 1-审核通过 2-审核拒绝")
    private Integer status;

    @ApiModelProperty(value = "上下架状态：1-上架，2-下架")
    private Integer shelfStatus;

    @ApiModelProperty(value = "美食类型: 1-单品，2-套餐")
    private Integer cuisineType;

    @ApiModelProperty(value = "菜品分类ids（JSON数组，如：[1,2,3]）")
    private String categoryIds;

    @ApiModelProperty(value = "菜品分类名称（JSON数组，如：[\"热菜\",\"凉菜\"]）")
    private String categoryNames;

    @ApiModelProperty(value = "拒绝原因")
    private String rejectionReason;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "updated_user_id", fill = FieldFill.UPDATE)
    private Integer updatedUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
}
