增加课时观看进度记录

This commit is contained in:
none
2023-03-20 17:52:24 +08:00
parent 84bd4fdb55
commit efb3a69498
8 changed files with 248 additions and 26 deletions

View File

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