mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
优化event的时间属性 && 新增线上课章节和课时的排序编辑apic
This commit is contained in:
@@ -20,10 +20,10 @@ public class AdminUserLoginEvent extends ApplicationEvent {
|
||||
|
||||
private Integer loginTimes;
|
||||
|
||||
public AdminUserLoginEvent(Object source, Integer adminId, Date loginAt, String token, String ip, Integer loginTimes) {
|
||||
public AdminUserLoginEvent(Object source, Integer adminId, String token, String ip, Integer loginTimes) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.loginAt = loginAt;
|
||||
this.loginAt = new Date();
|
||||
this.token = token;
|
||||
this.ip = ip;
|
||||
this.loginTimes = loginTimes;
|
||||
|
||||
@@ -16,13 +16,13 @@ public class CourseCategoryDestroyEvent extends ApplicationEvent {
|
||||
|
||||
private Integer adminId;
|
||||
private Integer categoryId;
|
||||
private Date at;
|
||||
private Date createdAt;
|
||||
|
||||
public CourseCategoryDestroyEvent(Object source, Integer adminId, Integer categoryId, Date date) {
|
||||
public CourseCategoryDestroyEvent(Object source, Integer adminId, Integer categoryId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.categoryId = categoryId;
|
||||
this.at = date;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,13 +16,13 @@ public class CourseChapterDestroyEvent extends ApplicationEvent {
|
||||
private Integer adminId;
|
||||
private Integer courseId;
|
||||
private Integer chapterId;
|
||||
private Date date;
|
||||
private Date createdAt;
|
||||
|
||||
public CourseChapterDestroyEvent(Object source, Integer adminId, Integer courseId, Integer chapterId, Date date) {
|
||||
public CourseChapterDestroyEvent(Object source, Integer adminId, Integer courseId, Integer chapterId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.courseId = courseId;
|
||||
this.chapterId = chapterId;
|
||||
this.date = date;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,13 +15,13 @@ import java.util.Date;
|
||||
public class CourseDestroyEvent extends ApplicationEvent {
|
||||
|
||||
private Integer courseId;
|
||||
private Date at;
|
||||
private Date createdAt;
|
||||
private Integer adminId;
|
||||
|
||||
public CourseDestroyEvent(Object source, Integer adminId, Integer courseId, Date date) {
|
||||
public CourseDestroyEvent(Object source, Integer adminId, Integer courseId) {
|
||||
super(source);
|
||||
this.courseId = courseId;
|
||||
this.at = date;
|
||||
this.createdAt = new Date();
|
||||
this.adminId = adminId;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,14 +17,14 @@ public class CourseHourCreatedEvent extends ApplicationEvent {
|
||||
private Integer hourId;
|
||||
private Integer courseId;
|
||||
private Integer chapterId;
|
||||
private Date date;
|
||||
private Date createdAt;
|
||||
|
||||
public CourseHourCreatedEvent(Object source, Integer adminId, Integer courseId, Integer chapterId, Integer hourId, Date date) {
|
||||
public CourseHourCreatedEvent(Object source, Integer adminId, Integer courseId, Integer chapterId, Integer hourId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.courseId = courseId;
|
||||
this.chapterId = chapterId;
|
||||
this.hourId = hourId;
|
||||
this.date = date;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,14 +17,14 @@ public class CourseHourDestroyEvent extends ApplicationEvent {
|
||||
private Integer hourId;
|
||||
private Integer courseId;
|
||||
private Integer chapterId;
|
||||
private Date date;
|
||||
private Date createdAt;
|
||||
|
||||
public CourseHourDestroyEvent(Object source, Integer adminId, Integer courseId, Integer chapterId, Integer hourId, Date date) {
|
||||
public CourseHourDestroyEvent(Object source, Integer adminId, Integer courseId, Integer chapterId, Integer hourId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.courseId = courseId;
|
||||
this.chapterId = chapterId;
|
||||
this.hourId = hourId;
|
||||
this.date = date;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,12 +16,12 @@ public class DepartmentDestroyEvent extends ApplicationEvent {
|
||||
|
||||
private Integer depId;
|
||||
private Integer adminId;
|
||||
private Date at;
|
||||
private Date createdAt;
|
||||
|
||||
public DepartmentDestroyEvent(Object source, Integer adminId, Integer depId, Date date) {
|
||||
public DepartmentDestroyEvent(Object source, Integer adminId, Integer depId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.depId = depId;
|
||||
this.at = date;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,12 +16,12 @@ public class ResourceCategoryDestroyEvent extends ApplicationEvent {
|
||||
|
||||
private Integer adminId;
|
||||
private Integer categoryId;
|
||||
private Date date;
|
||||
private Date createdAt;
|
||||
|
||||
public ResourceCategoryDestroyEvent(Object source, Integer adminId, Integer categoryId, Date date) {
|
||||
public ResourceCategoryDestroyEvent(Object source, Integer adminId, Integer categoryId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.categoryId = categoryId;
|
||||
this.date = date;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,11 +15,11 @@ import java.util.Date;
|
||||
public class UserDestroyEvent extends ApplicationEvent {
|
||||
|
||||
private Integer userId;
|
||||
private Date at;
|
||||
private Date createdAt;
|
||||
|
||||
public UserDestroyEvent(Object source, Integer userId, Date date) {
|
||||
public UserDestroyEvent(Object source, Integer userId) {
|
||||
super(source);
|
||||
this.userId = userId;
|
||||
this.at = date;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,14 +27,14 @@ public class UserLoginEvent extends ApplicationEvent {
|
||||
|
||||
private UserAgent userAgent;
|
||||
|
||||
public UserLoginEvent(Object source, Integer userId,String email, Date loginAt, String token, String ip, UserAgent userAgent) {
|
||||
public UserLoginEvent(Object source, Integer userId, String email, String token, String ip, UserAgent userAgent) {
|
||||
super(source);
|
||||
this.userId = userId;
|
||||
this.email = email;
|
||||
this.loginAt = loginAt;
|
||||
this.token = token;
|
||||
this.ip = ip;
|
||||
this.userAgent = userAgent;
|
||||
this.loginAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user