package com.skr.mdm.bean.qo.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author nfq
 * @date 2022-12-02 16:19
 */
@Data
@ApiModel(value = "应用推送QO")
public class MdmAppPushQO {

    @NotEmpty(message = "应用推送ID不能为空")
    @ApiModelProperty(value = "应用推送ID")
    private List<Integer> appPushIdList;

    @NotNull(message = "应用推送类型不能为空")
    @ApiModelProperty(value = "推送类型（1：即时推送 2：定时推送 3：按需推送 4：强制推送)")
    private Integer pushType;

    @NotNull(message = "推送时间不能为空")
    @ApiModelProperty(value = "推送时间")
    private Date pushTime;

    @ApiModelProperty(value = "仅WiFi下载（0：否 1：是）")
    private Integer isOnlyWifi;

    @ApiModelProperty(value = "是否放入安全空间（0：否 1：是）")
    private Integer isSafeSpace;

    @ApiModelProperty(value = "普通系统是否创建快捷图标（0：否 1：是）")
    private Integer isShortcutIcon;

    @NotNull(message = "全局类型不能为空")
    @ApiModelProperty(value = "全局类型（ 1：全局 2：部门 3：个人）")
    private Integer globalType;

    @ApiModelProperty(value = "候选ID集合（部门ID集合或设备ID集合）")
    private List<Integer> candidateIdList;
}
