Commit 35bfabf3 by guojuxing

超级管理员信息接口

parent 8f95c000
package com.gic.auth.web.controller;
import com.gic.auth.web.vo.SuperUserVO;
import com.gic.enterprise.base.EnterpriseInfo;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.LogManager;
......@@ -270,4 +271,11 @@ public class UserController {
return OperationResultUtils.operationResult(result, "移除账号分组", OperationResultUtils.getOperationObject(result));
}
@RequestMapping("/get-super-user")
public RestResponse getSuperAdmin() {
return ResultControllerUtils.commonResultOne(
userApiService.getUserByEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId()),
SuperUserVO.class);
}
}
package com.gic.auth.web.vo;
import lombok.Data;
import java.io.Serializable;
/**
* 超级管理员信息
* @ClassName: SuperUserVO

* @Description: 

* @author guojuxing

* @date 2020/3/10 2:59 PM

*/
@Data
public class SuperUserVO implements Serializable{
private static final long serialVersionUID = -4764946843477881395L;
private Integer userId;
private String userName;
private String phoneNumber;
/**
* 国际区号,如中国 86
*/
private String phoneAreaCode;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment