package com.corewing.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.corewing.app.common.base.CommonEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("app_model")
public class AppModel extends CommonEntity {

    @TableId
    @ApiModelProperty("模型id")
    private String id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("模型标题")
    private String title;

    @ApiModelProperty("模型描述")
    private String description;

    @ApiModelProperty("分类id")
    private String categoryId;

    @ApiModelProperty("模型封面(base64)")
    private String coverImage;

    @ApiModelProperty("是否公开：(1公开，0私有)")
    private String isPublic;

    @ApiModelProperty("状态：(1正常，0下架，2审核中)")
    private String status;

    @ApiModelProperty("下载次数")
    private int downloadCount;

    @ApiModelProperty("点赞次数")
    private int likeCount;

    @ApiModelProperty("收藏次数")
    private int favoriteCount;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("扩展参数")
    private String extJson;

    @ApiModelProperty("暂未使用【点击详情接口获取文件模型】")
    @TableField(exist = false)
    private List<AppModelFile> modelFile;

    /**
     * 分类名称
     */
    @ApiModelProperty("分类名称")
    @TableField(exist = false)
    private String categoryTitle;


}
