mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 00:15:06 +08:00
code review:拼团、秒杀活动的代码
This commit is contained in:
@ -3,8 +3,8 @@ package cn.iocoder.yudao.module.promotion.api.combination;
|
||||
import cn.iocoder.yudao.module.promotion.api.combination.dto.CombinationRecordCreateReqDTO;
|
||||
|
||||
import javax.validation.Valid;
|
||||
// TODO @芋艿:后面也再撸撸这几个接口
|
||||
|
||||
// TODO @芋艿:后面也再撸撸这几个接口
|
||||
/**
|
||||
* 拼团记录 API 接口
|
||||
*
|
||||
@ -17,17 +17,18 @@ public interface CombinationRecordApi {
|
||||
*
|
||||
* @param reqDTO 请求 DTO
|
||||
*/
|
||||
void createRecord(@Valid CombinationRecordCreateReqDTO reqDTO);
|
||||
void createCombinationRecord(@Valid CombinationRecordCreateReqDTO reqDTO);
|
||||
|
||||
/**
|
||||
* 校验拼团是否成功
|
||||
* 查询拼团记录是否成功
|
||||
*
|
||||
* @param userId 用户编号
|
||||
* @param orderId 订单编号
|
||||
* @return 拼团是否成功
|
||||
*/
|
||||
boolean validateRecordStatusIsSuccess(Long userId, Long orderId);
|
||||
boolean isCombinationRecordSuccess(Long userId, Long orderId);
|
||||
|
||||
// TODO @puhui999:updateRecordStatus 和 updateRecordStatusAndStartTime 看看后续是不是可以统一掉;
|
||||
/**
|
||||
* 更新开团记录状态
|
||||
*
|
||||
@ -35,7 +36,7 @@ public interface CombinationRecordApi {
|
||||
* @param orderId 订单编号
|
||||
* @param status 状态值
|
||||
*/
|
||||
void updateRecordStatus(Long userId, Long orderId, Integer status);
|
||||
void updateCombinationRecordStatus(Long userId, Long orderId, Integer status);
|
||||
|
||||
/**
|
||||
* 更新开团记录状态和开始时间
|
||||
@ -44,6 +45,6 @@ public interface CombinationRecordApi {
|
||||
* @param orderId 订单编号
|
||||
* @param status 状态值
|
||||
*/
|
||||
void updateRecordStatusAndStartTime(Long userId, Long orderId, Integer status);
|
||||
void updateCombinationRecordStatusAndStartTime(Long userId, Long orderId, Integer status);
|
||||
|
||||
}
|
||||
|
@ -5,8 +5,9 @@ import lombok.Data;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
// TODO @芋艿:这块要在看看
|
||||
/**
|
||||
* 拼团记录 Request DTO
|
||||
* 拼团记录的创建 Request DTO
|
||||
*
|
||||
* @author HUIHUI
|
||||
*/
|
||||
|
Reference in New Issue
Block a user