mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-25 02:32:57 +08:00
在线状态时事同步
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.xboe.api.vo;
|
||||
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.xboe.school.study.entity.StudyCourse;
|
||||
import lombok.Data;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Slf4j
|
||||
public class StudyCourseResult {
|
||||
private String error;
|
||||
private String message;
|
||||
private String permissions;
|
||||
private List<StudyCourse> result;
|
||||
private int status;
|
||||
private Date timestamp;
|
||||
|
||||
public StudyCourseResult success() {
|
||||
if (this.status != 200) {
|
||||
log.error("获取学习记录失败----{}", JSONUtil.toJsonPrettyStr(this));
|
||||
return null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user