台湾一级a毛片在线播放,黄色精品偷拍视频大全,精品一区二区在线欧美日韩,日本特黄一级视频播三级片,日韩美女18岁美女视频,偷偷操不一样的99,国产午夜激无码av毛片久

智慧服務,成就美好體驗 項目咨詢

主頁 > 服務與支持 > 開發(fā)平臺 > 服務端API參考 > 用戶管理 分頁查詢用戶

入門使用

分頁查詢用戶

更新時間:2019-11-20

描述

企業(yè)管理員通過該接口分頁查詢企業(yè)用戶。

接口原型

表1 接口原型

請求方法

POST

請求地址

/rest/usg/datacenter/v1/corp/member/search

傳輸協(xié)議

HTTPS

請求參數(shù)

表2 參數(shù)說明

參數(shù)

是否必須

類型

位置

描述

Authorization

String

Header

授權令牌。將執(zhí)行鑒權響應的accessToken

進行Base64轉碼操作。

樣例:Basic Base64(accessToken)

condition

String

Body

查詢條件。

長度:0-255。

pageIndex

Integer

Body

頁面起始頁。

最小值:1

默認值:1

pageSize

Integer

Body

頁面大小。

范圍:1-1000

默認值:10

deptCode

String

Body

部門編碼,不帶則查詢所有。

長度:0-32。

enableSubDept

Boolean

Body

是否查詢子部門。

默認值:true

adminType

Integer

Body

支持搜索管理員,和非管理員(默認管理員在搜索用戶時不顯示)。

管理員類型。

  • 1:普通管理員
  • 2:非管理員(即為普通企業(yè)成員,UserType是2時有效)

范圍:1-2

status

Integer

Body

用戶狀態(tài)

  • 0:正常
  • 1:停用,不帶則查詢所有

響應參數(shù)

表3 參數(shù)說明

參數(shù)

類型

描述

returnCode

String

業(yè)務返回碼。

returnMessage

String

返回描述。

achievementTime

String

響應產(chǎn)生時間。

requestId

String

請求唯一標識。

data

SearchUserPage

分頁查詢企業(yè)用戶信息。

表4 SearchUserPage 數(shù)據(jù)結構

參數(shù)

類型

描述

pageIndex

Integer

頁面起始頁。

pageSize

Integer

頁面大小。

totalCount

Integer

總數(shù)量。

data

SearchUserResultDTO[0..*]

分頁查詢企業(yè)用戶信息。

表5 SearchUserResultDTO 數(shù)據(jù)結構

參數(shù)

類型

描述

id

String

用戶ID。

userAccount

String

帳號。

name

String

姓名。

phone

String

聯(lián)系電話。

country

String

聯(lián)系電話所屬的國家。

email

String

郵箱。

vmrId

String

個人會議室Id

deptCode

String

部門編碼。

deptNamePath

String

部門完整名稱。

userType

Integer

用戶類型。

  • 0:系統(tǒng)管理員帳戶
  • 1:SP管理員帳戶
  • 2:企業(yè)成員帳戶
  • 10:硬終端用戶

adminType

Integer

管理員類型。

  • 0:默認(超級)管理員
  • 1:普通管理員
  • 2:非管理員(即為普通企業(yè)成員,UserType是2時有效)

signature

String

備注。

status

Integer

用戶狀態(tài)。

  • 0:正常
  • 1:停用

請求消息示例

POST /rest/usg/datacenter/v1/corp/member/search
Connection: keep-alive
Authorization: Basic RWVSNU5KSjlyS2w5M0p4M2pIZ21OcWhKemVkTzM2aU50
Content-Type: application/json
Content-Length: 125
Host: api.meeting.huaweicloud.com 
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)

{
    "condition": "",
    "deptCode": "1",
    "pageIndex": 1,
    "pageSize": 10,
    "enableSubDept":true,
    "adminType":2,
    "status":0
}
 

響應消息示例

HTTP/1.1 200 
Date: Fri, 12 Apr 2019 10:07:08 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 1329
Connection: keep-alive
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: api-gateway
X-Request-Id: 63facce44898efa03629afd189da7f0f

{
    "returnCode": "000000000",
    "returnMessage": "Success",
    "achievementTime": "2019-04-12 10:05:57.051",
    "requestId": "63facce44898efa03629afd189da7f0f",
    "data": {
        "pageIndex": 1,
        "totalCount": 4,
        "pageSize": 10,
        "data": [{
            "id": "ff80808169e79714016a10e0002c00b6",
            "userAccount": "a68070c57c8246ec95569b26c81d9168",
            "name": "test004",
            "phone": "+86136********",
            "country": "chinaPR",
            "email": null,
            "vmrId": "911857962",
            "deptCode": "1",
            "deptNamePath": "user002",
            "userType": 2,
            "adminType": 2,
            "signature": null,
            "status": 0
        },
        {
            "id": "ff80808169e79714016a10dcdb2b00b3",
            "userAccount": "ceb06a378bc349f2903dc01f688c3674",
            "name": "test003",
            "phone": "+86133********",
            "country": "chinaPR",
            "email": null,
            "vmrId": "912406161",
            "deptCode": "1",
            "deptNamePath": "user002",
            "userType": 2,
            "adminType": 2,
            "signature": null,
            "status": 0
        },
        {
            "id": "ff80808169e794dc016a10d0ff470094",
            "userAccount": "acaf01bac6eb48778697a52d4feb63de",
            "name": "test002",
            "phone": "+86136********",
            "country": "chinaPR",
            "email": null,
            "vmrId": "911461810",
            "deptCode": "1",
            "deptNamePath": "user002",
            "userType": 2,
            "adminType": 2,
            "signature": null,
            "status": 0
        },
        {
            "id": "ff80808169570fea0169b3151d290107",
            "userAccount": "user003",
            "name": "user003",
            "phone": null,
            "country": "chinaPR",
            "email": "user003@huawei.com",
            "vmrId": "911194747",
            "deptCode": "1",
            "deptNamePath": "user002",
            "userType": 2,
            "adminType": 2,
            "signature": null,
            "status": 0
        }]
    }
}
 

CURL命令示例

curl -k -i -H 'content-type: application/json' -X POST -H 'Authorization: Basic VUVwVU82SWFISU0ySWlKaEdoRllRUXk0MUZnbk00Mkpk' -d '{"condition": "","deptCode": "1","pageIndex": 1,"pageSize": 10,"enableSubDept":true,"adminType":2,"status":0}' https://api.meeting.huaweicloud.com/rest/usg/datacenter/v1/corp/member/search