优化学员的学习记录删除

This commit is contained in:
none
2023-04-04 10:35:08 +08:00
parent af95beadad
commit ab9e8da4b8
7 changed files with 81 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
package xyz.playedu.api.event;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;
import java.util.Date;
/**
* @Author 杭州白书科技有限公司
* @create 2023/4/4 10:12
*/
@Getter
@Setter
public class UserCourseRecordDestroyEvent extends ApplicationEvent {
private Integer userId;
private Integer courseId;
private Date createdAt;
public UserCourseRecordDestroyEvent(Object source, Integer userId, Integer courseId) {
super(source);
this.userId = userId;
this.courseId = courseId;
this.createdAt = new Date();
}
}