package com.propertyManagement.business.domain.bo;

import com.propertyManagement.common.core.validate.AddGroup;
import com.propertyManagement.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.propertyManagement.common.core.domain.BaseEntity;

/**
 * 业主车位业务对象 wx_carport
 *
 * @author liushuai
 * @date 2025-05-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WxCarportBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long carportId;

    /**
     * 小区主键
     */
    private Long communityId;

    /**
     * 小区名称
     */
    private String communityName;

    /**
     * 业主ID
     */
    @NotNull(message = "业主不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long proprietorId;

    /**
     * 业主名称
     */
    private String proprietorName;

    /**
     * 业主电话
     */
    private String proprietorPhone;

    /**
     * 业主户号
     */
    private String room;

    /**
     * 登记车牌
     */
    @NotBlank(message = "登记车牌不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plateNumber;

    /**
     * 车型
     */
    @NotBlank(message = "车型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vehicleModel;

    /**
     * 车主电话
     */
    @NotBlank(message = "车主电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carportPhone;

    /**
     * 车位号
     */
    @NotBlank(message = "车位号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carportNumber;

    /**
     * 月费（元）
     */
    @NotNull(message = "月费（元）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal monthMoney;

    /**
     * 缴费日期
     */
    private Date startTime;

    /**
     * 到期日期
     */
    private Date endTime;

    /**
     * 车位类型
     */
    @NotNull(message = "车位类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;


}
