package com.fs.user.param;

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

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 修改会员红包领取开关
 */
@Data
@ApiModel("会员红包领取开关参数")
public class FsUserRedStatusParam {

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "会员 userId（fs_user.user_id）", required = true)
    private Long userId;

    /**
     * 1 可领取红包，0 关闭
     */
    @NotNull(message = "redStatus不能为空")
    @Min(0)
    @Max(1)
    @ApiModelProperty(value = "红包领取：1开启 0关闭", required = true)
    private Integer redStatus;
}
