停车平台

This commit is contained in:
Guoqs
2025-02-11 14:34:01 +08:00
parent 2e57525ade
commit f8859528c2
17 changed files with 58 additions and 194 deletions

View File

@@ -0,0 +1,34 @@
package com.jsowell.thirdparty.parking.common.request;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class DataRequest {
// 服务名称
private String service;
// 接口版本
private String version;
// 消息ID
private String msgId;
//机构ID (分配)
private String orgId;
// data
private Object data;
// 请求签名
private String sign;
public DataRequest() {
}
public DataRequest(String service, String version, String msgId, String orgId, Object data, String sign) {
this.service = service;
this.version = version;
this.msgId = msgId;
this.orgId = orgId;
this.data = data;
this.sign = sign;
}
}

View File

@@ -0,0 +1,19 @@
package com.jsowell.thirdparty.parking.common.request;
import lombok.Getter;
import lombok.Setter;
/**
* @desc:获取固定车实体类
* @date: 2021-10-30 15:44
*/
@Setter
@Getter
public class RequestCarInfo {
//车场ID
Integer parkId;
//车牌号
String plate;
}

View File

@@ -0,0 +1,60 @@
package com.jsowell.thirdparty.parking.common.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class RequestDiscountCreate {
/**
* 停车场编号
*/
private String parkId;
/**
* 停车流水, 标识具体某次停车事件, 需保证该停车场下唯一
*/
private String parkingSerial;
/**
* 忽略停车状态派发时传递
*/
private String plate;
/**
* 优惠券派发流水
*/
private String grantSerial;
/**
* 优惠类型:1金额, 2时长, 3全免, 4不同计价券
*/
private Short type;
/**
* 优惠金额
* 当type=1时单位为分;
* 当type=2时单位为分钟;
* 当type=3时暂无定义;
* 当type=4时为停车场计价规则ID
*/
private Integer value;
/**
* 优惠给予原因, 例如:购物满300, 免费停车2小时
*/
private String reason;
/**
* 当前派发优惠的商家名称
*/
private String storeName;
/**
* 当前派发优惠的商家唯一标识
*/
private String storeCode;
/**
* 优惠券减免规则ID, 用于配置减免是减免前面还是减免后面一般一个停车场配置相同
*/
private String couponRule;
/**
* 不同计价券收费规则ID, 用于配置改优惠券后本次停车使用不同计价规则, 一般每种优惠券不同
*/
private String chargeRule;
private String couponName; // 优惠券名称
}

View File

@@ -0,0 +1,22 @@
package com.jsowell.thirdparty.parking.common.response;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class DataResponse {
public int retCode; //状态码 0-正常 其他-异常
public String retMsg; //状态码处理描述, 如:返回错误信息
public Object retData; //返回内容
public DataResponse() {}
public DataResponse(int retCode, String retMsg) {
this.retCode = retCode;
this.retMsg = retMsg;
}
}

View File

@@ -0,0 +1,25 @@
package com.jsowell.thirdparty.parking.common.response;
import lombok.Getter;
import lombok.Setter;
/**
* @desc:获取固定车实体类
* @date: 2021-10-30 15:44
*/
@Setter
@Getter
public class ResponseCarInfo {
//车场ID
Integer parkId;
//车场名称
String parkName;
//车牌号
String plate;
//车型1-按临时车计费 2-按固定车计费 3-储值车计费)
Integer carType;
//车辆信息 根据车型显示不同内容
Object carInfo;
}

View File

@@ -0,0 +1,4 @@
package com.jsowell.thirdparty.parking.common.response;
public class ResponseDiscountCreate {
}

View File

@@ -0,0 +1,4 @@
package com.jsowell.thirdparty.parking.common.response;
public class ResponseDiscountDestroy {
}