-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
41 additions
and
59 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
43 changes: 26 additions & 17 deletions
43
WebServer/src/main/java/com/example/filesystem/pojo/bo/UserUpdateBo.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,46 +1,55 @@ | ||
package com.example.filesystem.pojo.bo; | ||
|
||
import com.example.filesystem.pojo.User; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 2023-11-28 zhuxinyu | ||
* 用户修改实体类 | ||
*/ | ||
public class UserUpdateBo implements Serializable { | ||
private String token; | ||
private User user;//用户User | ||
private Long id; | ||
private Long grade; | ||
private String org; | ||
public UserUpdateBo(){ | ||
|
||
} | ||
|
||
public UserUpdateBo(String token, User user) { | ||
this.token = token; | ||
this.user = user; | ||
public UserUpdateBo(Long id, Long grade, String org) { | ||
this.id = id; | ||
this.grade = grade; | ||
this.org = org; | ||
} | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getToken() { | ||
return token; | ||
public Long getGrade() { | ||
return grade; | ||
} | ||
|
||
public void setToken(String token) { | ||
this.token = token; | ||
public void setGrade(Long grade) { | ||
this.grade = grade; | ||
} | ||
|
||
public User getUser() { | ||
return user; | ||
public String getOrg() { | ||
return org; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
public void setOrg(String org) { | ||
this.org = org; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "UserUpdateBo{" + | ||
"token='" + token + '\'' + | ||
", user=" + user + | ||
"id=" + id + | ||
", grade=" + grade + | ||
", org='" + org + '\'' + | ||
'}'; | ||
} | ||
} |
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
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