package com.pig4cloud.pigx.app.api.entity.as;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("as_sub_product")
@Schema(description = "订阅产品")
public class AsSubProduct {
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private Long id;

    @Schema(description = "综合评分")
    private Integer star;
    @Schema(description = "标题")
    private String title;
    @Schema(description = "描述")
    private String description;
    @Schema(description = "标签s")
    private String Tags;
    @Schema(description = "订阅ids")
    private String subPlanIds;
    @Schema(description = "总价")
    private BigDecimal amount;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "产品类型 1自营 2个人")
    private Long productType;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "产品code: 类型_名称_id")
    private String productCode;
    @Schema(description = "订阅类型 1单品 2多品")
    private Long subType;
}
