package com.ruoyi.chargingPile.api.model; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.core.web.domain.BasePojo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import org.hibernate.validator.constraints.Length; import java.io.Serializable; import java.time.LocalDateTime; /** *

* *

* * @author xiaochen * @since 2024-08-08 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("t_fault_message") @ApiModel(value="TFaultMessage对象", description="") public class TFaultMessage extends BasePojo { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "主键") @TableId(value = "id", type = IdType.AUTO) private Integer id; @ApiModelProperty(value = "用户id") @TableField("app_user_id") private Long appUserId; @ApiModelProperty(value = "站点id") @TableField("site_id") private Integer siteId; @TableField(exist = false) private String siteName; @ApiModelProperty(value = "充电桩id") @TableField("charging_pile_id") private Integer chargingPileId; @ApiModelProperty(value = "充电枪id") @TableField("charging_gun_id") private Integer chargingGunId; @TableField(exist = false) private String chargingPileName; @ApiModelProperty(value = "状态(1=离线,2=故障)") @TableField("status") private Integer status; @ApiModelProperty(value = "故障内容") @Length(max = 200, message = "故障内容长度不能超过200") @TableField("content") private String content; @ApiModelProperty(value = "故障时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @TableField("down_time") private LocalDateTime downTime; @ApiModelProperty(value = "结束时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @TableField("end_time") private LocalDateTime endTime; }