车辆管理基础业务实体类

dev.xxy
Aaaaaaaa 2024-09-18 20:58:51 +08:00
parent 3c7ba5744d
commit f07a9bd208
4 changed files with 304 additions and 0 deletions

View File

@ -0,0 +1,107 @@
package com.muyu.car.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "carinformation",autoResultMap = true)
public class CarInformation {
/**
* ID
*/
private Integer carInformationId;
/**
* VIN
*/
private String carInformationVIN;
/**
*
*/
private String carInformationLicensePlate;
/**
*
*/
private String carInformationBrand;
/**
*
*/
private String carInformationColor;
/**
*
*/
private String carInformationDriver;
/**
*
*/
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
private String carInformationExamineEnddata;
/**
*
*/
private String carInformationMotorManufacturer;
/**
*
*/
private String carInformationMotorModel;
/**
*
*/
private String carInformationBatteryManufacturer;
/**
*
*/
private String carInformationBatteryModel;
/**
* ID
*/
private Integer carInformationFence;
/**
* ID
*/
private Integer carInformationType;
/**
* (0 1 )
*/
private Integer carInformationFocus;
/**
* (1.线 2.线 3. 4. 5.)
*/
private Integer carInformationState;
//车辆类型表
/**
* ID
*/
private Integer carTypeId;
/**
*
*/
private String carTypeName;
}

View File

@ -0,0 +1,83 @@
package com.muyu.car.domain.req;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Tag(name = "车辆管理信息添加对象")
public class CarInformationAddReq {
/**
* VIN
*/
private String carInformationVIN;
/**
*
*/
private String carInformationLicensePlate;
/**
*
*/
private String carInformationBrand;
/**
*
*/
private String carInformationColor;
/**
*
*/
private String carInformationDriver;
/**
*
*/
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
private String carInformationExamineEnddata;
/**
*
*/
private String carInformationMotorManufacturer;
/**
*
*/
private String carInformationMotorModel;
/**
*
*/
private String carInformationBatteryManufacturer;
/**
*
*/
private String carInformationBatteryModel;
/**
* ID
*/
private Integer carInformationFence;
/**
* ID
*/
private Integer carInformationType;
}

View File

@ -0,0 +1,110 @@
package com.muyu.car.domain.req;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Tag(name="车辆管理列表请求对象")
public class CarInformationListReq {
/**
* VIN
*/
@Schema(
description = "车辆唯一VIN",
type = "String"
)
private String carInformationVIN;
/**
* ID
*/
@Schema(
description = "车辆类型ID",
type = "Interger"
)
private Integer carTypeId;
/**
* ID
*/
@Schema(
description = "车辆电子围栏外键ID",
type = "Interger"
)
private Integer carInformationFence;
/**
* (1.线 2.线 3. 4. 5.)
*/
@Schema(
description = "启用状态(1.在线 2.离线 3.已断开 4.待连接 5.维修中)",
type = "Interger"
)
private Integer carInformationState;
/**
*
*/
@Schema(
description = "车辆电机厂商",
type = "String"
)
private String carInformationMotorManufacturer;
/**
*
*/
@Schema(
description = "车辆电机型号",
type = "String"
)
private String carInformationMotorModel;
/**
*
*/
@Schema(
description = "车辆电池厂商",
type = "String"
)
private String carInformationBatteryManufacturer;
/**
*
*/
@Schema(
description = "车辆电池型号",
type = "String"
)
private String carInformationBatteryModel;
//分页页数
private Integer pageNum = 1;
//分页条数
private Integer pageSize = 5;
}

View File

@ -0,0 +1,4 @@
package com.muyu.car.domain.req;
public class CarInformationUpdReq {
}