mall + promotion:增加砍价记录的 mock

This commit is contained in:
YunaiV 2023-06-23 00:26:04 +08:00
parent f5b2bb4d7d
commit b0fcd96dfe
2 changed files with 2 additions and 25 deletions

View File

@ -61,8 +61,6 @@ public class AppBargainRecordController {
detail.setPrice(200); detail.setPrice(200);
detail.setPayPrice(180); detail.setPayPrice(180);
detail.setStatus(1); detail.setStatus(1);
detail.setAction(AppBargainRecordDetailRespVO.ACTION_ORDER_CREATE);
detail.setHelpAction(AppBargainRecordDetailRespVO.HELP_ACTION_NONE);
detail.setExpireTime(LocalDateTimeUtils.addTime(Duration.ofDays(2))); detail.setExpireTime(LocalDateTimeUtils.addTime(Duration.ofDays(2)));
return success(detail); return success(detail);
} }

View File

@ -9,12 +9,6 @@ import java.time.LocalDateTime;
@Data @Data
public class AppBargainRecordDetailRespVO { public class AppBargainRecordDetailRespVO {
public static final int ACTION_NONE = 1; // 参与动作 - 未参与可参与
public static final int ACTION_WAITING = 2; // 参与动作 - 参与中等待砍价
public static final int ACTION_SUCCESS = 3; // 参与动作 - 砍价成功待下单
public static final int ACTION_ORDER_CREATE = 4; // 参与动作 - 已下单未付款
public static final int ACTION_ORDER_PAY = 5; // 参与动作 - 已下单已付款
public static final int HELP_ACTION_NONE = 1; // 帮砍动作 - 未帮砍可以帮砍 public static final int HELP_ACTION_NONE = 1; // 帮砍动作 - 未帮砍可以帮砍
public static final int HELP_ACTION_FULL = 2; // 帮砍动作 - 未帮砍无法帮砍可帮砍次数已满) public static final int HELP_ACTION_FULL = 2; // 帮砍动作 - 未帮砍无法帮砍可帮砍次数已满)
public static final int HELP_ACTION_SUCCESS = 3; // 帮砍动作 - 已帮砍 public static final int HELP_ACTION_SUCCESS = 3; // 帮砍动作 - 已帮砍
@ -31,24 +25,9 @@ public class AppBargainRecordDetailRespVO {
private LocalDateTime expireTime; private LocalDateTime expireTime;
private Long orderId; // 有且仅在自己的订单才返回 private Long orderId;
private Boolean payStatus;
private Integer action;
private Integer helpAction; private Integer helpAction;
// 未参与1-可以参与砍价storeBargainUser 为空
// 未参与2-参与次数已满storeBargainUser 为空但是砍价次数已满storeBargainUser 非空已支付但是砍价次数已满 TODO 芋艿这个就不做了
// 参与中3-砍价中storeBargainUser 非空人数未满
// 参与中4-已完成storeBargainUser 非空未创建订单
// 支付的情况
// 8-已生成订单未支付storeBargainUser 不为空status = 3但是订单未支付
// 9-已支付storeBargainUser 不为空status = 3且订单已支付
// 10-取消支付storeBargainUser 不为空status = 3取消支付可忽略
// help 的情况
// 5-可以帮砍 3 对应
// 6-已帮砍其他人的有帮砍过
// 7-帮砍次数已满其他人的帮砍次数已满
} }