mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-26 04:39:26 +08:00
代码格式化
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -20,7 +25,8 @@ public class AdminUserLoginEvent extends ApplicationEvent {
|
||||
|
||||
private Integer loginTimes;
|
||||
|
||||
public AdminUserLoginEvent(Object source, Integer adminId, 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 = new Date();
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/24 14:01
|
||||
*/
|
||||
@Setter
|
||||
@@ -24,5 +30,4 @@ public class CourseCategoryDestroyEvent extends ApplicationEvent {
|
||||
this.categoryId = categoryId;
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/26 17:42
|
||||
*/
|
||||
@Getter
|
||||
@@ -18,7 +24,8 @@ public class CourseChapterDestroyEvent extends ApplicationEvent {
|
||||
private Integer chapterId;
|
||||
private Date createdAt;
|
||||
|
||||
public CourseChapterDestroyEvent(Object source, Integer adminId, Integer courseId, Integer chapterId) {
|
||||
public CourseChapterDestroyEvent(
|
||||
Object source, Integer adminId, Integer courseId, Integer chapterId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.courseId = courseId;
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/24 14:31
|
||||
*/
|
||||
@Getter
|
||||
@@ -24,5 +30,4 @@ public class CourseDestroyEvent extends ApplicationEvent {
|
||||
this.createdAt = new Date();
|
||||
this.adminId = adminId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/26 18:20
|
||||
*/
|
||||
@Setter
|
||||
@@ -19,7 +25,8 @@ public class CourseHourCreatedEvent extends ApplicationEvent {
|
||||
private Integer chapterId;
|
||||
private Date createdAt;
|
||||
|
||||
public CourseHourCreatedEvent(Object source, Integer adminId, Integer courseId, Integer chapterId, Integer hourId) {
|
||||
public CourseHourCreatedEvent(
|
||||
Object source, Integer adminId, Integer courseId, Integer chapterId, Integer hourId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.courseId = courseId;
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/26 17:52
|
||||
*/
|
||||
@Getter
|
||||
@@ -19,7 +25,8 @@ public class CourseHourDestroyEvent extends ApplicationEvent {
|
||||
private Integer chapterId;
|
||||
private Date createdAt;
|
||||
|
||||
public CourseHourDestroyEvent(Object source, Integer adminId, Integer courseId, Integer chapterId, Integer hourId) {
|
||||
public CourseHourDestroyEvent(
|
||||
Object source, Integer adminId, Integer courseId, Integer chapterId, Integer hourId) {
|
||||
super(source);
|
||||
this.adminId = adminId;
|
||||
this.courseId = courseId;
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/23 15:27
|
||||
*/
|
||||
@Getter
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/26 17:10
|
||||
*/
|
||||
@Getter
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
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
|
||||
@@ -18,7 +24,8 @@ public class UserCourseHourFinishedEvent extends ApplicationEvent {
|
||||
private Integer hourId;
|
||||
private Date createdAt;
|
||||
|
||||
public UserCourseHourFinishedEvent(Object source, Integer userId, Integer courseId, Integer hourId) {
|
||||
public UserCourseHourFinishedEvent(
|
||||
Object source, Integer userId, Integer courseId, Integer hourId) {
|
||||
super(source);
|
||||
this.userId = userId;
|
||||
this.courseId = courseId;
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
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
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/23 13:51
|
||||
*/
|
||||
@Getter
|
||||
|
||||
@@ -1,13 +1,17 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/3/22 14:14
|
||||
*/
|
||||
@Setter
|
||||
@@ -20,7 +24,13 @@ public class UserLearnCourseUpdateEvent extends ApplicationEvent {
|
||||
private Long startAt;
|
||||
private Long endAt;
|
||||
|
||||
public UserLearnCourseUpdateEvent(Object source, Integer userId, Integer courseId, Integer hourId, Long startTime, Long endTime) {
|
||||
public UserLearnCourseUpdateEvent(
|
||||
Object source,
|
||||
Integer userId,
|
||||
Integer courseId,
|
||||
Integer hourId,
|
||||
Long startTime,
|
||||
Long endTime) {
|
||||
super(source);
|
||||
this.userId = userId;
|
||||
this.courseId = courseId;
|
||||
|
||||
@@ -1,14 +1,21 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import cn.hutool.http.useragent.UserAgent;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/3/10 13:22
|
||||
*/
|
||||
@Setter
|
||||
@@ -27,7 +34,13 @@ public class UserLoginEvent extends ApplicationEvent {
|
||||
|
||||
private UserAgent userAgent;
|
||||
|
||||
public UserLoginEvent(Object source, Integer userId, String email, 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;
|
||||
@@ -37,4 +50,3 @@ public class UserLoginEvent extends ApplicationEvent {
|
||||
this.loginAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
/**
|
||||
* This file is part of the PlayEdu.
|
||||
* (c) 杭州白书科技有限公司
|
||||
*/
|
||||
package xyz.playedu.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/3/21 14:31
|
||||
*/
|
||||
@Setter
|
||||
|
||||
Reference in New Issue
Block a user