package com.xy.dto; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.experimental.Accessors; import javax.validation.constraints.NotEmpty; import java.time.LocalDateTime; import java.util.List; /** *

* 设备计费表 *

* * @author lijin * @since 2023-04-14 */ public class DeviceChargingDto { @Data @Accessors(chain = true) public static class Charging { @NotEmpty(message = "设备id不能为空") @ApiModelProperty(value = "设备id集合") private List deviceIds; } @Data @Accessors(chain = true) public static class Vo { @ApiModelProperty(value = "设备id") private Long deviceId; @ApiModelProperty(value = "设备类型") private Integer deviceType; @ApiModelProperty(value = "续费金额") private Integer chargingMoney; @ApiModelProperty(value = "累计续费金额") private Integer chargingSumMoney; @ApiModelProperty(value = "续费方式") private Integer chargingType; @ApiModelProperty(value = "状态") private Boolean status; @ApiModelProperty(value = "过期时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime timeout; @ApiModelProperty(value = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @ApiModelProperty(value = "更新时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; } }