实现文件上传和数据库记录、Element+vue登录注册UI
This commit is contained in:
93
src/main/java/com/fjy/spring/domain/TbFile.java
Normal file
93
src/main/java/com/fjy/spring/domain/TbFile.java
Normal file
@@ -0,0 +1,93 @@
|
||||
package com.fjy.spring.domain;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class TbFile {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private int colfileid;
|
||||
|
||||
private int coluserid;
|
||||
|
||||
//private String coltime;
|
||||
|
||||
private String colip;
|
||||
|
||||
private String colrealname;
|
||||
|
||||
private String colfilename;
|
||||
|
||||
private String colfilesize;
|
||||
|
||||
private String colfilepath;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TbFile{" +
|
||||
"colip='" + colip + '\'' +
|
||||
", colrealname='" + colrealname + '\'' +
|
||||
", colfilename='" + colfilename + '\'' +
|
||||
", colfilesize='" + colfilesize + '\'' +
|
||||
", colfilepath='" + colfilepath + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
public int getColfileid() {
|
||||
return colfileid;
|
||||
}
|
||||
|
||||
public void setColfileid(int colfileid) {
|
||||
this.colfileid = colfileid;
|
||||
}
|
||||
|
||||
public int getColuserid() {
|
||||
return coluserid;
|
||||
}
|
||||
|
||||
public void setColuserid(int coluserid) {
|
||||
this.coluserid = coluserid;
|
||||
}
|
||||
|
||||
public String getColip() {
|
||||
return colip;
|
||||
}
|
||||
|
||||
public void setColip(String colip) {
|
||||
this.colip = colip;
|
||||
}
|
||||
|
||||
public String getColrealname() {
|
||||
return colrealname;
|
||||
}
|
||||
|
||||
public void setColrealname(String colrealname) {
|
||||
this.colrealname = colrealname;
|
||||
}
|
||||
|
||||
public String getColfilename() {
|
||||
return colfilename;
|
||||
}
|
||||
|
||||
public void setColfilename(String colfilename) {
|
||||
this.colfilename = colfilename;
|
||||
}
|
||||
|
||||
public String getColfilesize() {
|
||||
return colfilesize;
|
||||
}
|
||||
|
||||
public void setColfilesize(String colfilesize) {
|
||||
this.colfilesize = colfilesize;
|
||||
}
|
||||
|
||||
public String getColfilepath() {
|
||||
return colfilepath;
|
||||
}
|
||||
|
||||
public void setColfilepath(String colfilepath) {
|
||||
this.colfilepath = colfilepath;
|
||||
}
|
||||
}
|
||||
@@ -2,17 +2,21 @@ package com.fjy.spring.domain;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Entity
|
||||
public class TbUser {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private Integer coluserid;
|
||||
|
||||
@NotNull(message = "用户名必填")
|
||||
private String colname;
|
||||
@NotNull(message = "密码不能为空")
|
||||
private String colpassword;
|
||||
private String colemail;
|
||||
@NotNull(message = "学号必填")
|
||||
private String colstudentno;
|
||||
@NotNull(message = "真实姓名必填")
|
||||
private String colrealname;
|
||||
|
||||
public Integer getColuserid() {
|
||||
|
||||
Reference in New Issue
Block a user