-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Gateway17001.java to gdbigdata-gateway-17001
- Loading branch information
Showing
3 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
bigdata/gdbigdata-access-real-server-v2/src/main/java/edu/jnu/entity/AddUserVO.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package edu.jnu.entity; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.validator.constraints.Length; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
||
/** | ||
* @作者: 郭梓繁 | ||
* @邮箱: [email protected] | ||
* @版本: 1.0 | ||
* @创建日期: 2023年04月26日 16时43分 | ||
* @功能描述: 添加用户信息的接口实体类 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class AddUserVO { | ||
@NotBlank(message = "用户名至少需要有一个非空白字符") | ||
@Length(min = 1, max = 2500, message = "字符串的长度应该是1~2500") | ||
private String userName; | ||
@NotBlank(message = "用户住址至少需要有一个非空白字符") | ||
@Length(min = 1, max = 2500, message = "字符串的长度应该是1~2500") | ||
private String userAddress; | ||
@NotBlank(message = "用户组织至少需要有一个非空白字符") | ||
@Length(min = 1, max = 2500, message = "用户组织字符串的长度应该是1~2500") | ||
private String userOrganization; | ||
@NotBlank(message = "用户文件数量至少需要有一个非空白字符") | ||
@Length(min = 1, max = 2500, message = "用户文件数量字符串的长度应该是1~2500") | ||
private String userFileNums; | ||
} |
23 changes: 23 additions & 0 deletions
23
...server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
edu\jnu\PO\TagFileInfoPO.class | ||
edu\jnu\service\OSSService.class | ||
edu\jnu\controller\StorageApi.class | ||
edu\jnu\VO\ProofIntegrityVO.class | ||
edu\jnu\config\Swagger3Config.class | ||
edu\jnu\config\OssConfig.class | ||
edu\jnu\VO\IntegerityProof.class | ||
edu\jnu\service\SepdpProofService.class | ||
edu\jnu\service\TagFileService.class | ||
edu\jnu\controller\ProofApi.class | ||
edu\jnu\dao\DataFileInfoDAO.class | ||
edu\jnu\POJO\DataFileInfo.class | ||
edu\jnu\utils\Tools.class | ||
edu\jnu\AuditCspServer.class | ||
edu\jnu\service\FilePositionService.class | ||
edu\jnu\VO\UploadFileVO.class | ||
edu\jnu\service\OSSFactory.class | ||
edu\jnu\dao\TagFileInfoDAO.class | ||
edu\jnu\dao\FilePositionDao.class | ||
edu\jnu\PO\DataFileInfoPO.class | ||
edu\jnu\service\DataFileService.class | ||
edu\jnu\VO\GetFileListVO.class | ||
edu\jnu\DTO\DataFileInfoDTO.class |
56 changes: 56 additions & 0 deletions
56
bigdata/gdbigdata-tempserver/src/main/java/edu/jnu/config/response/JsonResponse.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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package edu.jnu.config.response; | ||
|
||
import edu.jnu.enums.ResponseEnum; | ||
|
||
/** | ||
* @author Guo zifan | ||
* @date 2022年01月24日 19:14 | ||
*/ | ||
public class JsonResponse<T> { | ||
private int code; | ||
private String msg; | ||
private T data; | ||
|
||
public JsonResponse(int code, String msg) { | ||
this.code = code; | ||
this.msg = msg; | ||
this.data = null; | ||
} | ||
|
||
// 数据默认返回null | ||
public JsonResponse(ResponseEnum responseEnum) { | ||
this.data = null; | ||
this.code = responseEnum.getCode(); | ||
this.msg = responseEnum.getErrMsg(); | ||
} | ||
|
||
public JsonResponse(ResponseEnum responseEnum, T data) { | ||
this.data = data; | ||
this.code = responseEnum.getCode(); | ||
this.msg = responseEnum.getErrMsg(); | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public void setCode(int code) { | ||
this.code = code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
|
||
public void setMsg(String msg) { | ||
this.msg = msg; | ||
} | ||
|
||
public T getData() { | ||
return data; | ||
} | ||
|
||
public void setData(T data) { | ||
this.data = data; | ||
} | ||
} |