|
@@ -40,7 +40,7 @@ public class LoginResult implements Serializable {
|
|
|
String accessToken;
|
|
|
|
|
|
@ApiModelProperty(value = "学校信息")
|
|
|
- SchoolNativeBean schoolInfo;
|
|
|
+ List<SchoolNativeBean> schoolInfo;
|
|
|
|
|
|
@ApiModelProperty(value = "机构信息")
|
|
|
OrgNativeBean orgInfo;
|
|
@@ -91,7 +91,7 @@ public class LoginResult implements Serializable {
|
|
|
this.roleSource = roleSource;
|
|
|
}
|
|
|
|
|
|
- public LoginResult(SysUser sysUser, String sessionId, String accessToken, SchoolNativeBean schoolInfo, OrgNativeBean orgInfo, AppSourceEnum appSource) {
|
|
|
+ public LoginResult(SysUser sysUser, String sessionId, String accessToken, List<SchoolNativeBean> schoolInfo, OrgNativeBean orgInfo, AppSourceEnum appSource) {
|
|
|
this.loginName = sysUser.getLoginName();
|
|
|
this.realName = sysUser.getRealName();
|
|
|
this.sessionId = sessionId;
|
|
@@ -173,14 +173,6 @@ public class LoginResult implements Serializable {
|
|
|
this.accessToken = accessToken;
|
|
|
}
|
|
|
|
|
|
- public SchoolNativeBean getSchoolInfo() {
|
|
|
- return schoolInfo;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSchoolInfo(SchoolNativeBean schoolInfo) {
|
|
|
- this.schoolInfo = schoolInfo;
|
|
|
- }
|
|
|
-
|
|
|
public long getTime() {
|
|
|
return time;
|
|
|
}
|
|
@@ -205,6 +197,14 @@ public class LoginResult implements Serializable {
|
|
|
this.userLoginCheckResult = userLoginCheckResult;
|
|
|
}
|
|
|
|
|
|
+ public List<SchoolNativeBean> getSchoolInfo() {
|
|
|
+ return schoolInfo;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSchoolInfo(List<SchoolNativeBean> schoolInfo) {
|
|
|
+ this.schoolInfo = schoolInfo;
|
|
|
+ }
|
|
|
+
|
|
|
public class SchoolNativeBean implements Serializable {
|
|
|
|
|
|
@ApiModelProperty(value = "id")
|
|
@@ -217,6 +217,9 @@ public class LoginResult implements Serializable {
|
|
|
@ApiModelProperty(value = "名称")
|
|
|
String name;
|
|
|
|
|
|
+ @ApiModelProperty(value = "密码")
|
|
|
+ String password;
|
|
|
+
|
|
|
public SchoolNativeBean() {
|
|
|
|
|
|
}
|
|
@@ -225,14 +228,20 @@ public class LoginResult implements Serializable {
|
|
|
this.id = tbSchool.getId();
|
|
|
this.code = tbSchool.getCode();
|
|
|
this.name = tbSchool.getName();
|
|
|
- schoolInfo = this;
|
|
|
}
|
|
|
|
|
|
- public SchoolNativeBean(Long id, String code, String name) {
|
|
|
+ public SchoolNativeBean(BasicSchool tbSchool, String password) {
|
|
|
+ this.id = tbSchool.getId();
|
|
|
+ this.code = tbSchool.getCode();
|
|
|
+ this.name = tbSchool.getName();
|
|
|
+ this.password = password;
|
|
|
+ }
|
|
|
+
|
|
|
+ public SchoolNativeBean(Long id, String code, String name, String password) {
|
|
|
this.id = id;
|
|
|
this.code = code;
|
|
|
this.name = name;
|
|
|
- schoolInfo = this;
|
|
|
+ this.password = password;
|
|
|
}
|
|
|
|
|
|
public Long getId() {
|
|
@@ -258,6 +267,14 @@ public class LoginResult implements Serializable {
|
|
|
public void setName(String name) {
|
|
|
this.name = name;
|
|
|
}
|
|
|
+
|
|
|
+ public String getPassword() {
|
|
|
+ return password;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPassword(String password) {
|
|
|
+ this.password = password;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public class OrgNativeBean implements Serializable {
|