package com.limap.core.basic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.limap.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.limap.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户设备绑定信息对象 basic_user_bind_info
 *
 * @author jjb
 * @date 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "basic_user_bind_info")
public class BasicUserBindInfo extends BasePlusEntity {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty("用户id")
    private Long userId;

    private String userName;

    private Long deviceId;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @ApiModelProperty("设备编号")
    private String deviceName;

    /** 产品key */
    @Excel(name = "产品key")
    @ApiModelProperty("产品key")
    private String productKey;

    /** 阿里云唯一编号 */
    @Excel(name = "阿里云唯一编号")
    @ApiModelProperty("阿里云唯一编号")
    private String iotId;

    /** 设备类型 */
    @Excel(name = "设备类型")
    @ApiModelProperty("设备类型")
    private String type;

    /** 设备绑定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备绑定时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("设备绑定时间")
    private Date bindTime;

    /** 设备分润状态 1 分润 0不分 2已分 */
    @Excel(name = "设备分润状态 1 分润 0不分 2已分")
    @ApiModelProperty("设备分润状态 1 分润 0不分 2已分")
    private Integer profitStatus;
    private String appUserName;

    private String appUser;
    private String appUserTel;

}
