仿真用户数据里增加creator字段

This commit is contained in:
joylink_zhangsai 2022-12-01 13:08:38 +08:00
parent 993c081dbd
commit a5f22ad154

View File

@ -20,6 +20,8 @@ public class SimulationUserVO {
private Long userId; private Long userId;
private boolean creator;
private String nickName; private String nickName;
private ProjectDeviceVO deviceVO; private ProjectDeviceVO deviceVO;
@ -61,6 +63,7 @@ public class SimulationUserVO {
public SimulationUserVO(SimulationUser simulationUser) { public SimulationUserVO(SimulationUser simulationUser) {
this.userId = simulationUser.getUser().getId(); this.userId = simulationUser.getUser().getId();
this.creator = simulationUser.isCreator();
this.nickName = simulationUser.getUser().getNickname(); this.nickName = simulationUser.getUser().getNickname();
this.deviceVO = simulationUser.getProjectDevice(); this.deviceVO = simulationUser.getProjectDevice();
this.referee = simulationUser.isReferee(); this.referee = simulationUser.isReferee();