This commit is contained in:
六如
2024-12-02 23:03:25 +08:00
parent c0cfdbafd9
commit 942826f4b0
107 changed files with 247 additions and 3432 deletions

View File

@@ -21,13 +21,13 @@ public class PayTradeWapPayRequest {
@ApiModelProperty(value = "商户网站唯一订单号", required = true, example = "70501111111S001111119")
@Length(max = 64)
@NotBlank
private String out_trade_no;
@NotBlank(message = "商户网站唯一订单号必填")
private String outTradeNo;
@ApiModelProperty(value = "订单总金额.单位为元,精确到小数点后两位,取值范围:[0.01,100000000] ",
required = true, example = "9.00")
@NotNull
private BigDecimal total_amount;
@NotNull(message = "订单总金额不能为空")
private BigDecimal totalAmount;
@ApiModelProperty(
@@ -36,7 +36,7 @@ public class PayTradeWapPayRequest {
example = "大乐透"
)
@Length(max = 256)
@NotBlank
@NotBlank(message = "订单标题不能为空")
private String subject;
@ApiModelProperty(
@@ -44,9 +44,9 @@ public class PayTradeWapPayRequest {
required = true,
example = "QUICK_WAP_WAY"
)
@NotBlank
@NotBlank(message = "销售产品码不能为空")
@Length(max = 64)
private String product_code;
private String productCode;
@ApiModelProperty(
@@ -54,7 +54,7 @@ public class PayTradeWapPayRequest {
example = "appopenBb64d181d0146481ab6a762c00714cC27"
)
@Length(max = 40)
private String auth_token;
private String authToken;
@ApiModelProperty(
value = "用户付款中途退出返回商户网站的地址",
@@ -66,21 +66,21 @@ public class PayTradeWapPayRequest {
@ApiModelProperty(
value = "订单包含的商品列表信息json格式其它说明详见商品明细说明"
)
private List<GoodsDetail> goods_detail;
private List<GoodsDetail> goodsDetail;
@ApiModelProperty(
value = "绝对超时时间格式为yyyy-MM-dd HH:mm:ss。超时时间范围1m~15d。",
example = "2016-12-31 10:05:00"
)
@Length(max = 32)
private String time_expire;
private String timeExpire;
@ApiModelProperty(
value = "商户传入业务信息具体值要和支付平台约定应用于安全营销等参数直传场景格式为json格式",
example = "{\"mc_create_trade_ip\":\"127.0.0.1\"}"
)
@Length(max = 512)
private String business_params;
private String businessParams;
@ApiModelProperty(
@@ -88,14 +88,14 @@ public class PayTradeWapPayRequest {
example = "merchantBizType%3d3C%26merchantBizNo%3d2016010101111"
)
@Length(max = 512)
private String passback_params;
private String passbackParams;
@ApiModelProperty(
value = "商户原始订单号最大长度限制32位",
example = "{\"mc_create_trade_ip\":\"127.0.0.1\"}"
)
@Length(max = 32)
private String merchant_order_no;
private String merchantOrderNo;
// ---
@@ -108,7 +108,7 @@ public class PayTradeWapPayRequest {
)
@NotBlank
@Length(max = 64)
private String goods_id;
private String goodsId;
@ApiModelProperty(
@@ -118,7 +118,7 @@ public class PayTradeWapPayRequest {
)
@NotBlank
@Length(max = 256)
private String goods_name;
private String goodsName;
@ApiModelProperty(
value = "商品数量",
@@ -141,21 +141,21 @@ public class PayTradeWapPayRequest {
example = "20010001"
)
@Length(max = 32)
private String alipay_goods_id;
private String alipayGoodsId;
@ApiModelProperty(
value = "商品类目",
example = "34543238"
)
@Length(max = 24)
private String goods_category;
private String goodsCategory;
@ApiModelProperty(
value = "商品类目树从商品类目根节点到叶子节点的类目id组成类目id值使用|分割",
example = "124868003|126232002|126252004"
)
@Length(max = 128)
private String categories_tree;
private String categoriesTree;
@ApiModelProperty(
value = "商品描述信息",
@@ -169,7 +169,7 @@ public class PayTradeWapPayRequest {
example = "http://www.alipay.com/xxx.jpg"
)
@Length(max = 400)
private String show_url;
private String showUrl;
}

View File

@@ -2,7 +2,7 @@ package com.gitee.sop.storyweb.impl;
import com.gitee.sop.storyweb.message.StoryMessageEnum;
import com.gitee.sop.storyweb.open.OpenStory;
import com.gitee.sop.storyweb.open.req.StorySaveDTO;
import com.gitee.sop.storyweb.open.req.StorySaveRequest;
import com.gitee.sop.storyweb.open.resp.StoryResponse;
import com.gitee.sop.support.context.OpenContext;
import com.gitee.sop.support.dto.CommonFileData;
@@ -29,13 +29,13 @@ public class OpenStoryImpl implements OpenStory {
@Override
public Integer save(StorySaveDTO storySaveDTO) {
public Integer save(StorySaveRequest storySaveDTO) {
return 1;
}
@Override
public Integer update(Integer id, StorySaveDTO storySaveDTO) {
public Integer update(Integer id, StorySaveRequest storySaveDTO) {
System.out.println("update, id:" + id + ", storySaveDTO=" + storySaveDTO);
return 1;
}
@@ -84,7 +84,7 @@ public class OpenStoryImpl implements OpenStory {
}
@Override
public StoryResponse upload(StorySaveDTO storySaveDTO, FileData file) {
public StoryResponse upload(StorySaveRequest storySaveDTO, FileData file) {
System.out.println("getName:" + file.getName());
System.out.println("getOriginalFilename:" + file.getOriginalFilename());
checkFile(Arrays.asList(file));
@@ -97,7 +97,7 @@ public class OpenStoryImpl implements OpenStory {
@Override
public StoryResponse upload2(StorySaveDTO storySaveDTO, FileData idCardFront, FileData idCardBack) {
public StoryResponse upload2(StorySaveRequest storySaveDTO, FileData idCardFront, FileData idCardBack) {
List<String> list = new ArrayList<>();
System.out.println("upload:" + storySaveDTO);
checkFile(Arrays.asList(idCardFront, idCardBack));
@@ -109,7 +109,7 @@ public class OpenStoryImpl implements OpenStory {
}
@Override
public StoryResponse upload3(StorySaveDTO storySaveDTO, List<FileData> files) {
public StoryResponse upload3(StorySaveRequest storySaveDTO, List<FileData> files) {
List<String> list = new ArrayList<>();
list.add("upload:" + storySaveDTO);
checkFile(files);

View File

@@ -1,6 +1,6 @@
package com.gitee.sop.storyweb.open;
import com.gitee.sop.storyweb.open.req.StorySaveDTO;
import com.gitee.sop.storyweb.open.req.StorySaveRequest;
import com.gitee.sop.storyweb.open.resp.StoryResponse;
import com.gitee.sop.support.annotation.Open;
import com.gitee.sop.support.context.OpenContext;
@@ -18,10 +18,10 @@ import java.util.List;
public interface OpenStory {
@Open("story.save")
Integer save(StorySaveDTO storySaveDTO);
Integer save(StorySaveRequest storySaveRequest);
@Open("story.update")
Integer update(Integer id, StorySaveDTO storySaveDTO);
Integer update(Integer id, StorySaveRequest storySaveRequest);
// 演示抛出异常
@Open("story.updateError")
@@ -48,12 +48,12 @@ public interface OpenStory {
// 演示单文件上传
@Open("story.upload")
StoryResponse upload(StorySaveDTO storySaveDTO, FileData file);
StoryResponse upload(StorySaveRequest storySaveRequest, FileData file);
// 演示多文件上传
@Open("story.upload.more")
StoryResponse upload2(
StorySaveDTO storySaveDTO,
StorySaveRequest storySaveRequest,
@NotNull(message = "身份证正面必填") FileData idCardFront,
@NotNull(message = "身份证背面必填") FileData idCardBack
);
@@ -61,7 +61,7 @@ public interface OpenStory {
// 演示多文件上传
@Open("story.upload.list")
StoryResponse upload3(
StorySaveDTO storySaveDTO,
StorySaveRequest storySaveRequest,
@Size(min = 2, message = "最少上传2个文件")
List<FileData> files
);

View File

@@ -11,7 +11,7 @@ import java.util.Date;
* @author 六如
*/
@Data
public class StorySaveDTO implements Serializable {
public class StorySaveRequest implements Serializable {
private static final long serialVersionUID = -1214422742659231037L;
@NotBlank(message = "故事名称必填")