package com.ruoyi.controller.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.frequency.voteoption.entity.VoteOption;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author a
 * @date 2023/10/12 16:38
 */
@Data
public class VotePageResp {

    @ApiModelProperty("租户号")
    private Long id;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("删除标志;1 正常 2 删除 3 禁用")
    private Integer delFlag;

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

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("活动截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cutoffDate;

    @ApiModelProperty("投票发起人;默认官方")
    private String initiator;


    @ApiModelProperty("参与人数")
    private Integer num;

    @ApiModelProperty("官方头像")
    private String avatar;

    @ApiModelProperty("1单选 2多选")
    private Integer type;

    @ApiModelProperty("选择数量")
    private Integer pickNum;

    @ApiModelProperty("是否投票;1 未投票 2 已投票")
    private Integer isVote;

    @ApiModelProperty(value = "是否点赞 1没有 2点赞")
    private Integer isLike;

    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;

    @ApiModelProperty(value = "浏览数")
    private Integer browseNum;

    @ApiModelProperty(value = "评论数")
    private Integer commentNum;

    @ApiModelProperty("投票选项")
    private List<VoteOption> voteOptionList;
}
