|
@@ -1,14 +1,12 @@
|
|
|
package com.zanxiang.sdk.domain.params;
|
|
|
|
|
|
-import com.fasterxml.jackson.annotation.JsonAlias;
|
|
|
-import com.sun.istack.NotNull;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
|
-import lombok.EqualsAndHashCode;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
-import java.io.Serializable;
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
/**
|
|
@@ -18,29 +16,135 @@ import java.math.BigDecimal;
|
|
|
* @date 2022/6/8 15:21
|
|
|
*/
|
|
|
@Data
|
|
|
-@EqualsAndHashCode(callSuper = true)
|
|
|
@NoArgsConstructor
|
|
|
@AllArgsConstructor
|
|
|
-public class ProductPayParam extends CommonParam implements Serializable {
|
|
|
+public class ProductPayParam {
|
|
|
|
|
|
- private static final long serialVersionUID = 1L;
|
|
|
+ /**
|
|
|
+ * 支付方式(1:支付宝 2:微信 3:米大师)
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "支付方式(1:支付宝 2:微信 3:米大师)")
|
|
|
+ @NotNull(message = "支付方式不可为空")
|
|
|
+ private Integer payWay;
|
|
|
|
|
|
- @ApiModelProperty("订单id")
|
|
|
- @JsonAlias("device-orderId")
|
|
|
- private String orderId;
|
|
|
+ /**
|
|
|
+ * 支付类型, 1:PC, 2: h5支付, 3: App支付, 4: 小程序支付, 5: 米大师支付
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "支付类型, 1:PC, 2: h5支付, 3: App支付, 4: 小程序支付, 5: 米大师支付")
|
|
|
+ @NotNull(message = "支付类型不可为空")
|
|
|
+ private Integer payDevice;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 商品ID
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "商品ID")
|
|
|
+ @NotBlank(message = "商品ID不可为空")
|
|
|
+ private String productId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 商品名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "商品名称")
|
|
|
+ @NotBlank(message = "商品名称不可为空")
|
|
|
+ private String productName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 商品描述
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "商品描述")
|
|
|
+ @NotBlank(message = "商品描述不可为空")
|
|
|
+ private String productDesc;
|
|
|
|
|
|
- @ApiModelProperty("金额")
|
|
|
+ /**
|
|
|
+ * 充值金额, 单位是元
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "充值金额, 单位是元")
|
|
|
+ @NotNull(message = "充值金额不可为空")
|
|
|
private BigDecimal amount;
|
|
|
|
|
|
- @ApiModelProperty("支付类型(1:支付宝 2:微信 3:银联)")
|
|
|
- @JsonAlias("payway")
|
|
|
- @NotNull
|
|
|
- private Integer payWay;
|
|
|
+ /**
|
|
|
+ * 兑换比例
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "兑换比例")
|
|
|
+ private Integer ratio;
|
|
|
|
|
|
- @ApiModelProperty("小程序支付code")
|
|
|
- private String code;
|
|
|
+ /**
|
|
|
+ * 购买数量
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "购买数量")
|
|
|
+ private Integer buyNum;
|
|
|
|
|
|
- @ApiModelProperty("支付方式 (1:PC, 2: h5支付, 3: App支付, 4: 小程序支付(微信小游戏), 5: 米大师支付(微信小游戏))")
|
|
|
- private Integer payDevice;
|
|
|
+ /**
|
|
|
+ * 虚拟币数量
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "虚拟币数量")
|
|
|
+ private Integer coinNum;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 游戏服务器id
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "游戏服务器id")
|
|
|
+ @NotBlank(message = "游戏服务器id不可为空")
|
|
|
+ private String serverId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 所在服务器名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "所在服务器名称")
|
|
|
+ @NotBlank(message = "所在服务器名称不可为空")
|
|
|
+ private String serverName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 角色id
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "角色id")
|
|
|
+ @NotBlank(message = "角色id不可为空")
|
|
|
+ private String roleId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 角色名称
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "角色名称")
|
|
|
+ @NotBlank(message = "角色名称不可为空")
|
|
|
+ private String roleName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 角色等级
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "角色等级")
|
|
|
+ @NotNull(message = "角色等级不可为空")
|
|
|
+ private Long roleLevel;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 充值回调
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "充值回调")
|
|
|
+ @NotNull(message = "充值回调不可为空")
|
|
|
+ private String payNotifyUrl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 角色VIP等级
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "角色VIP等级")
|
|
|
+ private Long roleVipLevel;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 订单id
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "订单id")
|
|
|
+ private String orderId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 扩展字段,充值回调时,原样返回
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "扩展字段,充值回调时,原样返回")
|
|
|
+ @NotNull(message = "扩展字段不可为空")
|
|
|
+ private String extension;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 小程序支付code
|
|
|
+ */
|
|
|
+ @ApiModelProperty(notes = "小程序支付code")
|
|
|
+ private String code;
|
|
|
|
|
|
}
|