mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-14 21:36:48 +08:00
接口调用
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
package com.xboe.data.dto;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class UserOrgIds {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否是超级管理员
|
||||||
|
*/
|
||||||
|
public static final String IsSystemAdminKey="isSystemAdmin";
|
||||||
|
|
||||||
|
private Map<String,Boolean> permissions=new HashMap<String,Boolean>();
|
||||||
|
|
||||||
|
private List<String> ids;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -51,9 +51,7 @@ public class DataUserSyncServiceImpl implements IDataUserSyncService{
|
|||||||
if(user.getDeleted()!=null) {
|
if(user.getDeleted()!=null) {
|
||||||
a.setDeleted(user.getDeleted());
|
a.setDeleted(user.getDeleted());
|
||||||
}
|
}
|
||||||
|
|
||||||
a.setLoginName(user.getCode());
|
a.setLoginName(user.getCode());
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
//新账户
|
//新账户
|
||||||
a=new Account();
|
a=new Account();
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ public class PortalLoginApi extends ApiBaseController {
|
|||||||
if (StringUtil.isBlank(token)) {
|
if (StringUtil.isBlank(token)) {
|
||||||
return wrap(JsonResponseStatus.TOKEN_NOPASS, "token error");
|
return wrap(JsonResponseStatus.TOKEN_NOPASS, "token error");
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, String> tokenInfo = authorizationToken.readToken(token);
|
Map<String, String> tokenInfo = authorizationToken.readToken(token);
|
||||||
if (tokenInfo == null) {
|
if (tokenInfo == null) {
|
||||||
return wrap(JsonResponseStatus.TOKEN_NOPASS, "token error");
|
return wrap(JsonResponseStatus.TOKEN_NOPASS, "token error");
|
||||||
|
|||||||
Reference in New Issue
Block a user