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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "物业收费模式", description = "物业收费模式")
@TableName("property_fee_mode")
public class PropertyFeeMode implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 园区id
     */
    @NotNull(message = "园区不能为空")
    @ApiModelProperty(value = "园区id")
    private Long parkId;
    /**
     * 后台收费模式
     */
    @NotNull(message = "后台收费模式不能为空")
    @ApiModelProperty(value = "后台收费模式：1-所有收费项目强制连续缴费，2-允许选择任意账单进行收费")
    private Integer adminFeeMode;
    /**
     * 客户自助缴费模式
     */
    @NotNull(message = "客户自助缴费模式不能为空")
    @ApiModelProperty(value = "客户自助缴费模式：1-所有收费项目强制连续缴费，2-允许客户选择收费项目，3-允许选择任意账单进行缴费")
    private Integer clientFeeMode;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
