| 1234567891011121314151617181920212223242526272829303132333435363738 |
- package com.zswl.dataservice.domain.mqtt;
- import com.zswl.dataservice.domain.SuperEntity;
- import io.swagger.v3.oas.annotations.media.Schema;
- import lombok.AllArgsConstructor;
- import lombok.Data;
- import lombok.NoArgsConstructor;
- import org.springframework.data.mongodb.core.mapping.DBRef;
- import org.springframework.data.mongodb.core.mapping.Document;
- /**
- * mqtt服务和账号关系信息 (是否在mqtt服务商添加账号)
- * @author TRX
- * @date 2024/5/14
- */
- @Data
- @Document
- @NoArgsConstructor
- @AllArgsConstructor
- public class Mqtt2User extends SuperEntity {
- @Schema(description = "mqtt服务信息")
- @DBRef(lazy = true)
- private MqttInfo mqttInfo;
- @Schema(description = "网关用户信息")
- @DBRef(lazy = true)
- private GateWayUserInfo gateWayUserInfo;
- @Schema(description = "是否已同步")
- private Boolean isSync = Boolean.FALSE;
- @Schema(description = "同步时间")
- private Long syncTime;
- @Schema(description = "同步时间")
- private String syncTimeStr;
- }
|