From 8da201d092f8977d8407d2d49b248c28c45eee70 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 20 May 2021 17:53:47 +0800
Subject: [PATCH] modify
---
src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java | 6 +++---
src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java | 6 +++---
src/main/java/com/xcong/excoin/modules/otc/service/OtcOrderService.java | 6 +++---
src/main/java/com/xcong/excoin/modules/otc/dto/OtcOrderAddDto.java | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java
index ef94ab0..c582235 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java
@@ -4,8 +4,8 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xcong.excoin.common.response.Result;
import com.xcong.excoin.modules.otc.dto.HasPayDto;
-import com.xcong.excoin.modules.otc.dto.OrderAddDto;
import com.xcong.excoin.modules.otc.dto.OrderListDto;
+import com.xcong.excoin.modules.otc.dto.OtcOrderAddDto;
import com.xcong.excoin.modules.otc.service.OtcOrderService;
import com.xcong.excoin.modules.otc.vo.BuyOrderDetailVo;
import com.xcong.excoin.modules.otc.vo.OrderListVo;
@@ -32,14 +32,14 @@
@ApiOperation(value = "我要购买")
@PostMapping(value = "/buy")
- public Result buy(@RequestBody OrderAddDto orderAddDto) {
+ public Result buy(@RequestBody OtcOrderAddDto orderAddDto) {
otcOrderService.buyOrder(orderAddDto);
return Result.ok("购买成功");
}
@ApiOperation(value = "我要出售")
@PostMapping(value = "/sale")
- public Result sale(@RequestBody OrderAddDto orderAddDto) {
+ public Result sale(@RequestBody OtcOrderAddDto orderAddDto) {
otcOrderService.saleOrder(orderAddDto);
return Result.ok("出售成功");
}
diff --git a/src/main/java/com/xcong/excoin/modules/otc/dto/OrderAddDto.java b/src/main/java/com/xcong/excoin/modules/otc/dto/OtcOrderAddDto.java
similarity index 96%
rename from src/main/java/com/xcong/excoin/modules/otc/dto/OrderAddDto.java
rename to src/main/java/com/xcong/excoin/modules/otc/dto/OtcOrderAddDto.java
index 7ca2da0..91ee279 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/dto/OrderAddDto.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/dto/OtcOrderAddDto.java
@@ -10,7 +10,7 @@
@Data
@ApiModel(value = "OtcOrderAddDto", description = "提交订单接口参数接收类")
-public class OrderAddDto {
+public class OtcOrderAddDto {
@NotNull
@ApiModelProperty(value = "购买USDT数量", example = "120.00")
diff --git a/src/main/java/com/xcong/excoin/modules/otc/service/OtcOrderService.java b/src/main/java/com/xcong/excoin/modules/otc/service/OtcOrderService.java
index 34b64bd..673bb87 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/service/OtcOrderService.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/service/OtcOrderService.java
@@ -4,16 +4,16 @@
import com.baomidou.mybatisplus.extension.service.IService;
import com.xcong.excoin.common.response.Result;
import com.xcong.excoin.modules.otc.dto.HasPayDto;
-import com.xcong.excoin.modules.otc.dto.OrderAddDto;
import com.xcong.excoin.modules.otc.dto.OrderListDto;
+import com.xcong.excoin.modules.otc.dto.OtcOrderAddDto;
import com.xcong.excoin.modules.otc.entity.OtcOrder;
import com.xcong.excoin.modules.otc.vo.OrderListVo;
public interface OtcOrderService extends IService<OtcOrder> {
- void buyOrder(OrderAddDto orderAddDto);
+ void buyOrder(OtcOrderAddDto orderAddDto);
- void saleOrder(OrderAddDto orderAddDto);
+ void saleOrder(OtcOrderAddDto orderAddDto);
IPage<OrderListVo> findOrderListInPage(OrderListDto orderListDto);
diff --git a/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java b/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
index 476d7f1..e9379dc 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
@@ -19,8 +19,8 @@
import com.xcong.excoin.modules.otc.dao.OtcEntrustOrderDao;
import com.xcong.excoin.modules.otc.dao.OtcMarketBussinessDao;
import com.xcong.excoin.modules.otc.dto.HasPayDto;
-import com.xcong.excoin.modules.otc.dto.OrderAddDto;
import com.xcong.excoin.modules.otc.dto.OrderListDto;
+import com.xcong.excoin.modules.otc.dto.OtcOrderAddDto;
import com.xcong.excoin.modules.otc.entity.OtcEntrustOrder;
import com.xcong.excoin.modules.otc.entity.OtcMarketBussiness;
import com.xcong.excoin.modules.otc.entity.OtcOrder;
@@ -54,7 +54,7 @@
@Override
@Transactional(rollbackFor = Exception.class)
- public void buyOrder(OrderAddDto orderAddDto) {
+ public void buyOrder(OtcOrderAddDto orderAddDto) {
MemberEntity member = LoginUserUtils.getAppLoginUser();
OtcEntrustOrder entrustOrder = otcEntrustOrderDao.selectById(orderAddDto.getId());
if (entrustOrder == null) {
@@ -109,7 +109,7 @@
@Override
@Transactional(rollbackFor = Exception.class)
- public void saleOrder(OrderAddDto orderAddDto) {
+ public void saleOrder(OtcOrderAddDto orderAddDto) {
MemberEntity member = LoginUserUtils.getAppLoginUser();
OtcEntrustOrder entrustOrder = otcEntrustOrderDao.selectById(orderAddDto.getId());
if (entrustOrder == null) {
--
Gitblit v1.9.1