Skip to content

Commit

Permalink
Add Gateway17001.java to gdbigdata-gateway-17001
Browse files Browse the repository at this point in the history
  • Loading branch information
826148267 committed May 18, 2024
1 parent 0e663af commit 5480f4a
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 0 deletions.
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;
}
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
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;
}
}

0 comments on commit 5480f4a

Please sign in to comment.