|
@@ -7,6 +7,7 @@ import com.xkl.authorization.annotation.*; |
|
@@ -7,6 +7,7 @@ import com.xkl.authorization.annotation.*; |
7
|
import com.xkl.config.ResultStatus;
|
7
|
import com.xkl.config.ResultStatus;
|
8
|
import com.xkl.domain.XklAdminEntity;
|
8
|
import com.xkl.domain.XklAdminEntity;
|
9
|
import com.xkl.domain.XklCompanyEntity;
|
9
|
import com.xkl.domain.XklCompanyEntity;
|
|
|
10
|
+import com.xkl.model.AdminInfoModel;
|
10
|
import com.xkl.model.AdminLoginModel;
|
11
|
import com.xkl.model.AdminLoginModel;
|
11
|
import com.xkl.model.ResultModel;
|
12
|
import com.xkl.model.ResultModel;
|
12
|
import com.xkl.repository.XklCompanyRepository;
|
13
|
import com.xkl.repository.XklCompanyRepository;
|
|
@@ -38,7 +39,7 @@ public class AdminInfoController { |
|
@@ -38,7 +39,7 @@ public class AdminInfoController { |
38
|
if (companyEntity == null) {
|
39
|
if (companyEntity == null) {
|
39
|
return new ResponseEntity<>(ResultModel.error(ResultStatus.COMPANY_ERROR), HttpStatus.OK);
|
40
|
return new ResponseEntity<>(ResultModel.error(ResultStatus.COMPANY_ERROR), HttpStatus.OK);
|
40
|
}
|
41
|
}
|
41
|
- AdminLoginModel adminLoginModel = new AdminLoginModel(admin.getId(), admin.getAccount(), companyEntity.getId(), companyEntity.getName(), "", "");
|
|
|
42
|
- return new ResponseEntity<>(ResultModel.ok(adminLoginModel), HttpStatus.OK);
|
42
|
+ AdminInfoModel adminInfoModel = new AdminInfoModel(admin.getId(), admin.getAccount(), companyEntity.getId(), companyEntity.getName());
|
|
|
43
|
+ return new ResponseEntity<>(ResultModel.ok(adminInfoModel), HttpStatus.OK);
|
43
|
}
|
44
|
}
|
44
|
} |
45
|
} |