-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
42 changed files
with
2,572 additions
and
1,589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
84 changes: 42 additions & 42 deletions
84
sduoj-judger-interface/src/main/java/cn/edu/sdu/qd/oj/judger/dto/BaseDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
/* | ||
* Copyright 2020-2020 the original author or authors. | ||
* | ||
* Licensed under the General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/gpl-3.0.en.html | ||
*/ | ||
|
||
package cn.edu.sdu.qd.oj.judger.dto; | ||
|
||
import cn.edu.sdu.qd.oj.judger.util.NoNullFieldStringStyle; | ||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @ClassName BaseDTO | ||
* @Description TODO | ||
* @Author zhangt2333 | ||
* @Date 2020/9/7 16:26 | ||
* @Version V1.0 | ||
**/ | ||
|
||
public class BaseDTO implements Serializable, Cloneable { | ||
@Override | ||
public String toString() { | ||
return ToStringBuilder.reflectionToString(this, new NoNullFieldStringStyle()); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
return EqualsBuilder.reflectionEquals(this, obj, false); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return HashCodeBuilder.reflectionHashCode(this, false); | ||
} | ||
/* | ||
* Copyright 2020-2020 the original author or authors. | ||
* | ||
* Licensed under the General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/gpl-3.0.en.html | ||
*/ | ||
|
||
package cn.edu.sdu.qd.oj.judger.dto; | ||
|
||
import cn.edu.sdu.qd.oj.judger.util.NoNullFieldStringStyle; | ||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @ClassName BaseDTO | ||
* @Description TODO | ||
* @Author zhangt2333 | ||
* @Date 2020/9/7 16:26 | ||
* @Version V1.0 | ||
**/ | ||
|
||
public class BaseDTO implements Serializable, Cloneable { | ||
@Override | ||
public String toString() { | ||
return ToStringBuilder.reflectionToString(this, new NoNullFieldStringStyle()); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
return EqualsBuilder.reflectionEquals(this, obj, false); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return HashCodeBuilder.reflectionHashCode(this, false); | ||
} | ||
} |
34 changes: 22 additions & 12 deletions
34
sduoj-judger-interface/src/main/java/cn/edu/sdu/qd/oj/judger/dto/CommandExecuteResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
package cn.edu.sdu.qd.oj.judger.dto; | ||
|
||
import lombok.*; | ||
|
||
@Getter | ||
public class CommandExecuteResult<V> extends BaseDTO { | ||
|
||
private final V result; | ||
|
||
public CommandExecuteResult(V result) { | ||
this.result = result; | ||
} | ||
/* | ||
* Copyright 2020-2020 the original author or authors. | ||
* | ||
* Licensed under the General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/gpl-3.0.en.html | ||
*/ | ||
|
||
package cn.edu.sdu.qd.oj.judger.dto; | ||
|
||
import lombok.*; | ||
|
||
@Getter | ||
public class CommandExecuteResult<V> extends BaseDTO { | ||
|
||
private final V result; | ||
|
||
public CommandExecuteResult(V result) { | ||
this.result = result; | ||
} | ||
} |
36 changes: 23 additions & 13 deletions
36
sduoj-judger-interface/src/main/java/cn/edu/sdu/qd/oj/judger/dto/UserDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
package cn.edu.sdu.qd.oj.judger.dto; | ||
|
||
import lombok.*; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
public class UserDTO extends BaseDTO { | ||
private String username; | ||
private String password; | ||
} | ||
/* | ||
* Copyright 2020-2020 the original author or authors. | ||
* | ||
* Licensed under the General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/gpl-3.0.en.html | ||
*/ | ||
|
||
package cn.edu.sdu.qd.oj.judger.dto; | ||
|
||
import lombok.*; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
public class UserDTO extends BaseDTO { | ||
private String username; | ||
private String password; | ||
} |
48 changes: 29 additions & 19 deletions
48
...dger-interface/src/main/java/cn/edu/sdu/qd/oj/judger/exception/CompileErrorException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
package cn.edu.sdu.qd.oj.judger.exception; | ||
|
||
public class CompileErrorException extends Exception { | ||
public CompileErrorException() { | ||
super(); | ||
} | ||
|
||
public CompileErrorException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public CompileErrorException(String message) { | ||
super(message); | ||
} | ||
|
||
public CompileErrorException(Throwable cause) { | ||
super(cause); | ||
} | ||
} | ||
/* | ||
* Copyright 2020-2020 the original author or authors. | ||
* | ||
* Licensed under the General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/gpl-3.0.en.html | ||
*/ | ||
|
||
package cn.edu.sdu.qd.oj.judger.exception; | ||
|
||
public class CompileErrorException extends Exception { | ||
public CompileErrorException() { | ||
super(); | ||
} | ||
|
||
public CompileErrorException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public CompileErrorException(String message) { | ||
super(message); | ||
} | ||
|
||
public CompileErrorException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
48 changes: 29 additions & 19 deletions
48
...udger-interface/src/main/java/cn/edu/sdu/qd/oj/judger/exception/SystemErrorException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
package cn.edu.sdu.qd.oj.judger.exception; | ||
|
||
public class SystemErrorException extends Exception { | ||
public SystemErrorException() { | ||
super(); | ||
} | ||
|
||
public SystemErrorException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public SystemErrorException(String message) { | ||
super(message); | ||
} | ||
|
||
public SystemErrorException(Throwable cause) { | ||
super(cause); | ||
} | ||
} | ||
/* | ||
* Copyright 2020-2020 the original author or authors. | ||
* | ||
* Licensed under the General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/gpl-3.0.en.html | ||
*/ | ||
|
||
package cn.edu.sdu.qd.oj.judger.exception; | ||
|
||
public class SystemErrorException extends Exception { | ||
public SystemErrorException() { | ||
super(); | ||
} | ||
|
||
public SystemErrorException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public SystemErrorException(String message) { | ||
super(message); | ||
} | ||
|
||
public SystemErrorException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
Oops, something went wrong.