-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: 商城 BFF 层开发根据用户 ID 查询订单列表 (#46)
- Loading branch information
1 parent
8bbe05f
commit d456eb7
Showing
10 changed files
with
530 additions
and
1 deletion.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
...z/src/main/java/org/opengoofy/congomall/bff/biz/dto/resp/adapter/OrderAdapterRespDTO.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,57 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.opengoofy.congomall.bff.biz.dto.resp.adapter; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import lombok.Data; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
/** | ||
* 订单适配返回对象 | ||
* | ||
* @author chen.ma | ||
* @github <a href="https://github.com/opengoofy" /> | ||
* @公众号 马丁玩编程,关注回复:资料,领取后端技术专家成长手册 | ||
*/ | ||
@Data | ||
public class OrderAdapterRespDTO { | ||
|
||
private String orderId; | ||
|
||
private String orderStatus; | ||
|
||
private Integer orderTotal; | ||
|
||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") | ||
private Date payDate; | ||
|
||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") | ||
private Date closeDate; | ||
|
||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") | ||
private Date createDate; | ||
|
||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") | ||
private Date finishDate; | ||
|
||
private List<OrderGoodsAdapterRespDTO> goodsList; | ||
|
||
private OrderAddressAdapterRespDTO addressInfo; | ||
} |
43 changes: 43 additions & 0 deletions
43
...ain/java/org/opengoofy/congomall/bff/biz/dto/resp/adapter/OrderAddressAdapterRespDTO.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,43 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.opengoofy.congomall.bff.biz.dto.resp.adapter; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* 订单地址适配返回对象 | ||
* | ||
* @author chen.ma | ||
* @github <a href="https://github.com/opengoofy" /> | ||
* @公众号 马丁玩编程,关注回复:资料,领取后端技术专家成长手册 | ||
*/ | ||
@Data | ||
public class OrderAddressAdapterRespDTO { | ||
|
||
private String addressId; | ||
|
||
private Integer isDefault; | ||
|
||
private String streetName; | ||
|
||
private String tel; | ||
|
||
private String userId; | ||
|
||
private String userName; | ||
} |
45 changes: 45 additions & 0 deletions
45
.../main/java/org/opengoofy/congomall/bff/biz/dto/resp/adapter/OrderGoodsAdapterRespDTO.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,45 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.opengoofy.congomall.bff.biz.dto.resp.adapter; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* 订单商品适配返回对象 | ||
* | ||
* @author chen.ma | ||
* @github <a href="https://github.com/opengoofy" /> | ||
* @公众号 马丁玩编程,关注回复:资料,领取后端技术专家成长手册 | ||
*/ | ||
@Data | ||
public class OrderGoodsAdapterRespDTO { | ||
|
||
private Integer checked; | ||
|
||
private Integer limitNum; | ||
|
||
private String productId; | ||
|
||
private String productImg; | ||
|
||
private String productName; | ||
|
||
private Integer productNum; | ||
|
||
private Integer salePrice; | ||
} |
41 changes: 41 additions & 0 deletions
41
...main/java/org/opengoofy/congomall/bff/biz/dto/resp/adapter/OrderResultAdapterRespDTO.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,41 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.opengoofy.congomall.bff.biz.dto.resp.adapter; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 订单返回包装适配返回 | ||
* | ||
* @author chen.ma | ||
* @github <a href="https://github.com/opengoofy" /> | ||
* @公众号 马丁玩编程,关注回复:资料,领取后端技术专家成长手册 | ||
*/ | ||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class OrderResultAdapterRespDTO { | ||
|
||
private Integer total; | ||
|
||
private List<OrderAdapterRespDTO> data; | ||
} |
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
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
Oops, something went wrong.