package com.yuchen.saas.park.api.dto.property;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.nest.springwrap.core.mp.support.Query;

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

@Data
@ApiModel(value = "房源列表查询参数")
public class PropertyHousesAutoDeductionDto{

    @NotEmpty
    @ApiModelProperty("房源id集合")
    private List<Long> housesList;

    @ApiModelProperty(value = "自动扣款方式,1预存款")
    private Integer autoDeductionType;

    @NotNull
    @Range(min = 0,max = 1)
    @ApiModelProperty(value = "提交类型0取消,1开通")
    private Integer isAutoDeduction;

    @NotNull
    @Range(min = 1,max = 2)
    @ApiModelProperty(value = "自动扣款添加来源,1个人,2企业")
    private Integer autoDeductionSourceType;

}
