-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 #3247 【小程序】即时配送服务增加获取运力id列表和更新物流信息的接口
- Loading branch information
1 parent
ccf23a8
commit 5977567
Showing
7 changed files
with
194 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/GetDeliveryListResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package cn.binarywang.wx.miniapp.bean.delivery; | ||
|
||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse; | ||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.experimental.Accessors; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* <pre> | ||
* 获取运力id列表get_delivery_list 响应参数 | ||
* </pre> | ||
* | ||
* @author zhongjun | ||
* @since 2024-03-14 | ||
*/ | ||
@Data | ||
@Accessors(chain = true) | ||
public class GetDeliveryListResponse extends WxMaBaseResponse implements Serializable { | ||
|
||
private static final long serialVersionUID = 7113254030347413645L; | ||
|
||
/** | ||
* 运力公司个数 | ||
*/ | ||
@SerializedName("count") | ||
private Integer count; | ||
|
||
/** | ||
* 运力公司列表 | ||
*/ | ||
@SerializedName("delivery_list") | ||
private List<DeliveryList> deliveryList; | ||
|
||
@Data | ||
@Accessors(chain = true) | ||
public static class DeliveryList implements Serializable { | ||
|
||
private static final long serialVersionUID = 2543667583406735085L; | ||
|
||
/** | ||
* 运力公司 id | ||
*/ | ||
@SerializedName("delivery_id") | ||
private String deliveryId; | ||
/** | ||
* 运力公司名称 | ||
*/ | ||
@SerializedName("delivery_name") | ||
private String deliveryName; | ||
|
||
} | ||
|
||
|
||
public static GetDeliveryListResponse fromJson(String json) { | ||
return WxMaGsonBuilder.create().fromJson(json, GetDeliveryListResponse.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...niapp/src/main/java/cn/binarywang/wx/miniapp/bean/delivery/UpdateWaybillGoodsRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package cn.binarywang.wx.miniapp.bean.delivery; | ||
|
||
|
||
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <pre> | ||
* 更新物流信息接口 update_waybill_goods | ||
* </pre> | ||
* | ||
* @author zhongjun | ||
* @since 2024-03-14 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Accessors(chain = true) | ||
public class UpdateWaybillGoodsRequest implements Serializable { | ||
|
||
private static final long serialVersionUID = -8817584588925001295L; | ||
|
||
|
||
|
||
/** | ||
* 查询id | ||
* <pre> | ||
* 是否必填: 是 | ||
* </pre> | ||
*/ | ||
@SerializedName("waybill_token") | ||
private String waybillToken; | ||
|
||
/** | ||
* 商品信息 | ||
* <pre> | ||
* 是否必填: 是 | ||
* </pre> | ||
*/ | ||
@SerializedName("goods_info") | ||
private WaybillGoodsInfo goodsInfo; | ||
|
||
public String toJson() { | ||
return WxMaGsonBuilder.create().toJson(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters