From f31fc9f42f78de0808e7f4bdc797c5e622df09e3 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Wed, 10 Jun 2026 11:22:37 +0800
Subject: [PATCH] 1

---
 trading-order-admin/src/main/java/com/yami/trading/api/dto/OpenAction.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/trading-order-admin/src/main/java/com/yami/trading/api/dto/OpenAction.java b/trading-order-admin/src/main/java/com/yami/trading/api/dto/OpenAction.java
index 07932ae..9f03bb2 100644
--- a/trading-order-admin/src/main/java/com/yami/trading/api/dto/OpenAction.java
+++ b/trading-order-admin/src/main/java/com/yami/trading/api/dto/OpenAction.java
@@ -20,20 +20,20 @@
     /**
      * 仓位类型:0:逐仓 1:全仓
      */
-    private Integer locationType = 0;
+    private Integer locationType = 1;
 
     @NotBlank
     private String symbol;
     /**
      * direction "buy":多 "sell":空
      */
-    @Pattern(regexp="^(buy|sell)$",message = "请输入正确的方向")
+    @Pattern(regexp="^(buy|sell)$",message = "Please enter a valid direction")
     private String direction;
     /**
      * amount 委托数量(张)
      */
-    @NotNull(message = "委托数量(张)必填")
-    @DecimalMin(value = "0.00000001", message = "委托数量(张)不能小于0")
+    @NotNull(message = "Order quantity (lots) is required")
+    @DecimalMin(value = "0.00000001", message = "Order quantity cannot be less than 0")
     private BigDecimal amount;
     /**
      * lever_rate 杠杆倍数
@@ -44,8 +44,8 @@
     /**
      * price 交易价格
      */
-    @NotNull(message = "交易价格必填")
-    @DecimalMin(value = "0.00000001", message = "交易价格不能小于0")
+    @NotNull(message = "Price is required")
+    @DecimalMin(value = "0.00000001", message = "Price cannot be less than 0")
     private BigDecimal price;
 
     /**
@@ -63,7 +63,7 @@
      */
     @NotNull
     @JsonProperty("price_type")
-    @Pattern(regexp="^(limit|opponent)$",message = "请输入订单报价类型")
+    @Pattern(regexp="^(limit|opponent)$",message = "Please enter a valid order price type")
     private String price_type;
 
 

--
Gitblit v1.9.3