title: myApps.5.0trunk v1.0.0
language_tabs:
- shell: Shell
- http: HTTP
- javascript: JavaScript
- ruby: Ruby
- python: Python
- php: PHP
- java: Java
- go: Go
toc_footers: []
includes: []
search: true
code_clipboard: true
highlight_theme: darkula
headingLevel: 2
generator: “@tarslib/widdershins v4.0.17”
myApps.5.0trunk
v1.0.0
Base URLs:
myApps授权时/登录和注销
GET 注销
GET /api/authtime/{applicationId}/logout
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
accessToken | cookie | string | 否 | none |
adminToken | cookie | string | 否 | none |
applicationId | path | string | 是 | none |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
POST 登录
POST /api/authtime/login
Body 请求参数
{
"username": "admin",
"password": "VlbWxpbms=dG",
"checkcode": "y5wc"
}
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
accessToken | cookie | string | 否 | none |
adminToken | cookie | string | 否 | none |
body | body | object | 否 | none |
» username | body | string | 是 | none |
» password | body | string | 是 | none |
» checkcode | body | string | 是 | none |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
myApps授权时/企业域
POST 获取企业域列表
POST /api/authtime/domains
Body 请求参数
{
"name": "string",
"username": "string"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
currpage | query | string | 否 | 当前页码 | |
pagelines | query | string | 否 | 页面大小 | |
body | body | object | 否 | none | |
» name | body | string | 是 | 企业域名称 | none |
» username | body | string | 是 | 管理员名称 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"licenseType": "S.标准版",
"linesPerPage": 10,
"pageCount": 1,
"pageNo": 1,
"rowCount": 2,
"datas": [
{
"name": "测试",
"id": "3CffNlgt9B9StIjIUPB",
"status": 1,
"logoUrl": "../uploads/lib/icon/p87_RMB.png",
"systemName": "1111",
"users": [
{
"userid": "0JyBHSIZPmSOQpQwd1K",
"username": "宣传j"
},
{
"userid": "iM16sApAfO0CdXXFnOH",
"username": "RU"
},
{
"userid": "0TblO2uKjQ2sLDY64yF",
"username": "junye"
},
{
"userid": "zPsp2hk7CEwtqeMCwtj",
"username": "管理员"
},
{
"userid": "2TE7lzsbdyqLhndabbN",
"username": "sam_hr"
}
]
},
{
"name": "2",
"id": "__t64lurS4a2ZuWARnvcU",
"status": 1,
"logoUrl": "",
"systemName": "",
"users": []
}
]
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码(0=成功,1=失败) | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | 企业域集合 | none |
»» licenseType | string | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageCount | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» rowCount | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» name | string | true | none | 企业域名称 | none |
»»» id | string | true | none | 企业域id | none |
»»» status | integer | true | none | 企业域状态 | (1=激活,0=未激活) |
»»» logoUrl | string | true | none | none | |
»»» systemName | string | true | none | none | |
»»» users | [object] | true | none | 企业域管理员 | none |
»»»» userid | string | true | none | 企业域管理员id | none |
»»»» username | string | true | none | 企业域管理员名称 | none |
GET 获取企业域基本信息
GET /api/authtime/domain/{id}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"name": "测试",
"id": "3CffNlgt9B9StIjIUPB",
"systemName": "",
"yunAccount": "sam_hr",
"yunPassword": "123456",
"description": "测试",
"skinType": "H5",
"logourl": "",
"status": 1,
"users": [
{
"userid": "2TE7lzsbdyqLhndabbN",
"username": "sam_hr"
},
{
"userid": "zPsp2hk7CEwtqeMCwtj",
"username": "管理员"
}
]
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | 企业域集合 | none |
»» name | string | true | none | 企业域名称 | none |
»» id | string | true | none | 企业域id | none |
»» systemName | string | true | none | 系统名称 | none |
»» yunAccount | string | false | none | 云能力平台账号 | none |
»» yunPassword | string | false | none | 云能力平台密码 | none |
»» description | string | true | none | 描述 | none |
»» skinType | string | true | none | 默认皮肤 | none |
»» logoUrl | string | true | none | logo地址 | none |
»» status | integer | true | none | 激活状态 | none |
»» users | [object] | true | none | none | |
»»» userid | string | true | none | 管理员id | none |
»»» username | string | true | none | 管理员名称 | none |
PUT 更新企业域
PUT /api/authtime/domain/{id}
Body 请求参数
{
"id": "string",
"name": "string",
"systemName": "string",
"yunAccount": "string",
"yunPassword": "string",
"description": "string",
"status": 0,
"skinType": "string",
"logoUrl": "string"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | path | string | 是 | 操作id | |
body | body | object | 否 | none | |
» id | body | string | 是 | none | |
» name | body | string | 是 | none | |
» systemName | body | string | 是 | none | |
» yunAccount | body | string | 是 | none | |
» yunPassword | body | string | 是 | none | |
» description | body | string | 是 | none | |
» status | body | integer | 是 | none | |
» skinType | body | string | 是 | none | |
» logoUrl | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"id": "__cj05csjUFPNjw5TWCS5",
"name": "ekkotest",
"systemName": "ekkotest",
"yunAccount": "sam_hr",
"yunPassword": "123456",
"description": "描述test11",
"skinType": "H5",
"logoUrl": "",
"status": 1,
"users": []
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | none | |
»» id | string | true | none | 企业域id | none |
»» name | string | true | none | 企业域名称 | none |
»» systemName | string | true | none | none | |
»» yunAccount | string | true | none | none | |
»» yunPassword | string | true | none | none | |
»» description | string | true | none | none | |
»» skinType | string | true | none | none | |
»» logoUrl | string | true | none | none | |
»» status | integer | true | none | none | |
»» users | [string] | true | none | none |
GET 获取企业域logo集合
GET /api/authtime/icons
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none |
返回示例
成功
"{\r\n \"errcode\": 0,\r\n \"errmsg\": \"ok\",\r\n \"data\": [\r\n {\r\n \"name\": \"16x16_0020\",\r\n \"size\": null,\r\n \"length\": null,\r\n \"width\": 0,\r\n \"path\": \"E:/WorkSpace/obpm4.3/obpm-demo/uploads/lib/icon/16x16_0020\",\r\n \"fileType\": 2\r\n }\r\n {\r\n \"name\": \"teemlink-logo.png\",\r\n \"size\": \"60 x 61\",\r\n \"length\": \"4.88 KB\",\r\n \"width\": 60,\r\n \"path\": \"E:/WorkSpace/obpm4.3/obpm-demo/uploads/lib/icon/teemlink-logo.png\",\r\n \"fileType\": 1\r\n },\r\n {\r\n \"name\": \"_H5_small_icon\",\r\n \"size\": null,\r\n \"length\": null,\r\n \"width\": 0,\r\n \"path\": \"E:/WorkSpace/obpm4.3/obpm-demo/uploads/lib/icon/_H5_small_icon\",\r\n \"fileType\": 2\r\n }\r\n ]\r\n}\r\n"
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | [object] | true | none | none | |
»» name | string | true | none | logo名称 | none |
»» size | string¦null | true | none | logo尺寸 | none |
»» length | string¦null | true | none | 文件大小 | none |
»» width | integer | true | none | logo长 | none |
»» path | string | true | none | logo绝对路径 | none |
»» fileType | integer | true | none | 文件类型 | none |
GET 测试企业域短信发送
GET /api/authtime/domain/{domainid}/sms/{telephone}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
telephone | path | string | 是 | 测试手机号码 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"type": "success",
"message": "success"
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | none | |
»» type | string | true | none | 提示类型 | none |
»» message | string | true | none | 提示消息 | none |
POST 新建企业域基本信息
POST /api/authtime/domain
Body 请求参数
"{\r\n \"name\": \"企业域名称\",\r\n\r\n \"systemName\": \"系统名称\",\r\n\r\n \"yunAccount\": \"云能力平台账号\",\r\n\r\n \"yunPassword\": \"云能力平台密码\",\r\n\r\n \"description\": \"描述\",\r\n\r\n \"status\":1(状态) \r\n\r\n \"skinType\":\"企业域默认皮肤\" \r\n\r\n \"logoUrl\":\"logo的具体地址\" \r\n\r\n}"
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | object | 否 | none | |
» name | body | string | 是 | none | |
» systemName | body | string | 是 | none | |
» yunAccount | body | string | 是 | none | |
» yunPassword | body | string | 是 | none | |
» description | body | string | 是 | none | |
» status | body | string | 是 | none | |
» skinType | body | string | 是 | none | |
» logoUrl | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"id": "__cj05csjUFPNjw5TWCS5",
"name": "ekkotest",
"systemName": "ekkotest",
"yunAccount": "sam_hr",
"yunPassword": "123456",
"description": "描述test",
"skinType": "H5",
"logoUrl": "",
"status": 1,
"users": []
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
201 | Created | 成功 | Inline |
返回数据结构
状态码 201
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | none | |
»» id | string | true | none | 企业域id | none |
»» name | string | true | none | 企业域名称 | none |
»» systemName | string | true | none | 企业域系统名称 | none |
»» yunAccount | string | true | none | 云能力平台账号 | none |
»» yunPassword | string | true | none | 云能力平台密码 | none |
»» description | string | true | none | 描述 | none |
»» skinType | string | true | none | 默认皮肤 | none |
»» logoUrl | string | true | none | logo绝对路径 | none |
»» status | integer | true | none | 激活状态 | (1=激活,0=未激活) |
»» users | [string] | true | none | none |
DELETE 删除企业域
DELETE /api/authtime/domain
Body 请求参数
[
"id1",
"id2"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "删除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | string | true | none | 提示信息 | none |
GET 企业域用户导出
GET /api/authtime/domain/{domainid}/user/export
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
200 Response
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | string | true | none | none |
POST 企业域用户导入
POST /api/authtime/domain/{domainid}/user/import
Body 请求参数
{
"path": "string"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» path | body | string | 是 | 路径 | 上传文件的相对路径(14.1上传之后返回的路径) |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"general": {
"USER_ADD_FAIL": 0,
"DEPT_ADD_SUCCESS": 1,
"DEPT_ADD_FAIL": 0,
"USER_ADD_SUCCESS": 2
},
"detail": []
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | 0=成功,1=失败 |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | none | |
»» general | object | true | none | none | |
»»» USER_ADD_FAIL | integer | true | none | none | |
»»» DEPT_ADD_SUCCESS | integer | true | none | none | |
»»» DEPT_ADD_FAIL | integer | true | none | none | |
»»» USER_ADD_SUCCESS | integer | true | none | none | |
»» detail | [string] | true | none | none |
DELETE 删除自定义图标
DELETE /api/authtime/icon
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
path | query | string | 否 | 图标路径 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "删除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
GET 获取皮肤列表
GET /api/authtime/skins
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "success",
"data": {
"vue": "vue",
"good": "good"
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | none |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | 提示信息 | none |
»» vue | string | true | none | none | |
»» good | string | true | none | none |
POST 企业域同步LDAP部门及用户信息
POST /api/authtime/domain/synchldap
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | query | string | 否 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "success",
"data": "同步成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | string | true | none | 提示信息 | none |
PUT 重设Secret Key
PUT /api/authtime/domain/{id}/secret
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
GET 获取云能力服务列表
GET /api/authtime/domain/{id}/services
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"account": "spy@weioa365.com",
"password": "123456",
"data": [
{
"id": "SHORTMESSAGEID",
"category": "云通讯",
"name": "短信服务",
"notes": "短信服务",
"callCount": 130,
"balance": 870
}
]
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» account | string | true | none | none | |
»» password | string | true | none | none | |
»» data | [object] | true | none | none | |
»»» id | string | false | none | none | |
»»» category | string | false | none | none | |
»»» name | string | false | none | none | |
»»» notes | string | false | none | none | |
»»» callCount | integer | false | none | none | |
»»» balance | integer | false | none | none |
POST 云能力账号保存
POST /api/authtime/domain/{id}/cloudcenter/user
Body 请求参数
{
"account": "string",
"password": "string"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | path | string | 是 | none | |
body | body | object | 否 | none | |
» account | body | string | 是 | 账号 | none |
» password | body | string | 是 | 密码 | 密码(base64加密换位置 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码 | (0=成功,1=失败) |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
myApps授权时/部门
GET 获取根部门
GET /api/authtime/domain/{domainid}/department/root
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
GET 获取子部门
GET /api/authtime/domain/{domainid}/department/{departmentid}/subdepartments
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
departmentid | path | string | 是 | 部门id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"code": "",
"orderByNo": 0,
"field19": "",
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s___7AR6G1T02Nb55labPkr",
"field17": "",
"field18": "",
"domainid": "",
"fieldExtendsValues": [],
"valid": 1,
"field20": "",
"lanxinDeptId": "",
"sortId": "161277275760400000",
"weixinDeptId": "",
"id": "__7AR6G1T02Nb55labPkr",
"applicationid": "",
"fsDeptId": "",
"level": 1,
"version": 0,
"field11": "",
"field12": "",
"field1": "",
"field10": "",
"field15": "",
"field16": "",
"field13": "",
"dingdingDeptId": "",
"field14": "",
"field7": "",
"name": "技术部",
"field6": "",
"field9": "",
"field8": "",
"field3": "",
"field2": "",
"field5": "",
"field4": "",
"leaf": false
},
{
"code": "",
"orderByNo": 0,
"field19": "",
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s___BbX5GmUz8om72ICA781",
"field17": "",
"field18": "",
"domainid": "",
"fieldExtendsValues": [],
"valid": 1,
"field20": "",
"lanxinDeptId": "",
"sortId": "161277277176200000",
"weixinDeptId": "",
"id": "__BbX5GmUz8om72ICA781",
"applicationid": "",
"fsDeptId": "",
"level": 1,
"version": 0,
"field11": "",
"field12": "",
"field1": "",
"field10": "",
"field15": "",
"field16": "",
"field13": "",
"dingdingDeptId": "",
"field14": "",
"field7": "",
"name": "后勤部",
"field6": "",
"field9": "",
"field8": "",
"field3": "",
"field2": "",
"field5": "",
"field4": "",
"leaf": false
},
{
"code": "",
"orderByNo": 0,
"field19": "",
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s___bZiGACxcLs4FH8O8eTt",
"field17": "",
"field18": "",
"domainid": "",
"fieldExtendsValues": [],
"valid": 1,
"field20": "",
"lanxinDeptId": "",
"sortId": "161277273863900000",
"weixinDeptId": "",
"id": "__bZiGACxcLs4FH8O8eTt",
"applicationid": "",
"fsDeptId": "",
"level": 1,
"version": 0,
"field11": "",
"field12": "",
"field1": "",
"field10": "",
"field15": "",
"field16": "",
"field13": "",
"dingdingDeptId": "",
"field14": "",
"field7": "",
"name": "销售部",
"field6": "",
"field9": "",
"field8": "",
"field3": "",
"field2": "",
"field5": "",
"field4": "",
"leaf": false
},
{
"code": "",
"orderByNo": 0,
"field19": "",
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s___lBTr7YmXnkH1RaqPLlz",
"field17": "",
"field18": "",
"domainid": "",
"fieldExtendsValues": [],
"valid": 1,
"field20": "",
"lanxinDeptId": "",
"sortId": "161277275187500000",
"weixinDeptId": "",
"id": "__lBTr7YmXnkH1RaqPLlz",
"applicationid": "",
"fsDeptId": "",
"level": 1,
"version": 0,
"field11": "",
"field12": "",
"field1": "",
"field10": "",
"field15": "",
"field16": "",
"field13": "",
"dingdingDeptId": "",
"field14": "",
"field7": "",
"name": "市场部",
"field6": "",
"field9": "",
"field8": "",
"field3": "",
"field2": "",
"field5": "",
"field4": "",
"leaf": false
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | [object] | true | none | none | |
»» code | string | true | none | none | |
»» orderByNo | integer | true | none | none | |
»» field19 | string | true | none | none | |
»» indexCode | string | true | none | none | |
»» field17 | string | true | none | none | |
»» field18 | string | true | none | none | |
»» domainid | string | true | none | none | |
»» fieldExtendsValues | [string] | true | none | none | |
»» valid | integer | true | none | none | |
»» field20 | string | true | none | none | |
»» lanxinDeptId | string | true | none | none | |
»» sortId | string | true | none | none | |
»» weixinDeptId | string | true | none | none | |
»» id | string | true | none | none | |
»» applicationid | string | true | none | none | |
»» fsDeptId | string | true | none | none | |
»» level | integer | true | none | none | |
»» version | integer | true | none | none | |
»» field11 | string | true | none | none | |
»» field12 | string | true | none | none | |
»» field1 | string | true | none | none | |
»» field10 | string | true | none | none | |
»» field15 | string | true | none | none | |
»» field16 | string | true | none | none | |
»» field13 | string | true | none | none | |
»» dingdingDeptId | string | true | none | none | |
»» field14 | string | true | none | none | |
»» field7 | string | true | none | none | |
»» name | string | true | none | none | |
»» field6 | string | true | none | none | |
»» field9 | string | true | none | none | |
»» field8 | string | true | none | none | |
»» field3 | string | true | none | none | |
»» field2 | string | true | none | none | |
»» field5 | string | true | none | none | |
»» field4 | string | true | none | none | |
»» leaf | boolean | true | none | none |
GET 获取部门详情
GET /api/authtime/department/{id}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | path | string | 是 | 部门id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"id": "Z42xU8LmniRouZ93E7s",
"name": "总部2",
"superior": null,
"code": "1",
"level": 0,
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"fsDeptId": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"fieldExtendsValues": []
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» id | string | true | none | none | |
»» name | string | true | none | none | |
»» superior | null | true | none | none | |
»» code | string | true | none | none | |
»» level | integer | true | none | none | |
»» indexCode | string | true | none | none | |
»» domain | object | true | none | none | |
»»» id | string | true | none | none | |
»»» sendHost | string | true | none | none | |
»»» sendAddress | string | true | none | none | |
»»» sendAccount | string | true | none | none | |
»»» sendPassword | string | true | none | none | |
»»» ccAddress | string | true | none | none | |
»»» isUseClient | string | true | none | none | |
»»» functionDomain | string | true | none | none | |
»»» trash | string | true | none | none | |
»»» sender | string | true | none | none | |
»»» draft | string | true | none | none | |
»»» removed | string | true | none | none | |
»»» fetchServer | string | true | none | none | |
»»» fetchServerPort | string | true | none | none | |
»»» fetchProtocol | string | true | none | none | |
»»» fetchssl | string | true | none | none | |
»»» smtpServer | string | true | none | none | |
»»» smtpServerPort | string | true | none | none | |
»»» smtpAuthenticated | string | true | none | none | |
»»» smtpssl | string | true | none | none | |
»»» name | string | true | none | none | |
»»» secret | string | true | none | none | |
»»» systemName | string | true | none | none | |
»»» logoUrl | string | true | none | none | |
»»» parents | null | true | none | none | |
»»» field1 | string | true | none | none | |
»»» field2 | string | true | none | none | |
»»» field3 | string | true | none | none | |
»»» field4 | string | true | none | none | |
»»» field5 | string | true | none | none | |
»»» field6 | string | true | none | none | |
»»» field7 | string | true | none | none | |
»»» field8 | string | true | none | none | |
»»» field9 | string | true | none | none | |
»»» field10 | string | true | none | none | |
»»» field11 | string | true | none | none | |
»»» field12 | string | true | none | none | |
»»» field13 | string | true | none | none | |
»»» field14 | string | true | none | none | |
»»» field15 | string | true | none | none | |
»»» field16 | string | true | none | none | |
»»» field17 | string | true | none | none | |
»»» field18 | string | true | none | none | |
»»» field19 | string | true | none | none | |
»»» field20 | string | true | none | none | |
»»» openThM | boolean | true | none | none | |
»» valid | integer | true | none | none | |
»» orderByNo | integer | true | none | none | |
»» weixinDeptId | null | true | none | none | |
»» lanxinDeptId | null | true | none | none | |
»» dingdingDeptId | null | true | none | none | |
»» fsDeptId | null | true | none | none | |
»» field1 | string | true | none | none | |
»» field2 | string | true | none | none | |
»» field3 | string | true | none | none | |
»» field4 | string | true | none | none | |
»» field5 | string | true | none | none | |
»» field6 | string | true | none | none | |
»» field7 | string | true | none | none | |
»» field8 | string | true | none | none | |
»» field9 | string | true | none | none | |
»» field10 | string | true | none | none | |
»» field11 | string | true | none | none | |
»» field12 | string | true | none | none | |
»» field13 | string | true | none | none | |
»» field14 | string | true | none | none | |
»» field15 | string | true | none | none | |
»» field16 | string | true | none | none | |
»» field17 | string | true | none | none | |
»» field18 | string | true | none | none | |
»» field19 | string | true | none | none | |
»» field20 | string | true | none | none | |
»» fieldExtendsValues | [string] | true | none | none |
POST 新建部门信息
POST /api/authtime/domain/{domainid}/department
Body 请求参数
{
"sortId": "string",
"indexCode": "string",
"weixinDeptId": "string",
"lanxinDeptId": "string",
"name": "string",
"code": "string",
"orderByNo": 0,
"valid": 0,
"field1": "string",
"superiorid": "string"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» sortId | body | string | 是 | none | |
» indexCode | body | string | 是 | none | |
» weixinDeptId | body | string | 是 | none | |
» lanxinDeptId | body | string | 是 | none | |
» name | body | string | 是 | none | |
» code | body | string | 是 | none | |
» orderByNo | body | integer | 是 | none | |
» valid | body | integer | 是 | none | |
» field1 | body | string | 是 | none | |
» superiorid | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "保存成功",
"data": {
"id": "OfNZLP8oxg9HHwakAOL",
"name": "在一水没议",
"superior": null,
"code": "61",
"level": 0,
"indexCode": "75",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 50,
"weixinDeptId": "17",
"lanxinDeptId": "4",
"dingdingDeptId": null,
"fsDeptId": null,
"field1": "nulla velit esse eu",
"field2": null,
"field3": null,
"field4": null,
"field5": null,
"field6": null,
"field7": null,
"field8": null,
"field9": null,
"field10": null,
"field11": null,
"field12": null,
"field13": null,
"field14": null,
"field15": null,
"field16": null,
"field17": null,
"field18": null,
"field19": null,
"field20": null,
"fieldExtendsValues": []
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
201 | Created | 成功 | Inline |
返回数据结构
状态码 201
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» id | string | true | none | none | |
»» name | string | true | none | none | |
»» superior | null | true | none | none | |
»» code | string | true | none | none | |
»» level | integer | true | none | none | |
»» indexCode | string | true | none | none | |
»» domain | object | true | none | none | |
»»» id | string | true | none | none | |
»»» sendHost | string | true | none | none | |
»»» sendAddress | string | true | none | none | |
»»» sendAccount | string | true | none | none | |
»»» sendPassword | string | true | none | none | |
»»» ccAddress | string | true | none | none | |
»»» isUseClient | string | true | none | none | |
»»» functionDomain | string | true | none | none | |
»»» trash | string | true | none | none | |
»»» sender | string | true | none | none | |
»»» draft | string | true | none | none | |
»»» removed | string | true | none | none | |
»»» fetchServer | string | true | none | none | |
»»» fetchServerPort | string | true | none | none | |
»»» fetchProtocol | string | true | none | none | |
»»» fetchssl | string | true | none | none | |
»»» smtpServer | string | true | none | none | |
»»» smtpServerPort | string | true | none | none | |
»»» smtpAuthenticated | string | true | none | none | |
»»» smtpssl | string | true | none | none | |
»»» name | string | true | none | none | |
»»» secret | string | true | none | none | |
»»» systemName | string | true | none | none | |
»»» logoUrl | string | true | none | none | |
»»» parents | null | true | none | none | |
»»» field1 | string | true | none | none | |
»»» field2 | string | true | none | none | |
»»» field3 | string | true | none | none | |
»»» field4 | string | true | none | none | |
»»» field5 | string | true | none | none | |
»»» field6 | string | true | none | none | |
»»» field7 | string | true | none | none | |
»»» field8 | string | true | none | none | |
»»» field9 | string | true | none | none | |
»»» field10 | string | true | none | none | |
»»» field11 | string | true | none | none | |
»»» field12 | string | true | none | none | |
»»» field13 | string | true | none | none | |
»»» field14 | string | true | none | none | |
»»» field15 | string | true | none | none | |
»»» field16 | string | true | none | none | |
»»» field17 | string | true | none | none | |
»»» field18 | string | true | none | none | |
»»» field19 | string | true | none | none | |
»»» field20 | string | true | none | none | |
»»» openThM | boolean | true | none | none | |
»» valid | integer | true | none | none | |
»» orderByNo | integer | true | none | none | |
»» weixinDeptId | string | true | none | none | |
»» lanxinDeptId | string | true | none | none | |
»» dingdingDeptId | null | true | none | none | |
»» fsDeptId | null | true | none | none | |
»» field1 | string | true | none | none | |
»» field2 | null | true | none | none | |
»» field3 | null | true | none | none | |
»» field4 | null | true | none | none | |
»» field5 | null | true | none | none | |
»» field6 | null | true | none | none | |
»» field7 | null | true | none | none | |
»» field8 | null | true | none | none | |
»» field9 | null | true | none | none | |
»» field10 | null | true | none | none | |
»» field11 | null | true | none | none | |
»» field12 | null | true | none | none | |
»» field13 | null | true | none | none | |
»» field14 | null | true | none | none | |
»» field15 | null | true | none | none | |
»» field16 | null | true | none | none | |
»» field17 | null | true | none | none | |
»» field18 | null | true | none | none | |
»» field19 | null | true | none | none | |
»» field20 | null | true | none | none | |
»» fieldExtendsValues | [string] | true | none | none |
DELETE 删除部门
DELETE /api/authtime/domain/{domainid}/department
Body 请求参数
[
"id"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域ID | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "删除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码(0=成功,1=失败) | none |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | string | true | none | none |
PUT 更新部门信息
PUT /api/authtime/domain/{domainid}/department/{id}
Body 请求参数
{
"id": "string",
"sortId": "string",
"indexCode": "string",
"weixinDeptId": "string",
"lanxinDeptId": "string",
"name": "string",
"code": "string",
"orderByNo": "string",
"valid": "string",
"field1": "string",
"superiorid": "string"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | 部门id | |
body | body | object | 否 | none | |
» id | body | string | 是 | none | |
» sortId | body | string | 是 | none | |
» indexCode | body | string | 是 | none | |
» weixinDeptId | body | string | 是 | none | |
» lanxinDeptId | body | string | 是 | none | |
» name | body | string | 是 | none | |
» code | body | string | 是 | none | |
» orderByNo | body | string | 是 | none | |
» valid | body | string | 是 | none | |
» field1 | body | string | 是 | none | |
» superiorid | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "保存成功",
"data": {
"id": "Z42xU8LmniRouZ93E7s",
"name": "总部2",
"superior": null,
"code": "1",
"level": 0,
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"fsDeptId": null,
"field1": null,
"field2": null,
"field3": null,
"field4": null,
"field5": null,
"field6": null,
"field7": null,
"field8": null,
"field9": null,
"field10": null,
"field11": null,
"field12": null,
"field13": null,
"field14": null,
"field15": null,
"field16": null,
"field17": null,
"field18": null,
"field19": null,
"field20": null,
"fieldExtendsValues": []
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» id | string | true | none | none | |
»» name | string | true | none | none | |
»» superior | null | true | none | none | |
»» code | string | true | none | none | |
»» level | integer | true | none | none | |
»» indexCode | string | true | none | none | |
»» domain | object | true | none | none | |
»»» id | string | true | none | none | |
»»» sendHost | string | true | none | none | |
»»» sendAddress | string | true | none | none | |
»»» sendAccount | string | true | none | none | |
»»» sendPassword | string | true | none | none | |
»»» ccAddress | string | true | none | none | |
»»» isUseClient | string | true | none | none | |
»»» functionDomain | string | true | none | none | |
»»» trash | string | true | none | none | |
»»» sender | string | true | none | none | |
»»» draft | string | true | none | none | |
»»» removed | string | true | none | none | |
»»» fetchServer | string | true | none | none | |
»»» fetchServerPort | string | true | none | none | |
»»» fetchProtocol | string | true | none | none | |
»»» fetchssl | string | true | none | none | |
»»» smtpServer | string | true | none | none | |
»»» smtpServerPort | string | true | none | none | |
»»» smtpAuthenticated | string | true | none | none | |
»»» smtpssl | string | true | none | none | |
»»» name | string | true | none | none | |
»»» secret | string | true | none | none | |
»»» systemName | string | true | none | none | |
»»» logoUrl | string | true | none | none | |
»»» parents | null | true | none | none | |
»»» field1 | string | true | none | none | |
»»» field2 | string | true | none | none | |
»»» field3 | string | true | none | none | |
»»» field4 | string | true | none | none | |
»»» field5 | string | true | none | none | |
»»» field6 | string | true | none | none | |
»»» field7 | string | true | none | none | |
»»» field8 | string | true | none | none | |
»»» field9 | string | true | none | none | |
»»» field10 | string | true | none | none | |
»»» field11 | string | true | none | none | |
»»» field12 | string | true | none | none | |
»»» field13 | string | true | none | none | |
»»» field14 | string | true | none | none | |
»»» field15 | string | true | none | none | |
»»» field16 | string | true | none | none | |
»»» field17 | string | true | none | none | |
»»» field18 | string | true | none | none | |
»»» field19 | string | true | none | none | |
»»» field20 | string | true | none | none | |
»»» openThM | boolean | true | none | none | |
»» valid | integer | true | none | none | |
»» orderByNo | integer | true | none | none | |
»» weixinDeptId | null | true | none | none | |
»» lanxinDeptId | null | true | none | none | |
»» dingdingDeptId | null | true | none | none | |
»» fsDeptId | null | true | none | none | |
»» field1 | null | true | none | none | |
»» field2 | null | true | none | none | |
»» field3 | null | true | none | none | |
»» field4 | null | true | none | none | |
»» field5 | null | true | none | none | |
»» field6 | null | true | none | none | |
»» field7 | null | true | none | none | |
»» field8 | null | true | none | none | |
»» field9 | null | true | none | none | |
»» field10 | null | true | none | none | |
»» field11 | null | true | none | none | |
»» field12 | null | true | none | none | |
»» field13 | null | true | none | none | |
»» field14 | null | true | none | none | |
»» field15 | null | true | none | none | |
»» field16 | null | true | none | none | |
»» field17 | null | true | none | none | |
»» field18 | null | true | none | none | |
»» field19 | null | true | none | none | |
»» field20 | null | true | none | none | |
»» fieldExtendsValues | [string] | true | none | none |
POST 部门导入
POST /api/authtime/domain/{domainid}/department/import
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
path | query | string | 否 | excel文件路径(/upload/…./部门列表.xls) |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
"第几行有什么错误!"
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | [string] | true | none | none |
GET 根据部门拿用户
GET /api/authtime/department/{departmentid}/users
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
departmentid | path | string | 是 | 部门id | |
pagelines | query | string | 否 | 页长 | |
currpage | query | string | 否 | 当前页 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 3,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"domainid": "3CffNlgt9B9StIjIUPB",
"id": "cUGA5s3spQVvf8VF9MO",
"name": "wxw3",
"nameLetter": "wxw3",
"loginno": "wxw3",
"loginpwd": "de50787a1a72f4e5e7c308f3affaa76971647b434e646621",
"email": null,
"calendarType": "ZKsRAyDrAP7u0NKPQdR",
"status": 1,
"telephone": null,
"superAdmin": false,
"developer": false,
"defaultApplication": null,
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainPermission": 0,
"superior": null,
"startProxyTime": null,
"endProxyTime": null,
"passwordArray": null,
"lockFlag": 1,
"publicKey": null,
"avatar": null,
"favoriteContacts": null,
"liaisonOfficer": false,
"permissionType": "public",
"telephone2": null,
"telephonePublic": true,
"telephonePublic2": true,
"emailPublic": true,
"userInfoPublic": true,
"signs": null,
"indexCode": "$$$test",
"ddUserId": null,
"fsUserId": null,
"recordLog": false,
"showEmail": false,
"level": 0,
"roles": [],
"remarks": null,
"manageDepartments": null,
"manageDepartmentList": null,
"interfaceDepartments": "[\"\"]",
"interfaceDepartmentList": null,
"departments": [
{
"id": "Z42xU8LmniRouZ93E7s",
"name": "总部2",
"superior": null,
"code": "1",
"level": 0,
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"fsDeptId": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"fieldExtendsValues": []
}
],
"userDepartmentRoleSets": [
{
"id": "40288afc7df9d115017df9f5402c0004",
"userId": "cUGA5s3spQVvf8VF9MO",
"roleId": "__D0PalsVc9VxjGflfi69",
"departmentId": "Z42xU8LmniRouZ93E7s"
}
],
"useIM": false,
"departmentUser": false,
"validateAuthority": false,
"orderByNo": 0,
"proxyUser": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"field21": "",
"field22": "",
"field23": "",
"field24": "",
"field25": "",
"viewSettings": null,
"pwdErrorTimes": 0,
"roleDepartments": [],
"userSkin": "good",
"userStyle": null,
"useHomePage": null,
"pendingStyle": null,
"generalPage": null,
"configure": null,
"commonOpinion": null,
"type": null,
"sessionid": null,
"rolelist": null,
"proxyUserId": null,
"deptlist": null,
"equipment": 0,
"lowerDepartmentList": null,
"superiorList": []
},
{
"domainid": "3CffNlgt9B9StIjIUPB",
"id": "Dl3O8WCjSwZxJ85Inil",
"name": "wxw2",
"nameLetter": "wxw2",
"loginno": "wxw2",
"loginpwd": "bc4970fdeac77e064ab9c739f31088ec10dec42e761cc280",
"email": null,
"calendarType": "ZKsRAyDrAP7u0NKPQdR",
"status": 1,
"telephone": null,
"superAdmin": false,
"developer": false,
"defaultApplication": null,
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainPermission": 0,
"superior": null,
"startProxyTime": null,
"endProxyTime": null,
"passwordArray": null,
"lockFlag": 1,
"publicKey": null,
"avatar": null,
"favoriteContacts": null,
"liaisonOfficer": false,
"permissionType": "public",
"telephone2": null,
"telephonePublic": true,
"telephonePublic2": true,
"emailPublic": true,
"userInfoPublic": true,
"signs": null,
"indexCode": "$$$test",
"ddUserId": null,
"fsUserId": null,
"recordLog": false,
"showEmail": false,
"level": 0,
"roles": [],
"remarks": null,
"manageDepartments": null,
"manageDepartmentList": null,
"interfaceDepartments": "[\"\"]",
"interfaceDepartmentList": null,
"departments": [
{
"id": "Z42xU8LmniRouZ93E7s",
"name": "总部2",
"superior": null,
"code": "1",
"level": 0,
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"fsDeptId": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"fieldExtendsValues": []
}
],
"userDepartmentRoleSets": [
{
"id": "40288afc7df9d115017df9f4cc4f0003",
"userId": "Dl3O8WCjSwZxJ85Inil",
"roleId": "__2Qgh3bu554Krn0CxmN7",
"departmentId": "Z42xU8LmniRouZ93E7s"
}
],
"useIM": false,
"departmentUser": false,
"validateAuthority": false,
"orderByNo": 0,
"proxyUser": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"field21": "",
"field22": "",
"field23": "",
"field24": "",
"field25": "",
"viewSettings": null,
"pwdErrorTimes": 0,
"roleDepartments": [],
"userSkin": "good",
"userStyle": null,
"useHomePage": null,
"pendingStyle": null,
"generalPage": null,
"configure": null,
"commonOpinion": null,
"type": null,
"sessionid": null,
"rolelist": null,
"proxyUserId": null,
"deptlist": null,
"equipment": 0,
"lowerDepartmentList": null,
"superiorList": []
},
{
"domainid": "3CffNlgt9B9StIjIUPB",
"id": "tGnu7ptDCyBpFbB7t2L",
"name": "wxw1",
"nameLetter": "wxw1",
"loginno": "wxw1",
"loginpwd": "50c96f1be2fe8178823f0483419029220be3a484ff213172",
"email": null,
"calendarType": "ZKsRAyDrAP7u0NKPQdR",
"status": 1,
"telephone": null,
"superAdmin": false,
"developer": false,
"defaultApplication": null,
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainPermission": 0,
"superior": null,
"startProxyTime": null,
"endProxyTime": null,
"passwordArray": null,
"lockFlag": 1,
"publicKey": null,
"avatar": null,
"favoriteContacts": null,
"liaisonOfficer": false,
"permissionType": "public",
"telephone2": null,
"telephonePublic": true,
"telephonePublic2": true,
"emailPublic": true,
"userInfoPublic": true,
"signs": null,
"indexCode": "$$$test",
"ddUserId": null,
"fsUserId": null,
"recordLog": false,
"showEmail": false,
"level": 0,
"roles": [],
"remarks": null,
"manageDepartments": null,
"manageDepartmentList": null,
"interfaceDepartments": "[\"\"]",
"interfaceDepartmentList": null,
"departments": [
{
"id": "Z42xU8LmniRouZ93E7s",
"name": "总部2",
"superior": null,
"code": "1",
"level": 0,
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"fsDeptId": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"fieldExtendsValues": []
}
],
"userDepartmentRoleSets": [
{
"id": "40288afc7df9d115017df9f284020001",
"userId": "tGnu7ptDCyBpFbB7t2L",
"roleId": "__nevxKm9k1GdcAwctmQS",
"departmentId": "Z42xU8LmniRouZ93E7s"
}
],
"useIM": false,
"departmentUser": false,
"validateAuthority": false,
"orderByNo": 0,
"proxyUser": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"field21": "",
"field22": "",
"field23": "",
"field24": "",
"field25": "",
"viewSettings": null,
"pwdErrorTimes": 0,
"roleDepartments": [],
"userSkin": "good",
"userStyle": null,
"useHomePage": null,
"pendingStyle": null,
"generalPage": null,
"configure": null,
"commonOpinion": null,
"type": null,
"sessionid": null,
"rolelist": null,
"proxyUserId": null,
"deptlist": null,
"equipment": 0,
"lowerDepartmentList": null,
"superiorList": []
}
],
"pageCount": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» domainid | string | true | none | none | |
»»» id | string | true | none | none | |
»»» name | string | true | none | none | |
»»» nameLetter | string | true | none | none | |
»»» loginno | string | true | none | none | |
»»» loginpwd | string | true | none | none | |
null | true | none | none | ||
»»» calendarType | string | true | none | none | |
»»» status | integer | true | none | none | |
»»» telephone | null | true | none | none | |
»»» superAdmin | boolean | true | none | none | |
»»» developer | boolean | true | none | none | |
»»» defaultApplication | null | true | none | none | |
»»» defaultDepartment | string | true | none | none | |
»»» domainPermission | integer | true | none | none | |
»»» superior | null | true | none | none | |
»»» startProxyTime | null | true | none | none | |
»»» endProxyTime | null | true | none | none | |
»»» passwordArray | null | true | none | none | |
»»» lockFlag | integer | true | none | none | |
»»» publicKey | null | true | none | none | |
»»» avatar | null | true | none | none | |
»»» favoriteContacts | null | true | none | none | |
»»» liaisonOfficer | boolean | true | none | none | |
»»» permissionType | string | true | none | none | |
»»» telephone2 | null | true | none | none | |
»»» telephonePublic | boolean | true | none | none | |
»»» telephonePublic2 | boolean | true | none | none | |
»»» emailPublic | boolean | true | none | none | |
»»» userInfoPublic | boolean | true | none | none | |
»»» signs | null | true | none | none | |
»»» indexCode | string | true | none | none | |
»»» ddUserId | null | true | none | none | |
»»» fsUserId | null | true | none | none | |
»»» recordLog | boolean | true | none | none | |
»»» showEmail | boolean | true | none | none | |
»»» level | integer | true | none | none | |
»»» roles | [string] | true | none | none | |
»»» remarks | null | true | none | none | |
»»» manageDepartments | null | true | none | none | |
»»» manageDepartmentList | null | true | none | none | |
»»» interfaceDepartments | string | true | none | none | |
»»» interfaceDepartmentList | null | true | none | none | |
»»» departments | [object] | true | none | none | |
»»»» id | string | true | none | none | |
»»»» name | string | true | none | none | |
»»»» superior | null | true | none | none | |
»»»» code | string | true | none | none | |
»»»» level | integer | true | none | none | |
»»»» indexCode | string | true | none | none | |
»»»» domain | object | true | none | none | |
»»»»» id | string | true | none | none | |
»»»»» sendHost | string | true | none | none | |
»»»»» sendAddress | string | true | none | none | |
»»»»» sendAccount | string | true | none | none | |
»»»»» sendPassword | string | true | none | none | |
»»»»» ccAddress | string | true | none | none | |
»»»»» isUseClient | string | true | none | none | |
»»»»» functionDomain | string | true | none | none | |
»»»»» trash | string | true | none | none | |
»»»»» sender | string | true | none | none | |
»»»»» draft | string | true | none | none | |
»»»»» removed | string | true | none | none | |
»»»»» fetchServer | string | true | none | none | |
»»»»» fetchServerPort | string | true | none | none | |
»»»»» fetchProtocol | string | true | none | none | |
»»»»» fetchssl | string | true | none | none | |
»»»»» smtpServer | string | true | none | none | |
»»»»» smtpServerPort | string | true | none | none | |
»»»»» smtpAuthenticated | string | true | none | none | |
»»»»» smtpssl | string | true | none | none | |
»»»»» name | string | true | none | none | |
»»»»» secret | string | true | none | none | |
»»»»» systemName | string | true | none | none | |
»»»»» logoUrl | string | true | none | none | |
»»»»» parents | null | true | none | none | |
»»»»» field1 | string | true | none | none | |
»»»»» field2 | string | true | none | none | |
»»»»» field3 | string | true | none | none | |
»»»»» field4 | string | true | none | none | |
»»»»» field5 | string | true | none | none | |
»»»»» field6 | string | true | none | none | |
»»»»» field7 | string | true | none | none | |
»»»»» field8 | string | true | none | none | |
»»»»» field9 | string | true | none | none | |
»»»»» field10 | string | true | none | none | |
»»»»» field11 | string | true | none | none | |
»»»»» field12 | string | true | none | none | |
»»»»» field13 | string | true | none | none | |
»»»»» field14 | string | true | none | none | |
»»»»» field15 | string | true | none | none | |
»»»»» field16 | string | true | none | none | |
»»»»» field17 | string | true | none | none | |
»»»»» field18 | string | true | none | none | |
»»»»» field19 | string | true | none | none | |
»»»»» field20 | string | true | none | none | |
»»»»» openThM | boolean | true | none | none | |
»»»» valid | integer | true | none | none | |
»»»» orderByNo | integer | true | none | none | |
»»»» weixinDeptId | null | true | none | none | |
»»»» lanxinDeptId | null | true | none | none | |
»»»» dingdingDeptId | null | true | none | none | |
»»»» fsDeptId | null | true | none | none | |
»»»» field1 | string | true | none | none | |
»»»» field2 | string | true | none | none | |
»»»» field3 | string | true | none | none | |
»»»» field4 | string | true | none | none | |
»»»» field5 | string | true | none | none | |
»»»» field6 | string | true | none | none | |
»»»» field7 | string | true | none | none | |
»»»» field8 | string | true | none | none | |
»»»» field9 | string | true | none | none | |
»»»» field10 | string | true | none | none | |
»»»» field11 | string | true | none | none | |
»»»» field12 | string | true | none | none | |
»»»» field13 | string | true | none | none | |
»»»» field14 | string | true | none | none | |
»»»» field15 | string | true | none | none | |
»»»» field16 | string | true | none | none | |
»»»» field17 | string | true | none | none | |
»»»» field18 | string | true | none | none | |
»»»» field19 | string | true | none | none | |
»»»» field20 | string | true | none | none | |
»»»» fieldExtendsValues | [string] | true | none | none | |
»»» userDepartmentRoleSets | [object] | true | none | none | |
»»»» id | string | true | none | none | |
»»»» userId | string | true | none | none | |
»»»» roleId | string | true | none | none | |
»»»» departmentId | string | true | none | none | |
»»» useIM | boolean | true | none | none | |
»»» departmentUser | boolean | true | none | none | |
»»» validateAuthority | boolean | true | none | none | |
»»» orderByNo | integer | true | none | none | |
»»» proxyUser | null | true | none | none | |
»»» field1 | string | true | none | none | |
»»» field2 | string | true | none | none | |
»»» field3 | string | true | none | none | |
»»» field4 | string | true | none | none | |
»»» field5 | string | true | none | none | |
»»» field6 | string | true | none | none | |
»»» field7 | string | true | none | none | |
»»» field8 | string | true | none | none | |
»»» field9 | string | true | none | none | |
»»» field10 | string | true | none | none | |
»»» field11 | string | true | none | none | |
»»» field12 | string | true | none | none | |
»»» field13 | string | true | none | none | |
»»» field14 | string | true | none | none | |
»»» field15 | string | true | none | none | |
»»» field16 | string | true | none | none | |
»»» field17 | string | true | none | none | |
»»» field18 | string | true | none | none | |
»»» field19 | string | true | none | none | |
»»» field20 | string | true | none | none | |
»»» field21 | string | true | none | none | |
»»» field22 | string | true | none | none | |
»»» field23 | string | true | none | none | |
»»» field24 | string | true | none | none | |
»»» field25 | string | true | none | none | |
»»» viewSettings | null | true | none | none | |
»»» pwdErrorTimes | integer | true | none | none | |
»»» roleDepartments | [string] | true | none | none | |
»»» userSkin | string | true | none | none | |
»»» userStyle | null | true | none | none | |
»»» useHomePage | null | true | none | none | |
»»» pendingStyle | null | true | none | none | |
»»» generalPage | null | true | none | none | |
»»» configure | null | true | none | none | |
»»» commonOpinion | null | true | none | none | |
»»» type | null | true | none | none | |
»»» sessionid | null | true | none | none | |
»»» rolelist | null | true | none | none | |
»»» proxyUserId | null | true | none | none | |
»»» deptlist | null | true | none | none | |
»»» equipment | integer | true | none | none | |
»»» lowerDepartmentList | null | true | none | none | |
»»» superiorList | [string] | true | none | none | |
»» pageCount | integer | true | none | none |
myApps授权时/用户
GET 获取用户详情
GET /api/authtime/user/{id}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | path | string | 是 | 用户id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"domainid": "3CffNlgt9B9StIjIUPB",
"id": "__oP0irhWXGA2oZRusW1d",
"name": "admin1",
"nameLetter": "admin1",
"loginno": "admin1",
"loginpwd": "5b04090fd7b0cce521e29f7711c8b6efb9d5b81b1a0dff0638bc2c7e32451381829ed052a52868b985eb8883c38348af59f7e71987977a8122f5fb6a4c546e9e7fce2e13a0ea284c1bdc2c2e489c51f0",
"email": null,
"calendarType": null,
"status": 1,
"telephone": null,
"superAdmin": false,
"developer": false,
"defaultApplication": null,
"defaultDepartment": null,
"domainPermission": 0,
"superior": null,
"startProxyTime": null,
"endProxyTime": null,
"passwordArray": null,
"lockFlag": 1,
"publicKey": null,
"avatar": null,
"favoriteContacts": null,
"liaisonOfficer": false,
"permissionType": "public",
"telephone2": null,
"telephonePublic": true,
"telephonePublic2": true,
"emailPublic": true,
"userInfoPublic": true,
"signs": null,
"indexCode": "$$$test",
"ddUserId": null,
"fsUserId": null,
"recordLog": false,
"showEmail": false,
"level": 0,
"roles": [],
"remarks": null,
"manageDepartments": null,
"manageDepartmentList": null,
"interfaceDepartments": null,
"interfaceDepartmentList": null,
"departments": [],
"userDepartmentRoleSets": [
{
"id": "bdbc316f-f8e5-46bb-baf7-c18383b1e481",
"userId": "__oP0irhWXGA2oZRusW1d",
"roleId": "0001",
"departmentId": null
}
],
"useIM": false,
"departmentUser": true,
"validateAuthority": false,
"orderByNo": 0,
"proxyUser": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"field21": "",
"field22": "",
"field23": "",
"field24": "",
"field25": "",
"viewSettings": null,
"pwdErrorTimes": 0,
"roleDepartments": [],
"userSkin": null,
"userStyle": null,
"useHomePage": null,
"pendingStyle": null,
"generalPage": null,
"configure": null,
"commonOpinion": "[{\"id\":\"ccb1ff6b-3d70-4c57-b1c4-08be05bbe879\",\"content\":\"同意\"},{\"id\":\"933acc90-5e8a-4967-8000-6928063e99f2\",\"content\":\"批准\"},{\"id\":\"d83c1293-4cbc-4524-a1d2-f7c763634063\",\"content\":\"OK\"}]",
"type": null,
"sessionid": null,
"rolelist": null,
"proxyUserId": null,
"deptlist": null,
"equipment": 0,
"lowerDepartmentList": null,
"superiorList": []
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» domainid | string | true | none | none | |
»» id | string | true | none | none | |
»» name | string | true | none | none | |
»» nameLetter | string | true | none | none | |
»» loginno | string | true | none | none | |
»» loginpwd | string | true | none | none | |
null | true | none | none | ||
»» calendarType | null | true | none | none | |
»» status | integer | true | none | none | |
»» telephone | null | true | none | none | |
»» superAdmin | boolean | true | none | none | |
»» developer | boolean | true | none | none | |
»» defaultApplication | null | true | none | none | |
»» defaultDepartment | null | true | none | none | |
»» domainPermission | integer | true | none | none | |
»» superior | null | true | none | none | |
»» startProxyTime | null | true | none | none | |
»» endProxyTime | null | true | none | none | |
»» passwordArray | null | true | none | none | |
»» lockFlag | integer | true | none | none | |
»» publicKey | null | true | none | none | |
»» avatar | null | true | none | none | |
»» favoriteContacts | null | true | none | none | |
»» liaisonOfficer | boolean | true | none | none | |
»» permissionType | string | true | none | none | |
»» telephone2 | null | true | none | none | |
»» telephonePublic | boolean | true | none | none | |
»» telephonePublic2 | boolean | true | none | none | |
»» emailPublic | boolean | true | none | none | |
»» userInfoPublic | boolean | true | none | none | |
»» signs | null | true | none | none | |
»» indexCode | string | true | none | none | |
»» ddUserId | null | true | none | none | |
»» fsUserId | null | true | none | none | |
»» recordLog | boolean | true | none | none | |
»» showEmail | boolean | true | none | none | |
»» level | integer | true | none | none | |
»» roles | [string] | true | none | none | |
»» remarks | null | true | none | none | |
»» manageDepartments | null | true | none | none | |
»» manageDepartmentList | null | true | none | none | |
»» interfaceDepartments | null | true | none | none | |
»» interfaceDepartmentList | null | true | none | none | |
»» departments | [string] | true | none | none | |
»» userDepartmentRoleSets | [object] | true | none | none | |
»»» id | string | false | none | none | |
»»» userId | string | false | none | none | |
»»» roleId | string | false | none | none | |
»»» departmentId | null | false | none | none | |
»» useIM | boolean | true | none | none | |
»» departmentUser | boolean | true | none | none | |
»» validateAuthority | boolean | true | none | none | |
»» orderByNo | integer | true | none | none | |
»» proxyUser | null | true | none | none | |
»» field1 | string | true | none | none | |
»» field2 | string | true | none | none | |
»» field3 | string | true | none | none | |
»» field4 | string | true | none | none | |
»» field5 | string | true | none | none | |
»» field6 | string | true | none | none | |
»» field7 | string | true | none | none | |
»» field8 | string | true | none | none | |
»» field9 | string | true | none | none | |
»» field10 | string | true | none | none | |
»» field11 | string | true | none | none | |
»» field12 | string | true | none | none | |
»» field13 | string | true | none | none | |
»» field14 | string | true | none | none | |
»» field15 | string | true | none | none | |
»» field16 | string | true | none | none | |
»» field17 | string | true | none | none | |
»» field18 | string | true | none | none | |
»» field19 | string | true | none | none | |
»» field20 | string | true | none | none | |
»» field21 | string | true | none | none | |
»» field22 | string | true | none | none | |
»» field23 | string | true | none | none | |
»» field24 | string | true | none | none | |
»» field25 | string | true | none | none | |
»» viewSettings | null | true | none | none | |
»» pwdErrorTimes | integer | true | none | none | |
»» roleDepartments | [string] | true | none | none | |
»» userSkin | null | true | none | none | |
»» userStyle | null | true | none | none | |
»» useHomePage | null | true | none | none | |
»» pendingStyle | null | true | none | none | |
»» generalPage | null | true | none | none | |
»» configure | null | true | none | none | |
»» commonOpinion | string | true | none | none | |
»» type | null | true | none | none | |
»» sessionid | null | true | none | none | |
»» rolelist | null | true | none | none | |
»» proxyUserId | null | true | none | none | |
»» deptlist | null | true | none | none | |
»» equipment | integer | true | none | none | |
»» lowerDepartmentList | null | true | none | none | |
»» superiorList | [string] | true | none | none |
GET 获取指定用户部门角色和km角色关系
GET /api/authtime/user/{userid}/rolewithdeptandkmrelation
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
userid | path | string | 是 | 用户id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"departmentdata": [
{
"departmentName": "测试",
"departmentId": "Z42xU8LmniRouZ93E7s",
"isDefaultDepartment": true,
"applicationData": [
{
"roleData": [
{
"roleId": "SYsIw51stcCwm7fVYYs",
"roleName": "宣传部"
},
{
"roleId": "3tFw1boS5L9vXoJCr6Z",
"roleName": "管理员"
},
{
"roleId": "2jSs6cnzu4mzY9C13vF",
"roleName": "员工"
},
{
"roleId": "2ytUeoxBqghwofmBALl",
"roleName": "办公室"
},
{
"roleId": "kPLbeydkgiYW6NIkCt0",
"roleName": "主管"
},
{
"roleId": "SYsIw51stcCwm7fVYYs",
"roleName": "宣传部"
},
{
"roleId": "2jSs6cnzu4mzY9C13vF",
"roleName": "员工"
},
{
"roleId": "0Q0LkJpfR1ejtO8rD3p",
"roleName": "人事"
},
{
"roleId": "2ytUeoxBqghwofmBALl",
"roleName": "办公室"
},
{
"roleId": "3tFw1boS5L9vXoJCr6Z",
"roleName": "管理员"
},
{
"roleId": "kPLbeydkgiYW6NIkCt0",
"roleName": "主管"
},
{
"roleId": "0Q0LkJpfR1ejtO8rD3p",
"roleName": "人事"
}
],
"applicationId": "HdPeBqYwJyFyjHkhZu3",
"applicationName": "2.0功能示例"
},
{
"roleData": [],
"applicationId": "11de-f053-df18d577-aeb6-19a7865cfdb6",
"applicationName": "行政办公"
}
]
}
],
"departmentstatu": true,
"kmdata": [
{
"id": "0001",
"levels": 0,
"name": "员工"
},
{
"id": "0010",
"levels": 10,
"name": "部门知识管理员"
},
{
"id": "0020",
"levels": 20,
"name": "专委会知识管理员"
},
{
"id": "0100",
"levels": 10,
"name": "企业知识管理员"
}
],
"kmstatu": true
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» departmentdata | [object] | true | none | none | |
»»» departmentName | string | false | none | none | |
»»» departmentId | string | false | none | none | |
»»» isDefaultDepartment | boolean | false | none | none | |
»»» applicationData | [object] | false | none | none | |
»»»» roleData | [object] | true | none | none | |
»»»»» roleId | string | true | none | none | |
»»»»» roleName | string | true | none | none | |
»»»» applicationId | string | true | none | none | |
»»»» applicationName | string | true | none | none | |
»» departmentstatu | boolean | true | none | none | |
»» kmdata | [object] | true | none | none | |
»»» id | string | true | none | none | |
»»» levels | integer | true | none | none | |
»»» name | string | true | none | none | |
»» kmstatu | boolean | true | none | none |
POST 根据企业域拿用户
POST /api/authtime/domain/{domainid}/users
Body 请求参数
{
"name": "string",
"loginno": "string",
"superiorname": "string",
"applicationid": "string",
"roleid": "string"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
departmentid | query | string | 否 | none | |
orderby | query | string | 否 | none | |
currpage | query | string | 否 | none | |
lines | query | string | 否 | none | |
body | body | object | 否 | none | |
» name | body | string | 是 | 用户名称 | none |
» loginno | body | string | 是 | 用户账号 | none |
» superiorname | body | string | 是 | 上级名称 | none |
» applicationid | body | string | 是 | 软件id | none |
» roleid | body | string | 是 | 角色id | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 3,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"domainid": "3CffNlgt9B9StIjIUPB",
"id": "cUGA5s3spQVvf8VF9MO",
"name": "wxw3",
"nameLetter": "wxw3",
"loginno": "wxw3",
"loginpwd": "de50787a1a72f4e5e7c308f3affaa76971647b434e646621",
"email": null,
"calendarType": "ZKsRAyDrAP7u0NKPQdR",
"status": 1,
"telephone": null,
"superAdmin": false,
"developer": false,
"defaultApplication": null,
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainPermission": 0,
"superior": null,
"startProxyTime": null,
"endProxyTime": null,
"passwordArray": null,
"lockFlag": 1,
"publicKey": null,
"avatar": null,
"favoriteContacts": null,
"liaisonOfficer": false,
"permissionType": "public",
"telephone2": null,
"telephonePublic": true,
"telephonePublic2": true,
"emailPublic": true,
"userInfoPublic": true,
"signs": null,
"indexCode": "$$$test",
"ddUserId": null,
"fsUserId": null,
"recordLog": false,
"showEmail": false,
"level": 0,
"roles": [],
"remarks": null,
"manageDepartments": null,
"manageDepartmentList": null,
"interfaceDepartments": "[\"\"]",
"interfaceDepartmentList": [],
"departments": [
{
"id": "Z42xU8LmniRouZ93E7s",
"name": "总部2",
"superior": null,
"code": "1",
"level": 0,
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"fsDeptId": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"fieldExtendsValues": []
}
],
"userDepartmentRoleSets": [
{
"id": "40288afc7df9d115017df9f5402c0004",
"userId": "cUGA5s3spQVvf8VF9MO",
"roleId": "__D0PalsVc9VxjGflfi69",
"departmentId": "Z42xU8LmniRouZ93E7s"
}
],
"useIM": false,
"departmentUser": false,
"validateAuthority": false,
"orderByNo": 0,
"proxyUser": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"field21": "",
"field22": "",
"field23": "",
"field24": "",
"field25": "",
"viewSettings": null,
"pwdErrorTimes": 0,
"roleDepartments": [],
"userSkin": "good",
"userStyle": null,
"useHomePage": null,
"pendingStyle": null,
"generalPage": null,
"configure": null,
"commonOpinion": null,
"type": null,
"sessionid": null,
"rolelist": null,
"proxyUserId": null,
"deptlist": null,
"equipment": 0,
"lowerDepartmentList": null,
"superiorList": []
},
{
"domainid": "3CffNlgt9B9StIjIUPB",
"id": "Dl3O8WCjSwZxJ85Inil",
"name": "wxw2",
"nameLetter": "wxw2",
"loginno": "wxw2",
"loginpwd": "bc4970fdeac77e064ab9c739f31088ec10dec42e761cc280",
"email": null,
"calendarType": "ZKsRAyDrAP7u0NKPQdR",
"status": 1,
"telephone": null,
"superAdmin": false,
"developer": false,
"defaultApplication": null,
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainPermission": 0,
"superior": null,
"startProxyTime": null,
"endProxyTime": null,
"passwordArray": null,
"lockFlag": 1,
"publicKey": null,
"avatar": null,
"favoriteContacts": null,
"liaisonOfficer": false,
"permissionType": "public",
"telephone2": null,
"telephonePublic": true,
"telephonePublic2": true,
"emailPublic": true,
"userInfoPublic": true,
"signs": null,
"indexCode": "$$$test",
"ddUserId": null,
"fsUserId": null,
"recordLog": false,
"showEmail": false,
"level": 0,
"roles": [],
"remarks": null,
"manageDepartments": null,
"manageDepartmentList": null,
"interfaceDepartments": "[\"\"]",
"interfaceDepartmentList": [],
"departments": [
{
"id": "Z42xU8LmniRouZ93E7s",
"name": "总部2",
"superior": null,
"code": "1",
"level": 0,
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"fsDeptId": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"fieldExtendsValues": []
}
],
"userDepartmentRoleSets": [
{
"id": "40288afc7df9d115017df9f4cc4f0003",
"userId": "Dl3O8WCjSwZxJ85Inil",
"roleId": "__2Qgh3bu554Krn0CxmN7",
"departmentId": "Z42xU8LmniRouZ93E7s"
}
],
"useIM": false,
"departmentUser": false,
"validateAuthority": false,
"orderByNo": 0,
"proxyUser": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"field21": "",
"field22": "",
"field23": "",
"field24": "",
"field25": "",
"viewSettings": null,
"pwdErrorTimes": 0,
"roleDepartments": [],
"userSkin": "good",
"userStyle": null,
"useHomePage": null,
"pendingStyle": null,
"generalPage": null,
"configure": null,
"commonOpinion": null,
"type": null,
"sessionid": null,
"rolelist": null,
"proxyUserId": null,
"deptlist": null,
"equipment": 0,
"lowerDepartmentList": null,
"superiorList": []
},
{
"domainid": "3CffNlgt9B9StIjIUPB",
"id": "tGnu7ptDCyBpFbB7t2L",
"name": "wxw1",
"nameLetter": "wxw1",
"loginno": "wxw1",
"loginpwd": "50c96f1be2fe8178823f0483419029220be3a484ff213172",
"email": null,
"calendarType": "ZKsRAyDrAP7u0NKPQdR",
"status": 1,
"telephone": null,
"superAdmin": false,
"developer": false,
"defaultApplication": null,
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainPermission": 0,
"superior": null,
"startProxyTime": null,
"endProxyTime": null,
"passwordArray": null,
"lockFlag": 1,
"publicKey": null,
"avatar": null,
"favoriteContacts": null,
"liaisonOfficer": false,
"permissionType": "public",
"telephone2": null,
"telephonePublic": true,
"telephonePublic2": true,
"emailPublic": true,
"userInfoPublic": true,
"signs": null,
"indexCode": "$$$test",
"ddUserId": null,
"fsUserId": null,
"recordLog": false,
"showEmail": false,
"level": 0,
"roles": [],
"remarks": null,
"manageDepartments": null,
"manageDepartmentList": null,
"interfaceDepartments": "[\"\"]",
"interfaceDepartmentList": [],
"departments": [
{
"id": "Z42xU8LmniRouZ93E7s",
"name": "总部2",
"superior": null,
"code": "1",
"level": 0,
"indexCode": "5fbaLCe8DIbIP2BdQoc_Z42xU8LmniRouZ93E7s",
"domain": {
"id": "3CffNlgt9B9StIjIUPB",
"sendHost": "smtp.exmail.qq.com",
"sendAddress": "nicole@teemlink.com",
"sendAccount": "nicole@teemlink.com",
"sendPassword": "MyWAdC2ThUJoJgZa",
"ccAddress": "",
"isUseClient": "true",
"functionDomain": "teemlink.com",
"trash": "Junk E-mail",
"sender": "Sent Items",
"draft": "Drafts",
"removed": "removed",
"fetchServer": "imap.exmail.qq.com",
"fetchServerPort": "993",
"fetchProtocol": "imap",
"fetchssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"smtpAuthenticated": "true",
"smtpssl": "false",
"name": "公司域管理",
"secret": "11ed-04f8-151f5994-bba9-8391db7b4e4f",
"systemName": "公司域管理",
"logoUrl": "",
"parents": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"openThM": false
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"fsDeptId": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"fieldExtendsValues": []
}
],
"userDepartmentRoleSets": [
{
"id": "40288afc7df9d115017df9f284020001",
"userId": "tGnu7ptDCyBpFbB7t2L",
"roleId": "__nevxKm9k1GdcAwctmQS",
"departmentId": "Z42xU8LmniRouZ93E7s"
}
],
"useIM": false,
"departmentUser": false,
"validateAuthority": false,
"orderByNo": 0,
"proxyUser": null,
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"field21": "",
"field22": "",
"field23": "",
"field24": "",
"field25": "",
"viewSettings": null,
"pwdErrorTimes": 0,
"roleDepartments": [],
"userSkin": "good",
"userStyle": null,
"useHomePage": null,
"pendingStyle": null,
"generalPage": null,
"configure": null,
"commonOpinion": null,
"type": null,
"sessionid": null,
"rolelist": null,
"proxyUserId": null,
"deptlist": null,
"equipment": 0,
"lowerDepartmentList": null,
"superiorList": []
}
],
"pageCount": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | false | none | none | |
»» rowCount | integer | false | none | none | |
»» linesPerPage | integer | false | none | none | |
»» pageNo | integer | false | none | none | |
»» datas | [object] | false | none | none | |
»»» domainid | string | false | none | none | |
»»» id | string | false | none | none | |
»»» name | string | false | none | none | |
»»» nameLetter | string | false | none | none | |
»»» loginno | string | false | none | none | |
»»» loginpwd | string | false | none | none | |
null | false | none | none | ||
»»» calendarType | string | false | none | none | |
»»» status | integer | false | none | none | |
»»» telephone | null | false | none | none | |
»»» superAdmin | boolean | false | none | none | |
»»» developer | boolean | false | none | none | |
»»» defaultApplication | null | false | none | none | |
»»» defaultDepartment | string | false | none | none | |
»»» domainPermission | integer | false | none | none | |
»»» superior | null | false | none | none | |
»»» startProxyTime | null | false | none | none | |
»»» endProxyTime | null | false | none | none | |
»»» passwordArray | null | false | none | none | |
»»» lockFlag | integer | false | none | none | |
»»» publicKey | null | false | none | none | |
»»» avatar | null | false | none | none | |
»»» favoriteContacts | null | false | none | none | |
»»» liaisonOfficer | boolean | false | none | none | |
»»» permissionType | string | false | none | none | |
»»» telephone2 | null | false | none | none | |
»»» telephonePublic | boolean | false | none | none | |
»»» telephonePublic2 | boolean | false | none | none | |
»»» emailPublic | boolean | false | none | none | |
»»» userInfoPublic | boolean | false | none | none | |
»»» signs | null | false | none | none | |
»»» indexCode | string | false | none | none | |
»»» ddUserId | null | false | none | none | |
»»» fsUserId | null | false | none | none | |
»»» recordLog | boolean | false | none | none | |
»»» showEmail | boolean | false | none | none | |
»»» level | integer | false | none | none | |
»»» roles | [string] | false | none | none | |
»»» remarks | null | false | none | none | |
»»» manageDepartments | null | false | none | none | |
»»» manageDepartmentList | null | false | none | none | |
»»» interfaceDepartments | string | false | none | none | |
»»» interfaceDepartmentList | [string] | false | none | none | |
»»» departments | [object] | false | none | none | |
»»»» id | string | true | none | none | |
»»»» name | string | true | none | none | |
»»»» superior | null | true | none | none | |
»»»» code | string | true | none | none | |
»»»» level | integer | true | none | none | |
»»»» indexCode | string | true | none | none | |
»»»» domain | object | true | none | none | |
»»»»» id | string | true | none | none | |
»»»»» sendHost | string | true | none | none | |
»»»»» sendAddress | string | true | none | none | |
»»»»» sendAccount | string | true | none | none | |
»»»»» sendPassword | string | true | none | none | |
»»»»» ccAddress | string | true | none | none | |
»»»»» isUseClient | string | true | none | none | |
»»»»» functionDomain | string | true | none | none | |
»»»»» trash | string | true | none | none | |
»»»»» sender | string | true | none | none | |
»»»»» draft | string | true | none | none | |
»»»»» removed | string | true | none | none | |
»»»»» fetchServer | string | true | none | none | |
»»»»» fetchServerPort | string | true | none | none | |
»»»»» fetchProtocol | string | true | none | none | |
»»»»» fetchssl | string | true | none | none | |
»»»»» smtpServer | string | true | none | none | |
»»»»» smtpServerPort | string | true | none | none | |
»»»»» smtpAuthenticated | string | true | none | none | |
»»»»» smtpssl | string | true | none | none | |
»»»»» name | string | true | none | none | |
»»»»» secret | string | true | none | none | |
»»»»» systemName | string | true | none | none | |
»»»»» logoUrl | string | true | none | none | |
»»»»» parents | null | true | none | none | |
»»»»» field1 | string | true | none | none | |
»»»»» field2 | string | true | none | none | |
»»»»» field3 | string | true | none | none | |
»»»»» field4 | string | true | none | none | |
»»»»» field5 | string | true | none | none | |
»»»»» field6 | string | true | none | none | |
»»»»» field7 | string | true | none | none | |
»»»»» field8 | string | true | none | none | |
»»»»» field9 | string | true | none | none | |
»»»»» field10 | string | true | none | none | |
»»»»» field11 | string | true | none | none | |
»»»»» field12 | string | true | none | none | |
»»»»» field13 | string | true | none | none | |
»»»»» field14 | string | true | none | none | |
»»»»» field15 | string | true | none | none | |
»»»»» field16 | string | true | none | none | |
»»»»» field17 | string | true | none | none | |
»»»»» field18 | string | true | none | none | |
»»»»» field19 | string | true | none | none | |
»»»»» field20 | string | true | none | none | |
»»»»» openThM | boolean | true | none | none | |
»»»» valid | integer | true | none | none | |
»»»» orderByNo | integer | true | none | none | |
»»»» weixinDeptId | null | true | none | none | |
»»»» lanxinDeptId | null | true | none | none | |
»»»» dingdingDeptId | null | true | none | none | |
»»»» fsDeptId | null | true | none | none | |
»»»» field1 | string | true | none | none | |
»»»» field2 | string | true | none | none | |
»»»» field3 | string | true | none | none | |
»»»» field4 | string | true | none | none | |
»»»» field5 | string | true | none | none | |
»»»» field6 | string | true | none | none | |
»»»» field7 | string | true | none | none | |
»»»» field8 | string | true | none | none | |
»»»» field9 | string | true | none | none | |
»»»» field10 | string | true | none | none | |
»»»» field11 | string | true | none | none | |
»»»» field12 | string | true | none | none | |
»»»» field13 | string | true | none | none | |
»»»» field14 | string | true | none | none | |
»»»» field15 | string | true | none | none | |
»»»» field16 | string | true | none | none | |
»»»» field17 | string | true | none | none | |
»»»» field18 | string | true | none | none | |
»»»» field19 | string | true | none | none | |
»»»» field20 | string | true | none | none | |
»»»» fieldExtendsValues | [string] | true | none | none | |
»»» userDepartmentRoleSets | [object] | false | none | none | |
»»»» id | string | true | none | none | |
»»»» userId | string | true | none | none | |
»»»» roleId | string | true | none | none | |
»»»» departmentId | string | true | none | none | |
»»» useIM | boolean | false | none | none | |
»»» departmentUser | boolean | false | none | none | |
»»» validateAuthority | boolean | false | none | none | |
»»» orderByNo | integer | false | none | none | |
»»» proxyUser | null | false | none | none | |
»»» field1 | string | false | none | none | |
»»» field2 | string | false | none | none | |
»»» field3 | string | false | none | none | |
»»» field4 | string | false | none | none | |
»»» field5 | string | false | none | none | |
»»» field6 | string | false | none | none | |
»»» field7 | string | false | none | none | |
»»» field8 | string | false | none | none | |
»»» field9 | string | false | none | none | |
»»» field10 | string | false | none | none | |
»»» field11 | string | false | none | none | |
»»» field12 | string | false | none | none | |
»»» field13 | string | true | none | none | |
»»» field14 | string | true | none | none | |
»»» field15 | string | true | none | none | |
»»» field16 | string | true | none | none | |
»»» field17 | string | true | none | none | |
»»» field18 | string | true | none | none | |
»»» field19 | string | true | none | none | |
»»» field20 | string | true | none | none | |
»»» field21 | string | true | none | none | |
»»» field22 | string | true | none | none | |
»»» field23 | string | true | none | none | |
»»» field24 | string | true | none | none | |
»»» field25 | string | true | none | none | |
»»» viewSettings | null | true | none | none | |
»»» pwdErrorTimes | integer | true | none | none | |
»»» roleDepartments | [string] | true | none | none | |
»»» userSkin | string | true | none | none | |
»»» userStyle | null | true | none | none | |
»»» useHomePage | null | true | none | none | |
»»» pendingStyle | null | true | none | none | |
»»» generalPage | null | true | none | none | |
»»» configure | null | true | none | none | |
»»» commonOpinion | null | true | none | none | |
»»» type | null | true | none | none | |
»»» sessionid | null | true | none | none | |
»»» rolelist | null | true | none | none | |
»»» proxyUserId | null | true | none | none | |
»»» deptlist | null | true | none | none | |
»»» equipment | integer | true | none | none | |
»»» lowerDepartmentList | null | true | none | none | |
»»» superiorList | [string] | true | none | none | |
»» pageCount | integer | false | none | none |
POST 创建用户
POST /api/authtime/domain/{domainid}/user
Body 请求参数
{
"name": "ekko15",
"loginno": "ekko115",
"loginpwd": "IzNDU2MT",
"email": "email@teemlink.com",
"emailPublic": true,
"telephone": "13192286346",
"telephonePublic": true,
"calendarType": "i7xj207zBMEwBp8aATE",
"calendarTypeName": "夜班日历",
"telephone2": "13192286349",
"telephonePublic2": true,
"reportTree": "",
"superiorid": "",
"allUsers": "",
"_proxyUser": "",
"remarks": "1111",
"startProxyTime": "2019-09-30 16:41:01",
"endProxyTime": "2019-10-11 16:41:04",
"permissionType": "public",
"lockFlag": 1,
"dimission": 1,
"_strstatus": true,
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"manageDepartments": "Z42xU8LmniRouZ93E7s,Z42xU8LmniRouZ93E7s",
"interfaceDepartments": "Z42xU8LmniRouZ93E7s,Z42xU8LmniRouZ93E7s"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» name | body | string | 是 | none | |
» loginno | body | string | 是 | none | |
» loginpwd | body | string | 是 | none | |
body | string | 是 | none | ||
» emailPublic | body | boolean | 是 | none | |
» telephone | body | string | 是 | none | |
» telephonePublic | body | boolean | 是 | none | |
» calendarType | body | string | 是 | none | |
» calendarTypeName | body | string | 是 | none | |
» telephone2 | body | string | 是 | none | |
» telephonePublic2 | body | boolean | 是 | none | |
» reportTree | body | string | 是 | none | |
» superiorid | body | string | 是 | none | |
» allUsers | body | string | 是 | none | |
» _proxyUser | body | string | 是 | none | |
» remarks | body | string | 是 | none | |
» startProxyTime | body | string | 是 | none | |
» endProxyTime | body | string | 是 | none | |
» permissionType | body | string | 是 | none | |
» lockFlag | body | integer | 是 | none | |
» dimission | body | integer | 是 | none | |
» _strstatus | body | boolean | 是 | none | |
» defaultDepartment | body | string | 是 | none | |
» _userRoleDepartmentJson | body | [object] | 是 | none | |
»» roleId | body | string | 否 | none | |
»» departmentId | body | string | 否 | none | |
»» applicationId | body | string | 否 | none | |
»» isDefaultDepartment | body | string | 否 | none | |
» _userKMRoleJson | body | [string] | 是 | none | |
» manageDepartments | body | string | 是 | none | |
» interfaceDepartments | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"id": "uuid",
"name": "无限极公司"
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
201 | Created | 成功 | Inline |
返回数据结构
状态码 201
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | [object] | true | none | none | |
»» id | string | false | none | none | |
»» name | string | false | none | none |
DELETE 用户删除
DELETE /api/authtime/domain/{domainid}/user
Body 请求参数
[
"id1",
"id2"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域ID | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "删除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
GET 根据账号获取指定用户
GET /api/authtime/domain/{domainid}/user
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
loginNo | query | string | 否 | 用户账号 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"name": "admin1",
"loginpwd": "�W^�N��Z�g�{��s}<v�}��������~\u001e뎺",
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"field5": "",
"field6": "",
"field7": "",
"field8": "",
"field9": "",
"field10": "",
"field11": "",
"field12": "",
"field13": "",
"field14": "",
"field15": "",
"field16": "",
"field17": "",
"field18": "",
"field19": "",
"field20": "",
"field21": "",
"field22": "",
"field23": "",
"field24": "",
"field25": ""
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» name | string | true | none | none | |
»» loginpwd | string | true | none | none | |
»» field1 | string | true | none | none | |
»» field2 | string | true | none | none | |
»» field3 | string | true | none | none | |
»» field4 | string | true | none | none | |
»» field5 | string | true | none | none | |
»» field6 | string | true | none | none | |
»» field7 | string | true | none | none | |
»» field8 | string | true | none | none | |
»» field9 | string | true | none | none | |
»» field10 | string | true | none | none | |
»» field11 | string | true | none | none | |
»» field12 | string | true | none | none | |
»» field13 | string | true | none | none | |
»» field14 | string | true | none | none | |
»» field15 | string | true | none | none | |
»» field16 | string | true | none | none | |
»» field17 | string | true | none | none | |
»» field18 | string | true | none | none | |
»» field19 | string | true | none | none | |
»» field20 | string | true | none | none | |
»» field21 | string | true | none | none | |
»» field22 | string | true | none | none | |
»» field23 | string | true | none | none | |
»» field24 | string | true | none | none | |
»» field25 | string | true | none | none |
PUT 更新用户
PUT /api/authtime/domain/{domainid}/user/{id}
Body 请求参数
{
"id": "__jpXXK7LJs7EnCb9vZyw",
"name": "ekko15",
"loginno": "ekko115",
"loginpwd": "IzNDU2MT",
"email": "email@teemlink.com",
"emailPublic": true,
"telephone": "13192286346",
"telephonePublic": true,
"calendarType": "i7xj207zBMEwBp8aATE",
"calendarTypeName": "夜班日历",
"telephone2": "13192286349",
"telephonePublic2": true,
"reportTree": "",
"superiorid": "",
"allUsers": "",
"_proxyUser": "",
"remarks": "1111",
"startProxyTime": "2019-09-30 16:41:01",
"endProxyTime": "2019-10-11 16:41:04",
"permissionType": "public",
"lockFlag": 1,
"dimission": 1,
"status": 1,
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"departments": [
{
"id": "__RgU8FYyXOlqTvun1vR7",
"name": "2",
"superior": null,
"code": "00",
"level": 0,
"indexCode": "__RgU8FYyXOlqTvun1vR7",
"domain": {
"id": "__t64lurS4a2ZuWARnvcU",
"sendHost": null,
"sendAddress": null,
"sendAccount": null,
"sendPassword": null,
"ccAddress": null,
"isUseClient": null,
"functionDomain": null,
"trash": null,
"sender": null,
"draft": null,
"removed": null,
"fetchServer": null,
"fetchServerPort": null,
"fetchProtocol": null,
"fetchssl": null,
"smtpServer": null,
"smtpServerPort": null,
"smtpAuthenticated": null,
"smtpssl": null,
"name": "2",
"systemName": "",
"logoUrl": ""
},
"valid": 1,
"orderByNo": 0,
"weixinDeptId": null,
"lanxinDeptId": null,
"dingdingDeptId": null,
"field1": null,
"field2": null,
"field3": null,
"field4": null,
"field5": null,
"field6": null,
"field7": null,
"field8": null,
"field9": null,
"field10": null,
"fieldExtendsValues": []
}
],
"_userRoleDepartmentJson": "[{\"roleId\":\"kPLbeydkgiYW6NIkCt0\",\"departmentId\":\"Z42xU8LmniRouZ93E7s\",\"applicationId\":\"HdPeBqYwJyFyjHkhZu3\",\"isDefaultDepartment\":\"true\"}]",
"_userKMRoleJson": "[\"0001\"]",
"manageDepartments": "Z42xU8LmniRouZ93E7s,Z42xU8LmniRouZ93E7s",
"interfaceDepartments": "Z42xU8LmniRouZ93E7s,Z42xU8LmniRouZ93E7s"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | 用户id | |
body | body | object | 否 | none | |
» id | body | string | 是 | none | |
» name | body | string | 是 | none | |
» loginno | body | string | 是 | none | |
» loginpwd | body | string | 是 | none | |
body | string | 是 | none | ||
» emailPublic | body | boolean | 是 | none | |
» telephone | body | string | 是 | none | |
» telephonePublic | body | boolean | 是 | none | |
» calendarType | body | string | 是 | none | |
» calendarTypeName | body | string | 是 | none | |
» telephone2 | body | string | 是 | none | |
» telephonePublic2 | body | boolean | 是 | none | |
» reportTree | body | string | 是 | none | |
» superiorid | body | string | 是 | none | |
» allUsers | body | string | 是 | none | |
» _proxyUser | body | string | 是 | none | |
» remarks | body | string | 是 | none | |
» startProxyTime | body | string | 是 | none | |
» endProxyTime | body | string | 是 | none | |
» permissionType | body | string | 是 | none | |
» lockFlag | body | integer | 是 | none | |
» dimission | body | integer | 是 | none | |
» status | body | integer | 是 | none | |
» defaultDepartment | body | string | 是 | none | |
» departments | body | [object] | 是 | none | |
»» id | body | string | 否 | none | |
»» name | body | string | 否 | none | |
»» superior | body | null | 否 | none | |
»» code | body | string | 否 | none | |
»» level | body | integer | 否 | none | |
»» indexCode | body | string | 否 | none | |
»» domain | body | object | 否 | none | |
»»» id | body | string | 是 | none | |
»»» sendHost | body | null | 是 | none | |
»»» sendAddress | body | null | 是 | none | |
»»» sendAccount | body | null | 是 | none | |
»»» sendPassword | body | null | 是 | none | |
»»» ccAddress | body | null | 是 | none | |
»»» isUseClient | body | null | 是 | none | |
»»» functionDomain | body | null | 是 | none | |
»»» trash | body | null | 是 | none | |
»»» sender | body | null | 是 | none | |
»»» draft | body | null | 是 | none | |
»»» removed | body | null | 是 | none | |
»»» fetchServer | body | null | 是 | none | |
»»» fetchServerPort | body | null | 是 | none | |
»»» fetchProtocol | body | null | 是 | none | |
»»» fetchssl | body | null | 是 | none | |
»»» smtpServer | body | null | 是 | none | |
»»» smtpServerPort | body | null | 是 | none | |
»»» smtpAuthenticated | body | null | 是 | none | |
»»» smtpssl | body | null | 是 | none | |
»»» name | body | string | 是 | none | |
»»» systemName | body | string | 是 | none | |
»»» logoUrl | body | string | 是 | none | |
»» valid | body | integer | 否 | none | |
»» orderByNo | body | integer | 否 | none | |
»» weixinDeptId | body | null | 否 | none | |
»» lanxinDeptId | body | null | 否 | none | |
»» dingdingDeptId | body | null | 否 | none | |
»» field1 | body | null | 否 | none | |
»» field2 | body | null | 否 | none | |
»» field3 | body | null | 否 | none | |
»» field4 | body | null | 否 | none | |
»» field5 | body | null | 否 | none | |
»» field6 | body | null | 否 | none | |
»» field7 | body | null | 否 | none | |
»» field8 | body | null | 否 | none | |
»» field9 | body | null | 否 | none | |
»» field10 | body | null | 否 | none | |
»» fieldExtendsValues | body | [string] | 否 | none | |
» _userRoleDepartmentJson | body | string | 是 | none | |
» _userKMRoleJson | body | string | 是 | none | |
» manageDepartments | body | string | 是 | none | |
» interfaceDepartments | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
POST 给角色批量添加用户
POST /api/authtime/user/batch
Body 请求参数
{
"roleId": "__2Qgh3bu554Krn0CxmN7",
"deptIds": [
"__7AR6G1T02Nb55labPkr"
],
"userIds": [
"__IuIvOafEXqqlBsTQXpZ"
]
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | object | 否 | none | |
» roleId | body | string | 是 | 角色id | none |
» deptIds | body | [string] | 是 | 部门id | none |
» userIds | body | [string] | 是 | 用户id集合 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
myApps授权时/角色
POST 获取角色列表
POST /api/authtime/application/{applicationid}/roles
Body 请求参数
{
"name": ""
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
applicationid | path | string | 是 | 软件id | |
currpage | query | string | 否 | 当前页码 | |
pagelines | query | string | 否 | 当前页大小 | |
body | body | object | 否 | none | |
» name | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"role": [
{
"roleId": "kxI25aTfrAdrsTpgFPO",
"roleName": "后端开发工程师",
"defaultRole": false
},
{
"roleId": "jcXfl8SjCTwmgC1BAAD",
"roleName": "测试工程师",
"defaultRole": false
},
{
"roleId": "UELSgsHXdMcRKv8s1DW",
"roleName": "系统管理员",
"defaultRole": false
},
{
"roleId": "GIoAkTfhr9ryEaE0eRl",
"roleName": "销售员",
"defaultRole": false
},
{
"roleId": "N1RinPLzVAVr19n8zp4",
"roleName": "技术经理",
"defaultRole": false
},
{
"roleId": "c9G4aTyxKpSmkHylWfR",
"roleName": "后端组组长",
"defaultRole": false
},
{
"roleId": "TUBUoSa3f7CozPzlOdu",
"roleName": "技术支持专员",
"defaultRole": false
},
{
"roleId": "qBqfne3CIkcTKEZA0pv",
"roleName": "前端组组长",
"defaultRole": false
},
{
"roleId": "Ip7GeBONZodtyivGfuy",
"roleName": "前端开发工程",
"defaultRole": false
},
{
"roleId": "ZmUbKW7Fqd8mfxwywzj",
"roleName": "总经理",
"defaultRole": false
},
{
"roleId": "__9dTYPVliNLBreew8B7C",
"roleName": "主管",
"defaultRole": false
},
{
"roleId": "fBUXdkAlWTdGXqOq4cI",
"roleName": "员工",
"defaultRole": true
},
{
"roleId": "x727QbutsmBYSCAIuzk",
"roleName": "财务",
"defaultRole": false
},
{
"roleId": "6JnsDCJmsdvKLKNj1KB",
"roleName": "产品经理",
"defaultRole": false
},
{
"roleId": "__AuW2dQuBhd94LI4aNik",
"roleName": "测试",
"defaultRole": false
},
{
"roleId": "7o3rCExlogqviPei7yy",
"roleName": "人事",
"defaultRole": false
},
{
"roleId": "__IW9uc46jwYfe1Sc9xhz",
"roleName": "申请人",
"defaultRole": false
},
{
"roleId": "AY0LZISRYzGNL3aSi0h",
"roleName": "前台",
"defaultRole": false
},
{
"roleId": "osETf5DmYDRbS27jLbE",
"roleName": "测试组组长",
"defaultRole": false
},
{
"roleId": "PkMAB3hJbAuihJwwFgE",
"roleName": "技术支持组组长",
"defaultRole": false
},
{
"roleId": "Ye39OSputqcpg8RTUaC",
"roleName": "销售主管",
"defaultRole": false
}
],
"currpage": 1,
"pagelines": 2147483647,
"rowCount": 21
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» role | [object] | true | none | none | |
»»» roleId | string | true | none | none | |
»»» roleName | string | true | none | none | |
»»» defaultRole | boolean | true | none | none | |
»» currpage | integer | true | none | none | |
»» pagelines | integer | true | none | none | |
»» rowCount | integer | true | none | none |
GET 获取角色列表
GET /api/authime/application/{applicationid}/roles
Body 请求参数
{
"name": "string"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
applicationid | path | string | 是 | 软件id | |
currpage | query | string | 否 | 当前页码 | |
pagelines | query | string | 否 | 当前页大小 | |
body | body | object | 否 | none | |
» name | body | string | 是 | none |
返回示例
200 Response
{
"errcode": 0,
"errmsg": "string",
"data": {
"role": [
{
"roleId": "string",
"roleName": "string",
"defaultRole": true
}
],
"currpage": 0,
"lines": 0,
"rowCount": 0
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» role | [object] | true | none | none | |
»»» roleId | string | false | none | none | |
»»» roleName | string | false | none | none | |
»»» defaultRole | boolean | false | none | none | |
»» currpage | integer | true | none | none | |
»» lines | integer | true | none | none | |
»» rowCount | integer | true | none | none |
myApps授权时/软件
PUT 禁用系统软件配置
PUT /api/authtime/domain/{domainid}/defaultapp/{id}/disable
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | 软件id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
PUT 启用系统软件配置
PUT /api/authtime/domain/{domainid}/defaultapp/{id}/enable
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | 软件id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
GET 获取系统软件配置
GET /api/authtime/domain/{domainid}/defaultapp
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"id": "KMAPPID",
"name": "知识文档管理",
"enable": true,
"realmId": "kmRealm",
"teamId": "kmTeam",
"realmEnable": true,
"teamEnable": false
},
{
"id": "FCAPPID",
"name": "流程中心",
"enable": false
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码(0=成功,1=失败) | none |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | [object] | true | none | 软件列表 | none |
»» id | string | true | none | 软件id | none |
»» name | string | true | none | 软件名称 | none |
»» enable | boolean | true | none | 是否开启 | none |
»» realmId | string | false | none | 知识专题模块id(专属km) | none |
»» teamId | string | false | none | 团队模块id(专属km) | none |
»» realmEnable | boolean | false | none | 是否开启km知识专题模块(专属km) | none |
»» teamEnable | boolean | false | none | 是否开启km团队模块(专属km) | none |
POST 企业域软件列表
POST /api/authtime/domain/{domainid}/applications/bind
Body 请求参数
{
"name": ""
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» name | body | string | 是 | 软件名称 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 5,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"id": "HdPeBqYwJyFyjHkhZu3",
"name": "2.0功能示例",
"activated": true
},
{
"id": "dZdmJ6eNvWfLrhhv2yZ",
"name": "465456",
"activated": true
},
{
"id": "aaITQNiVuTz324lCKD1",
"name": "KM",
"activated": true
},
{
"id": "11e6-429d-dd7a3284-86a2-074015f7cc96",
"name": "客户管理",
"activated": true
},
{
"id": "11de-f053-df18d577-aeb6-19a7865cfdb6",
"name": "行政办公",
"activated": true
}
],
"pageCount": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码(0=成功,1=失败) | none |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | 软件列表 | none |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» id | string | true | none | 软件id | none |
»»» name | string | true | none | 软件名称 | none |
»»» activated | boolean | true | none | 是否激活 | none |
»» pageCount | integer | true | none | none |
POST 查询未添加软件列表
POST /api/authtime/domain/{domainid}/applications/unbind
Body 请求参数
{
"name": ""
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | none | |
body | body | object | 否 | none | |
» name | body | string | 是 | 软件名称 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 2,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"id": "Q11e7-5f98-d7d66840-917f-e799edecb417",
"name": "自动化测试系统",
"activated": true
},
{
"id": "11e7-db36-e48fb673-9ff7-017304b00ed1",
"name": "功能示例",
"activated": true
}
],
"pageCount": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码(0=成功,1=失败) | none |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | 未添加软件列表 | none |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» id | string | true | none | 企业域id | none |
»»» name | string | true | none | 企业域名称 | none |
»»» activated | boolean | true | none | 是否激活 | none |
»» pageCount | integer | true | none | none |
DELETE 移除软件
DELETE /api/authtime/domain/{domainid}/application
Body 请求参数
[
"{{applicationId}}"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "移除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 添加软件
PUT /api/authtime/domain/{domainid}/application
Body 请求参数
[
"{{applicationId}}"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "添加成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 保存km角色管理
PUT /api/authtime/domain/{domainid}/savekmconfig
Body 请求参数
{
"kmRoleSelectItem": "0001,0010",
"ids": "{{Admin1Id}}"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» kmRoleSelectItem | body | string | 是 | none | |
» ids | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
GET 查询所有软件列表
GET /api/authtime/applications
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
name | query | string | 否 | 软件名称 | |
pagelines | query | string | 否 | 页条数 | |
currpage | query | string | 否 | 当前页码 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 2,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"id": "Q11e7-5f98-d7d66840-917f-e799edecb417",
"name": "自动化测试系统",
"activated": true
},
{
"id": "11e7-db36-e48fb673-9ff7-017304b00ed1",
"name": "功能示例",
"activated": true
}
],
"pageCount": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» id | string | true | none | none | |
»»» name | string | true | none | none | |
»»» activated | boolean | true | none | none | |
»» pageCount | integer | true | none | none |
GET 获取KM软件是否开启状态
GET /api/authtime/domain/{domainid}/getkmstatus
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"kmstatus": true
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» kmstatus | boolean | true | none | none |
GET 导出角色&用户权限关系
GET /api/authtime/domain/{domainid}/applications/{applicationid}/exportroleuserauthority
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id |
返回示例
200 Response
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
myApps授权时/微信配置
GET 外网访问地址验证
GET /api/authtime/domain/{domainid}/wechat/corp/{corpid}/corpsecret/{corpsecret}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
corpid | path | string | 是 | 企业微信CorpID | |
corpsecret | path | string | 是 | 通讯录Secret |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "验证成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 保存微信配置
PUT /api/authtime/domain/{domainid}/wechat
Body 请求参数
{
"weixinProxyType": "企业微信号代理方式",
"weixinCorpID": "微信企业号id",
"weixinCorpSecret": "微信企业号管理组的凭证密钥",
"serverHost": "服务器域名(公网域名)",
"weixinQrCodeAgentId": "微信扫码AgentId",
"weixinQrCodeSecret": "微信扫码Secret",
"weixinQrCodeCallbackUrl": "微信扫码CallbackUrl"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» weixinProxyType | body | string | 是 | none | |
» weixinCorpID | body | string | 是 | none | |
» weixinCorpSecret | body | string | 是 | none | |
» serverHost | body | string | 是 | none | |
» weixinQrCodeAgentId | body | string | 是 | none | |
» weixinQrCodeSecret | body | string | 是 | none | |
» weixinQrCodeCallbackUrl | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
GET 微信配置
GET /api/authtime/domain/{domainid}/wechat
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"weixinCorpSecret": "zzz",
"weixinCorpID": "zzz",
"weixinProxyType": "EnterpriseWeChat",
"serverHost": "www",
"apps": [
{
"name": "2.0功能示例",
"weixinAgentId": null,
"weixinSecret": null,
"description": "2.0功能示例",
"id": "HdPeBqYwJyFyjHkhZu3"
},
{
"name": "客户管理",
"weixinAgentId": null,
"weixinSecret": null,
"description": "客户管理",
"id": "11e6-429d-dd7a3284-86a2-074015f7cc96"
},
{
"name": "行政办公",
"weixinAgentId": null,
"weixinSecret": null,
"description": "OA办公管理系统模板",
"id": "11de-f053-df18d577-aeb6-19a7865cfdb6"
},
{
"name": "Default",
"weixinAgentId": null,
"weixinSecret": null,
"description": "OBPM - Default System",
"id": "akf5Zsyc9EOtwyOLDOR"
},
{
"name": "任务管理",
"weixinAgentId": null,
"weixinSecret": null,
"description": "",
"id": "pm"
},
{
"name": "调查问卷",
"weixinAgentId": null,
"weixinSecret": null,
"description": "",
"id": "qm"
},
{
"name": "微考勤",
"weixinAgentId": null,
"weixinSecret": null,
"description": "",
"id": "am"
},
{
"name": "联系人管理",
"weixinAgentId": null,
"weixinSecret": null,
"description": "",
"id": "cm"
}
]
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | 返回码(0=成功,1=失败) | none |
» errmsg | string | true | none | 对返回码的文本描述内容 | none |
» data | object | true | none | 微信配置 | none |
»» weixinCorpSecret | string | true | none | none | |
»» weixinCorpID | string | true | none | none | |
»» weixinProxyType | string | true | none | none | |
»» serverHost | string | true | none | none | |
»» apps | [object] | true | none | none | |
»»» name | string | true | none | 企业域名称 | none |
»»» weixinAgentId | null | true | none | 微信应用AgentId | none |
»»» weixinSecret | null | true | none | 微信应用Secret | none |
»»» description | string | true | none | 企业域描述 | none |
»»» id | string | true | none | 企业域id | none |
GET 是否显示企业微信同步到企业域的按钮
GET /api/authtime/weixin/synchronization/show
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "success",
"data": "true"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 同步企业域组织架构到微信企业号
PUT /api/authtime/domain/{domainid}/synch2wechat
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"USER_ADD_SUCCESS": 131,
"DEPT_ADD_SUCCESS": 60,
"USER_ADD_FAIL": 60,
"DEPT_ADD_FAIL": 0,
"ERRORS": [
{
"NAME": "哈登",
"ERROR": "请校验用户账号、电话、邮箱等数据的规范性",
"TIP": "missing mobile or email, hint: [1571626602_56_f9b6a4fef27feef3588f7b530c69c14f], from ip: 113.68.195.10, more info at https://open.work.weixin.qq.com/devtool/query?e=60129 user:哈登"
}
]
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» USER_ADD_SUCCESS | integer | true | none | none | |
»» DEPT_ADD_SUCCESS | integer | true | none | none | |
»» USER_ADD_FAIL | integer | true | none | none | |
»» DEPT_ADD_FAIL | integer | true | none | none | |
»» ERRORS | [object] | true | none | none | |
»»» NAME | string | false | none | none | |
»»» ERROR | string | false | none | none | |
»»» TIP | string | false | none | none |
PUT 同步微信企业号组织架构到企业域
PUT /api/authtime/domain/{domainid}/synchfromwechat
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"USER_ADD_SUCCESS": 131,
"DEPT_ADD_SUCCESS": 60,
"USER_ADD_FAIL": 60,
"DEPT_ADD_FAIL": 0,
"ERRORS": [
{
"NAME": "哈登",
"ERROR": "请校验用户账号、电话、邮箱等数据的规范性",
"TIP": "missing mobile or email, hint: [1571626602_56_f9b6a4fef27feef3588f7b530c69c14f], from ip: 113.68.195.10, more info at https://open.work.weixin.qq.com/devtool/query?e=60129 user:哈登"
}
]
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» USER_ADD_SUCCESS | integer | true | none | none | |
»» DEPT_ADD_SUCCESS | integer | true | none | none | |
»» USER_ADD_FAIL | integer | true | none | none | |
»» DEPT_ADD_FAIL | integer | true | none | none | |
»» ERRORS | [object] | true | none | none | |
»»» NAME | string | false | none | none | |
»»» ERROR | string | false | none | none | |
»»» TIP | string | false | none | none |
GET 生成跳转链接
GET /api/authtime/domain/{domainid}/application/{applicationid}/getwechaturl
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww4862e4c6416306be&redirect_uri=http%3A%2F%2Foffice.teemlink.com%3A65533%2Fobpm999%2Fportal%2Fphone%2Fmain.jsp%3Fapplication%3DHdPeBqYwJyFyjHkhZu3%26action%3Dnull%26returnUrl%3D&response_type=code&scope=snsapi_base&agentid=1000009&state=3CffNlgt9B9StIjIUPB#wechat_redirect"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | 跳转链接 | none |
PUT 保存微信应用AgentId
PUT /api/authtime/domain/{domainid}/application/{applicationid}/updateWeixinAgentId
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id | |
id | query | string | 否 | 微信AgentId |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 保存微信应用secret
PUT /api/authtime/domain/{domainid}/application/{applicationid}/updateWeixinSecret
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id | |
secret | query | string | 否 | 微信secret |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
myApps授权时/钉钉配置
GET 获取钉钉配置
GET /api/authtime/domain/{domainid}/dingding
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
PUT 保存钉钉配置
PUT /api/authtime/domain/{domainid}/dingding
Body 请求参数
{
"dingdingProxyType": "钉钉代理方式",
"dingdingCorpID": "钉钉企业号id",
"dingdingAppSecret": "钉钉应用的凭证密钥",
"dingdingAppKey": "钉钉应用的key",
"dingdingServerHost": "服务器域名(公网域名)",
"dingdingQrCodeAppId": "钉钉扫码appid",
"dingdingQrCodeAppSecret": "钉钉扫码appSecret",
"dingdingQrCodeCallbackUrl": "钉钉扫码重定向地址"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» dingdingProxyType | body | string | 是 | none | |
» dingdingCorpID | body | string | 是 | none | |
» dingdingAppSecret | body | string | 是 | none | |
» dingdingAppKey | body | string | 是 | none | |
» dingdingServerHost | body | string | 是 | none | |
» dingdingQrCodeAppId | body | string | 是 | none | |
» dingdingQrCodeAppSecret | body | string | 是 | none | |
» dingdingQrCodeCallbackUrl | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
GET 钉钉外网访问地址验证
GET /api/authtime/domain/{domainid}/dingding/appkey/{appkey}/appsecret/{appsecret}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
appkey | path | string | 是 | 钉钉应用的key | |
appsecret | path | string | 是 | 钉钉应用Secret |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "验证成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 更新钉钉应用appSecret
PUT /api/authtime/domain/{domainid}/application/{applicationid}/updatedingdingappsecret
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id | |
appsecret | query | string | 否 | 钉钉应用secret |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
GET 生成跳转链接
GET /api/authtime/domain/{domainid}/application/{applicationid}/getdingdingurl
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"进入系统": "null/dingding.html?domainid=3CffNlgt9B9StIjIUPB&corpid=null&appid=sOZu9kthmxyP8qQfq0e"
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» 进入系统 | string | true | none | none |
PUT 更新钉钉应用AgentId
PUT /api/authtime/domain/{domainid}/application/{applicationid}/updatedingdingagentid
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id | |
id | query | string | 否 | 钉钉AgentId |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 更新钉钉应用appKey
PUT /api/authtime/domain/{domainid}/application/{applicationid}/updatedingdingappkey
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id | |
appkey | query | string | 否 | 钉钉appkey |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
myApps授权时/管理员
POST 获取管理员列表
POST /api/authtime/domain/{domainid}/admins
Body 请求参数
{
"name": ""
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
currpage | query | string | 否 | none | |
pagelines | query | string | 否 | none | |
body | body | object | 否 | none | |
» name | body | string | 是 | 管理员名称 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"linesPerPage": 10,
"pageCount": 3,
"pageNo": 1,
"datas": [
{
"defaultDepartment": null,
"name": "孙明",
"id": "19fGnYILEOrqYd0ZWRS",
"loginno": "Ronald15",
"departmentUser": false,
"email": "f.kgjgogv@qq.com"
},
{
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"name": "wxw3",
"id": "cUGA5s3spQVvf8VF9MO",
"loginno": "wxw3",
"departmentUser": false,
"email": null
},
{
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"name": "wxw2",
"id": "Dl3O8WCjSwZxJ85Inil",
"loginno": "wxw2",
"departmentUser": false,
"email": null
},
{
"defaultDepartment": null,
"name": "梁艳",
"id": "IjsEGeCNljaDuPsIELT",
"loginno": "Scott16",
"departmentUser": false,
"email": "f.kgjgogv@qq.com"
},
{
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"name": "wxw1",
"id": "tGnu7ptDCyBpFbB7t2L",
"loginno": "wxw1",
"departmentUser": false,
"email": null
},
{
"defaultDepartment": "__bZiGACxcLs4FH8O8eTt",
"name": "销售员03",
"id": "__4K2NHMwlBsvhItS54bf",
"loginno": "Mark",
"departmentUser": false,
"email": null
},
{
"defaultDepartment": "__2Lc6K6lsEggXShMgQsf",
"name": "后端开发工程师01",
"id": "__5TsWWMCjsEWKL7Uwlmg",
"loginno": "zhangsan",
"departmentUser": false,
"email": null
},
{
"defaultDepartment": "__bZiGACxcLs4FH8O8eTt",
"name": "销售专员01",
"id": "__bvKhiFNfnWyWtnwoeTp",
"loginno": "zhoujiu",
"departmentUser": false,
"email": null
},
{
"defaultDepartment": "__BbX5GmUz8om72ICA781",
"name": "前台专员",
"id": "__dGVnXnRWbkjb6h26q6q",
"loginno": "Mary",
"departmentUser": false,
"email": null
},
{
"defaultDepartment": "__1z4dcx8FPx8xqoqBeAI",
"name": "销售员02",
"id": "__DRTjq33iYBsxt9iOp42",
"loginno": "Ben",
"departmentUser": false,
"email": null
}
],
"rowCount": 29
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageCount | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» defaultDepartment | string¦null | true | none | none | |
»»» name | string | true | none | none | |
»»» id | string | true | none | none | |
»»» loginno | string | true | none | none | |
»»» departmentUser | boolean | true | none | none | |
string¦null | true | none | none | ||
»» rowCount | integer | true | none | none |
DELETE 移除管理员
DELETE /api/authtime/domain/{domainid}/admin
Body 请求参数
[
"管理员000",
"ID2",
"ID3"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "移除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 添加管理员
PUT /api/authtime/domain/{domainid}/admin
Body 请求参数
[
"{{Admin1Id}}"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "添加成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
POST 获取不是管理员的用户列表
POST /api/authtime/domain/{domainid}/notadmins
Body 请求参数
{
"name": ""
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
currpage | query | string | 否 | none | |
pagelines | query | string | 否 | none | |
body | body | object | 否 | none | |
» name | body | string | 是 | 管理员名称 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"defaultDepartment": "n5bdXBZn4Nqt3nyUGyb",
"domainUser": "true",
"name": "junye",
"id": "0TblO2uKjQ2sLDY64yF",
"loginno": "junye",
"email": ""
},
{
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainUser": "true",
"name": "janjan",
"id": "0URvyCUds2T4PGx4yLB",
"loginno": "janceshi",
"email": "775377369@qq.com"
},
{
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainUser": "true",
"name": "liang",
"id": "22TY7eJ46UvOUmmXJbc",
"loginno": "liang",
"email": "1123213243fdfdfdgfd@qq.com"
},
{
"defaultDepartment": "Z42xU8LmniRouZ93E7s",
"domainUser": "true",
"name": "sam_hr",
"id": "2TE7lzsbdyqLhndabbN",
"loginno": "sam_hr",
"email": "hr_sam@163.com"
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | [object] | true | none | 管理员列表 | none |
»» defaultDepartment | string | true | none | none | |
»» domainUser | string | true | none | 是否是管理员 | none |
»» name | string | true | none | 管理员名称 | none |
»» id | string | true | none | 管理员id | none |
»» loginno | string | true | none | 管理员用户名 | none |
string | true | none | 管理员email | none |
myApps授权时/工作日历
POST 查询工作日历列表
POST /api/authtime/domain/{domainid}/calendars
Body 请求参数
{
"name": ""
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
currpage | query | string | 否 | none | |
pagelines | query | string | 否 | none | |
body | body | object | 否 | none | |
» name | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"linesPerPage": 2147483647,
"pageCount": 1,
"datas": [
{
"specialDays": [],
"remark": "24小时制工作日历。",
"workingTime": 24,
"type": "Eight_TimeZone",
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"standardDays": [],
"sortId": "154561417645400000",
"name": "24小时日历",
"id": "HmKdJTD3m76sGFo45Ob",
"applicationid": null,
"lastModifyDate": 1545614176000,
"fromCalendarId": null
},
{
"specialDays": [],
"remark": "一周5天,一天8小时,夜班制工作日历。",
"workingTime": 8,
"type": "Eight_TimeZone",
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"standardDays": [],
"sortId": "154339251609900000",
"name": "夜班日历",
"id": "i7xj207zBMEwBp8aATE",
"applicationid": null,
"lastModifyDate": 1543392516000,
"fromCalendarId": null
},
{
"specialDays": [],
"remark": "24小时制工作日历20",
"workingTime": 24,
"type": "Eight_TimeZone",
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"standardDays": [],
"sortId": "165796484530500000",
"name": "24小时日历",
"id": "k7JMZRuA4uyouIaAnY1",
"applicationid": null,
"lastModifyDate": 1657964853000,
"fromCalendarId": "HmKdJTD3m76sGFo45Ob"
},
{
"specialDays": [],
"remark": "标准日历测试",
"workingTime": 8,
"type": "Eight_TimeZone",
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"standardDays": [],
"sortId": "154823122227200000",
"name": "标准日历测试",
"id": "qCv88TplkcYoiGxMhJ8",
"applicationid": null,
"lastModifyDate": 1548231222000,
"fromCalendarId": null
},
{
"specialDays": [],
"remark": "24小时制工作日历21",
"workingTime": 24,
"type": "Eight_TimeZone",
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"standardDays": [],
"sortId": "165796526201900000",
"name": "24小时日历2022-07-16 17:54:21",
"id": "WSfvLEbktbINABDI6jl",
"applicationid": null,
"lastModifyDate": 1657965271000,
"fromCalendarId": "HmKdJTD3m76sGFo45Ob"
},
{
"specialDays": [],
"remark": "一周5天,一天8小时,白班制工作日历。",
"workingTime": 8,
"type": "Eight_TimeZone",
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"standardDays": [],
"sortId": "154339251598300000",
"name": "标准日历",
"id": "ZKsRAyDrAP7u0NKPQdR",
"applicationid": null,
"lastModifyDate": 1543392516000,
"fromCalendarId": null
}
],
"pageNo": 1,
"rowCount": 6
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageCount | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» specialDays | [string] | true | none | none | |
»»» remark | string | true | none | none | |
»»» workingTime | integer | true | none | none | |
»»» type | string | true | none | none | |
»»» version | integer | true | none | none | |
»»» domainid | string | true | none | none | |
»»» standardDays | [string] | true | none | none | |
»»» sortId | string | true | none | none | |
»»» name | string | true | none | none | |
»»» id | string | true | none | none | |
»»» applicationid | null | true | none | none | |
»»» lastModifyDate | integer | true | none | none | |
»»» fromCalendarId | string¦null | true | none | none | |
»» pageNo | integer | true | none | none | |
»» rowCount | integer | true | none | none |
PUT 更新工作日历
PUT /api/authtime/domain/{domainid}/calendar/{id}
Body 请求参数
{
"_calendarid": "{{calendarId}}",
"name": "24小时日历",
"remark": "24小时日历{% mock 'now' %}"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | 工作日历id | |
body | body | object | 否 | none | |
» _calendarid | body | string | 是 | none | |
» name | body | string | 是 | none | |
» remark | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
POST 新建工作日历
POST /api/authtime/domain/{domainid}/calendar
Body 请求参数
{
"specialDays": [],
"remark": "24小时制工作日历{% mock 'increment' %}",
"workingTime": 24,
"type": "Eight_TimeZone",
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"standardDays": [],
"sortId": "154561417645400000",
"name": "24小时日历",
"_calendarid": "HmKdJTD3m76sGFo45Ob",
"applicationid": null,
"lastModifyDate": 1545614176000,
"fromCalendarId": null
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» specialDays | body | [string] | 是 | none | |
» remark | body | string | 是 | none | |
» workingTime | body | integer | 是 | none | |
» type | body | string | 是 | none | |
» version | body | integer | 是 | none | |
» domainid | body | string | 是 | none | |
» standardDays | body | [string] | 是 | none | |
» sortId | body | string | 是 | none | |
» name | body | string | 是 | none | |
» _calendarid | body | string | 是 | none | |
» applicationid | body | null | 是 | none | |
» lastModifyDate | body | integer | 是 | none | |
» fromCalendarId | body | null | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
DELETE 删除工作日历
DELETE /api/authtime/calendar
Body 请求参数
[
"工作日历id",
"ID2",
"ID3"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "删除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
GET 编辑日历
GET /api/authtime/domain/{domainid}/getworkcalendars
Body 请求参数
{
"_calendarid": "{{calendarId}}",
"name": "工作日历{% mock 'now' %}",
"remark": "描述"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» _calendarid | body | string | 是 | none | |
» name | body | string | 是 | none | |
» remark | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"__M7m6kH3I9Du1dU1MVKj": "333",
"__Q0UMGoHcaJLG1AdnOap": "1212211212",
"ZKsRAyDrAP7u0NKPQdR": "标准日历",
"__TCYQCu0dZrYlmcA4W0M": "1ed1",
"__fQMBT4feHNX8dOrplcr": "121212",
"HmKdJTD3m76sGFo45Ob": "我的9",
"i7xj207zBMEwBp8aATE": "夜班日历",
"__akCNI7UlCr5N06stJjI": "24小时日历",
"__JiZSFqbBRZUn7Rna5HR": "1",
"__PpXMzJRQ393iGM7hsHx": "24小时日历1"
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» __M7m6kH3I9Du1dU1MVKj | string | true | none | none | |
»» __Q0UMGoHcaJLG1AdnOap | string | true | none | none | |
»» ZKsRAyDrAP7u0NKPQdR | string | true | none | none | |
»» __TCYQCu0dZrYlmcA4W0M | string | true | none | none | |
»» __fQMBT4feHNX8dOrplcr | string | true | none | none | |
»» HmKdJTD3m76sGFo45Ob | string | true | none | none | |
»» i7xj207zBMEwBp8aATE | string | true | none | none | |
»» __akCNI7UlCr5N06stJjI | string | true | none | none | |
»» __JiZSFqbBRZUn7Rna5HR | string | true | none | none | |
»» __PpXMzJRQ393iGM7hsHx | string | true | none | none |
GET 获取工作周列表
GET /api/authtime/domain/{domainid}/calendar/{id}/getstandardday
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | 工作日历id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 7,
"linesPerPage": 7,
"pageNo": 1,
"datas": [
{
"id": "CPG2rEDrpNUofMfuucv",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": null,
"calendar": {
"id": "HmKdJTD3m76sGFo45Ob",
"type": "Eight_TimeZone",
"name": "24小时日历",
"remark": "core.workcalendar.24.calendarinfo",
"lastModifyDate": 1545614176000,
"standardDays": [],
"specialDays": [],
"workingTime": 24,
"fromCalendarId": null
},
"workingDayStatus": "01",
"weekDays": 6,
"cssClass": "Wday",
"spc": 1,
"lastModifyDate": 1545614176000,
"startTime1": "00:00",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "24:00",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"border": false,
"workingDay": true
},
{
"id": "Zf1tu3NZTD5TX3U840j",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": null,
"calendar": {
"id": "HmKdJTD3m76sGFo45Ob",
"type": "Eight_TimeZone",
"name": "24小时日历",
"remark": "core.workcalendar.24.calendarinfo",
"lastModifyDate": 1545614176000,
"standardDays": [],
"specialDays": [],
"workingTime": 24,
"fromCalendarId": null
},
"workingDayStatus": "01",
"weekDays": 5,
"cssClass": "Wday",
"spc": 1,
"lastModifyDate": 1545614176000,
"startTime1": "00:00",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "24:00",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"border": false,
"workingDay": true
},
{
"id": "VGKulCTHlq2z9ib0YLh",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": null,
"calendar": {
"id": "HmKdJTD3m76sGFo45Ob",
"type": "Eight_TimeZone",
"name": "24小时日历",
"remark": "core.workcalendar.24.calendarinfo",
"lastModifyDate": 1545614176000,
"standardDays": [],
"specialDays": [],
"workingTime": 24,
"fromCalendarId": null
},
"workingDayStatus": "01",
"weekDays": 4,
"cssClass": "Wday",
"spc": 1,
"lastModifyDate": 1545614176000,
"startTime1": "00:00",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "24:00",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"border": false,
"workingDay": true
},
{
"id": "UtKP0OOfXRrV0Q6IVVa",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": null,
"calendar": {
"id": "HmKdJTD3m76sGFo45Ob",
"type": "Eight_TimeZone",
"name": "24小时日历",
"remark": "core.workcalendar.24.calendarinfo",
"lastModifyDate": 1545614176000,
"standardDays": [],
"specialDays": [],
"workingTime": 24,
"fromCalendarId": null
},
"workingDayStatus": "01",
"weekDays": 3,
"cssClass": "Wday",
"spc": 1,
"lastModifyDate": 1545614176000,
"startTime1": "00:00",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "24:00",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"border": false,
"workingDay": true
},
{
"id": "7CfbsCrTqTdEUFEMF4I",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": null,
"calendar": {
"id": "HmKdJTD3m76sGFo45Ob",
"type": "Eight_TimeZone",
"name": "24小时日历",
"remark": "core.workcalendar.24.calendarinfo",
"lastModifyDate": 1545614176000,
"standardDays": [],
"specialDays": [],
"workingTime": 24,
"fromCalendarId": null
},
"workingDayStatus": "01",
"weekDays": 2,
"cssClass": "Wday",
"spc": 1,
"lastModifyDate": 1545614176000,
"startTime1": "00:00",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "24:00",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"border": false,
"workingDay": true
},
{
"id": "SnVh8vEfY0MNzMsW11T",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": null,
"calendar": {
"id": "HmKdJTD3m76sGFo45Ob",
"type": "Eight_TimeZone",
"name": "24小时日历",
"remark": "core.workcalendar.24.calendarinfo",
"lastModifyDate": 1545614176000,
"standardDays": [],
"specialDays": [],
"workingTime": 24,
"fromCalendarId": null
},
"workingDayStatus": "01",
"weekDays": 1,
"cssClass": "Wday",
"spc": 1,
"lastModifyDate": 1545614176000,
"startTime1": "00:00",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "24:00",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"border": false,
"workingDay": true
},
{
"id": "Xn0DjgdWsABtJWfMEDd",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": null,
"calendar": {
"id": "HmKdJTD3m76sGFo45Ob",
"type": "Eight_TimeZone",
"name": "24小时日历",
"remark": "core.workcalendar.24.calendarinfo",
"lastModifyDate": 1545614176000,
"standardDays": [],
"specialDays": [],
"workingTime": 24,
"fromCalendarId": null
},
"workingDayStatus": "01",
"weekDays": 0,
"cssClass": "Wday",
"spc": 1,
"lastModifyDate": 1545614176000,
"startTime1": "00:00",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "24:00",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"border": false,
"workingDay": true
}
],
"pageCount": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» id | string | true | none | none | |
»»» WORKING_DAY | string | true | none | none | |
»»» NOT_WORKING_DAY | string | true | none | none | |
»»» remark | null | true | none | none | |
»»» calendar | object | true | none | none | |
»»»» id | string | true | none | none | |
»»»» type | string | true | none | none | |
»»»» name | string | true | none | none | |
»»»» remark | string | true | none | none | |
»»»» lastModifyDate | integer | true | none | none | |
»»»» standardDays | [string] | true | none | none | |
»»»» specialDays | [string] | true | none | none | |
»»»» workingTime | integer | true | none | none | |
»»»» fromCalendarId | null | true | none | none | |
»»» workingDayStatus | string | true | none | none | |
»»» weekDays | integer | true | none | none | |
»»» cssClass | string | true | none | none | |
»»» spc | integer | true | none | none | |
»»» lastModifyDate | integer | true | none | none | |
»»» startTime1 | string | true | none | none | |
»»» startTime2 | string | true | none | none | |
»»» startTime3 | string | true | none | none | |
»»» startTime4 | string | true | none | none | |
»»» startTime5 | string | true | none | none | |
»»» endTime1 | string | true | none | none | |
»»» endTime2 | string | true | none | none | |
»»» endTime3 | string | true | none | none | |
»»» endTime4 | string | true | none | none | |
»»» endTime5 | string | true | none | none | |
»»» dayIndex | integer | true | none | none | |
»»» border | boolean | true | none | none | |
»»» workingDay | boolean | true | none | none | |
»» pageCount | integer | true | none | none |
GET 获取例外日列表
GET /api/authtime/domain/{domainid}/calendar/{id}/getspecialday
Body 请求参数
{
"_calendarid": "{{calendarId}}",
"name": "",
"remark": ""
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | 工作日历id | |
currpage | query | string | 否 | none | |
pagelines | query | string | 否 | none | |
body | body | object | 否 | none | |
» _calendarid | body | string | 是 | none | |
» name | body | string | 是 | none | |
» remark | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 2,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"id": "__lRdZfSVhf3OjQyg46pJ",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": "描述1111",
"calendar": {
"id": "ZKsRAyDrAP7u0NKPQdR",
"type": "Eight_TimeZone",
"name": "标准日历",
"remark": "core.workcalendar.standard.calendarinfo",
"lastModifyDate": "2018-11-28T08:08:36.000+0000",
"standardDays": [],
"specialDays": [],
"workingTime": 8
},
"workingDayStatus": "02",
"weekDays": 0,
"cssClass": "Wwday",
"spc": 0,
"lastModifyDate": "2019-10-30T06:38:32.000+0000",
"startTime1": "",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"startDate": "2019-10-22T13:00:00.000+0000",
"endDate": "2019-11-11T13:00:00.000+0000",
"border": false,
"workingDay": false
},
{
"id": "__UYBC1cRSuVdJGixu7Qa",
"WORKING_DAY": "01",
"NOT_WORKING_DAY": "02",
"remark": "描述",
"calendar": {
"id": "ZKsRAyDrAP7u0NKPQdR",
"type": "Eight_TimeZone",
"name": "标准日历",
"remark": "core.workcalendar.standard.calendarinfo",
"lastModifyDate": "2018-11-28T08:08:36.000+0000",
"standardDays": [],
"specialDays": [],
"workingTime": 8
},
"workingDayStatus": "02",
"weekDays": 0,
"cssClass": "Wwday",
"spc": 0,
"lastModifyDate": null,
"startTime1": "",
"startTime2": "",
"startTime3": "",
"startTime4": "",
"startTime5": "",
"endTime1": "",
"endTime2": "",
"endTime3": "",
"endTime4": "",
"endTime5": "",
"dayIndex": 0,
"startDate": "2019-10-22T13:00:00.000+0000",
"endDate": "2019-11-11T13:00:00.000+0000",
"border": false,
"workingDay": false
}
],
"pageCount": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» id | string | true | none | none | |
»»» WORKING_DAY | string | true | none | none | |
»»» NOT_WORKING_DAY | string | true | none | none | |
»»» remark | string | true | none | none | |
»»» calendar | object | true | none | none | |
»»»» id | string | true | none | none | |
»»»» type | string | true | none | none | |
»»»» name | string | true | none | none | |
»»»» remark | string | true | none | none | |
»»»» lastModifyDate | string | true | none | none | |
»»»» standardDays | [string] | true | none | none | |
»»»» specialDays | [string] | true | none | none | |
»»»» workingTime | integer | true | none | none | |
»»» workingDayStatus | string | true | none | none | |
»»» weekDays | integer | true | none | none | |
»»» cssClass | string | true | none | none | |
»»» spc | integer | true | none | none | |
»»» lastModifyDate | string¦null | true | none | none | |
»»» startTime1 | string | true | none | none | |
»»» startTime2 | string | true | none | none | |
»»» startTime3 | string | true | none | none | |
»»» startTime4 | string | true | none | none | |
»»» startTime5 | string | true | none | none | |
»»» endTime1 | string | true | none | none | |
»»» endTime2 | string | true | none | none | |
»»» endTime3 | string | true | none | none | |
»»» endTime4 | string | true | none | none | |
»»» endTime5 | string | true | none | none | |
»»» dayIndex | integer | true | none | none | |
»»» startDate | string | true | none | none | |
»»» endDate | string | true | none | none | |
»»» border | boolean | true | none | none | |
»»» workingDay | boolean | true | none | none | |
»» pageCount | integer | true | none | none |
POST 新建例外日
POST /api/authtime/domain/{domainid}//calendar/{id}/addspecialday
Body 请求参数
"{\r\n\r\n \"strstatus\": \"01(01为工作日,02为非)\",\r\n\r\n \"startTime1\": \"12:00\",\r\n\r\n \"endTime1\": \"\",\r\n\r\n \"startTime2\": \"\",\r\n\r\n \"endTime2\": \"\",\r\n\r\n \"startTime3\": \"\",\r\n\r\n \"endTime3\": \"\",\r\n\r\n \"startTime4\": \"\",\r\n\r\n \"endTime4\": \"\",\r\n\r\n \"startTime5\": \"\",\r\n\r\n \"endTime5\": \"\",\r\n\r\n \"remark\": \"描述\",\r\n\r\n \"startDate\": \"开始日期 yyyy-MM-dd HH:mm:ss\",\r\n\r\n \"endDate\": \"结束日期 yyyy-MM-dd HH:mm:ss\",\r\n\r\n}"
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | 工作日历id | |
body | body | object | 否 | none | |
» strstatus | body | string | 是 | none | |
» startTime1 | body | string | 是 | none | |
» endTime1 | body | string | 是 | none | |
» startTime2 | body | string | 是 | none | |
» endTime2 | body | string | 是 | none | |
» startTime3 | body | string | 是 | none | |
» endTime3 | body | string | 是 | none | |
» startTime4 | body | string | 是 | none | |
» endTime4 | body | string | 是 | none | |
» startTime5 | body | string | 是 | none | |
» endTime5 | body | string | 是 | none | |
» remark | body | string | 是 | none | |
» startDate | body | string | 是 | none | |
» endDate | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 保存例外日
PUT /api/authtime/domain/{domainid}//calendar/{id}/savespecialday
Body 请求参数
{
"id": "22",
"weekDay": "ex in",
"strstatus": "ullamco aliqua commodo consequat proident",
"startTime1": "2008-12-17 03:39:58",
"endTime1": "2017-09-14 04:33:55",
"startTime2": "1978-07-15 19:39:39",
"endTime2": "2017-09-12 00:17:55",
"startTime3": "2002-05-12 07:23:08",
"endTime3": "2005-08-25 16:20:45",
"startTime4": "1979-04-16 18:07:32",
"endTime4": "2000-10-20 05:20:19",
"startTime5": "2015-08-21 21:24:05",
"endTime5": "1986-08-28 14:46:34",
"remark": "Ut"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
id | path | string | 是 | none | |
body | body | object | 否 | none | |
» id | body | string | 是 | none | |
» weekDay | body | string | 是 | none | |
» strstatus | body | string | 是 | none | |
» startTime1 | body | string | 是 | none | |
» endTime1 | body | string | 是 | none | |
» startTime2 | body | string | 是 | none | |
» endTime2 | body | string | 是 | none | |
» startTime3 | body | string | 是 | none | |
» endTime3 | body | string | 是 | none | |
» startTime4 | body | string | 是 | none | |
» endTime4 | body | string | 是 | none | |
» startTime5 | body | string | 是 | none | |
» endTime5 | body | string | 是 | none | |
» remark | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
DELETE 删除例外日
DELETE /api/authtime/domain/calendar/deletespecialday
Body 请求参数
[
"ID1",
"ID2",
"ID3"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
myApps授权时/字段扩展管理
POST 查询扩展字段列表
POST /api/authtime/domain/fieldextends
Body 请求参数
{
"domainid": "{{domainId}}",
"type": "字段类型",
"fortable": "所属模块",
"belong": "belong"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
currpage | query | string | 否 | none | |
pagelines | query | string | 否 | none | |
body | body | object | 否 | none | |
» type | body | string | 是 | none | |
» fortable | body | string | 是 | none | |
» belong | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"linesPerPage": 10,
"pageCount": 1,
"datas": [
{
"fid": "4028d0816d60f933016d61c92d060003",
"enabel": true,
"forTable": "tableUser",
"sortNumber": 21,
"label": "aaa",
"type": "string",
"lazyLoad": true,
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"sortId": null,
"isNull": null,
"name": "field5",
"id": null,
"applicationid": null
},
{
"fid": "4028d0816d6cecfd016d6cf65d8c0000",
"enabel": true,
"forTable": "tableUser",
"sortNumber": 123123,
"label": "123123",
"type": "string",
"lazyLoad": true,
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"sortId": null,
"isNull": null,
"name": "field2",
"id": null,
"applicationid": null
},
{
"fid": "4028d0816d6d7bc0016d6d7be6680000",
"enabel": true,
"forTable": "tableUser",
"sortNumber": null,
"label": "999",
"type": null,
"lazyLoad": true,
"version": 0,
"domainid": "3CffNlgt9B9StIjIUPB",
"sortId": null,
"isNull": null,
"name": "field2",
"id": null,
"applicationid": null
}
],
"pageNo": 1,
"rowCount": 10
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageCount | integer | true | none | none | |
»» datas | [object] | true | none | 扩展字段列表 | none |
»»» fid | string | true | none | 扩展字段id | none |
»»» enabel | boolean | true | none | 是否显示在列表中 | none |
»»» forTable | string | true | none | 字段所属表 | none |
»»» sortNumber | integer¦null | true | none | 排序位置优先级,数据越小,排序越前 | none |
»»» label | string | true | none | 字段标签 | none |
»»» type | string¦null | true | none | 字段类型 | none |
»»» lazyLoad | boolean | true | none | none | |
»»» version | integer | true | none | none | |
»»» domainid | string | true | none | 企业域id | none |
»»» sortId | null | true | none | none | |
»»» isNull | null | true | none | 是否可以为空 | none |
»»» name | string | true | none | 字段名字 | none |
»»» id | null | true | none | none | |
»»» applicationid | null | true | none | none | |
»» pageNo | integer | true | none | none | |
»» rowCount | integer | true | none | none |
POST 新建扩展字段
POST /api/authtime/domain/fieldextend
Body 请求参数
{
"domainid": "{{domainId}}",
"label": "字段标签",
"respectiveField": "字段名字",
"sortNumber": 1,
"type": "01",
"enabel": true,
"forTable": "t_user"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | object | 否 | none | |
» domainid | body | string | 是 | none | |
» label | body | string | 是 | none | |
» respectiveField | body | string | 是 | none | |
» sortNumber | body | integer | 是 | none | |
» type | body | string | 是 | none | |
» enabel | body | boolean | 是 | none | |
» forTable | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
DELETE 删除扩展字段
DELETE /api/authtime/domain/fieldextend
Body 请求参数
[
"字段名、ID、所属模块合成的串集合,格式为ID-NAME-FORTABLE",
"ID-NAME-FORTABLE",
"ID-NAME-FORTABLE"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "删除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
PUT 更新扩展字段
PUT /api/authtime/domain/fieldextend/{id}
Body 请求参数
{
"label": "字段标签",
"respectiveField": "字段名字",
"sortNumber": "排序位置优先级,数据越小,排序越前 ",
"type": "字段类型",
"enabel": "是否显示在列表中",
"forTable": "字段所属表"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | path | string | 是 | 扩展字段id | |
body | body | object | 否 | none | |
» label | body | string | 是 | none | |
» respectiveField | body | string | 是 | none | |
» sortNumber | body | string | 是 | none | |
» type | body | string | 是 | none | |
» enabel | body | string | 是 | none | |
» forTable | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
GET 获取未使用字段
GET /api/authtime/domain/getunusefields
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
type | query | string | 否 | user为用户,dept为部门 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
"field2",
"field3",
"field4",
"field5",
"field6",
"field7",
"field8",
"field9",
"field10"
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | [string] | true | none | none |
myApps授权时/操作日记
PUT 更新操作日记是否记录
PUT /api/authtime/domain/{domainid}/logger
Body 请求参数
{
"isLog": false
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none | |
» isLog | body | string | 是 | 是否记录(true=是,false=否) |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "保存成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
GET 查询操作日记是否记录
GET /api/authtime/domain/{domainid}/logger
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "false"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
POST 查询操作日记列表
POST /api/authtime/domain/{domainid}/loggers
Body 请求参数
{
"operator": "操作人",
"ip": "ip地址",
"date": "操作日期"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
currpage | query | string | 否 | 每页数 | |
pagelines | query | string | 否 | 每页显示条数 | |
body | body | object | 否 | none | |
» operator | body | string | 是 | none | |
» ip | body | string | 是 | none | |
» date | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 160,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"id": "bLzv643gG9MqGvJR4m8",
"userId": null,
"date": 1657970763000,
"type": "企业域",
"description": "更新工作日历",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "4s2y3JaUA1LolPWQw1I",
"userId": null,
"date": 1657970759000,
"type": "企业域",
"description": "更新工作日历",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "PTrPeva6oXsiT9eZSZY",
"userId": null,
"date": 1657970743000,
"type": "企业域",
"description": "更新工作日历",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "jLWQ6WBikajgkBRZknv",
"userId": null,
"date": 1657970740000,
"type": "企业域",
"description": "新建工作日历",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "0hwSHBbmyorF7oG0mQU",
"userId": null,
"date": 1657970713000,
"type": "企业域",
"description": "移除管理员",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "arYWv7NTA2wu0SUO9yl",
"userId": null,
"date": 1657970710000,
"type": "企业域",
"description": "移除管理员",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "XeZ8lffqDzdphgkxpeB",
"userId": null,
"date": 1657970702000,
"type": "企业域",
"description": "添加管理员",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "kO4zSOn49oRjfvN9pX2",
"userId": null,
"date": 1657970600000,
"type": "企业域",
"description": "保存微信配置",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "8GOq65a6OieHwk1fyzT",
"userId": null,
"date": 1657970596000,
"type": "企业域",
"description": "保存微信配置",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
},
{
"id": "RHqunm62Q9P8K1xvYcv",
"userId": null,
"date": 1657970586000,
"type": "企业域",
"description": "导出角色用户权限关系",
"operator": "Admin",
"ip": "0:0:0:0:0:0:0:1"
}
],
"pageCount": 16
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» id | string | true | none | none | |
»»» userId | null | true | none | none | |
»»» date | integer | true | none | none | |
»»» type | string | true | none | none | |
»»» description | string | true | none | none | |
»»» operator | string | true | none | none | |
»»» ip | string | true | none | none | |
»» pageCount | integer | true | none | none |
DELETE 删除操作记录
DELETE /api/authtime/domain/{domainid}/loggers
Body 请求参数
[
"操作记录ID1",
"操作记录ID2",
"操作记录ID3"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "删除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
myApps授权时/流程监控
DELETE 删除流程实例
DELETE /api/authtime/domain/applicationid/{applicationid}/workflow/flowstaterts
Body 请求参数
[
"流程ID1",
"流程ID2",
"流程ID3"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
applicationid | path | string | 是 | 软件id | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": "删除成功"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | string | true | none | none |
POST 查询流程监控列表
POST /api/authtime/domain/{domainid}/workflow/flowstaterts
Body 请求参数
{
"application": "软件id",
"_flowName": "流程名称",
"_stateLabel": "当前节点",
"_initiator": "发起人",
"_firstProcessTime": "开始时间",
"_lastProcessTime": "最后处理时间",
"_lastAuditor": "最后处理人",
"_summary": "摘要"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
currpage | query | string | 否 | none | |
pagelines | query | string | 否 | none | |
body | body | object | 否 | none | |
» application | body | string | 是 | 软件id | |
» _flowName | body | string | 是 | 流程名称 | |
» _stateLabel | body | string | 是 | 当前节点 | |
» _initiator | body | string | 是 | 发起人 | |
» _firstProcessTime | body | string | 是 | 开始时间 | |
» _lastProcessTime | body | string | 是 | 最后处理时间 | |
» _lastAuditor | body | string | 是 | 最后处理人 | |
» _summary | body | string | 是 | 摘要 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 22,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "WqauvDwUWfeuOkl3o4e--__AwJyEpMKn5Oh9P80HOs",
"summary": "{\"showTags\":false,\"summaryText\":\"地址:测试\\n\"}",
"flowName": "流程2",
"stateLabel": "结束",
"initiator": "系统管理员",
"initiatorId": "__oP0irhWXGA2oZRusW1d",
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": 1640919915000,
"lastProcessTime": 1640919933000,
"flowstatertId": "WqauvDwUWfeuOkl3o4e--__AwJyEpMKn5Oh9P80HOs-tNd12zUFK62mBNUeakJ",
"flowId": "__clnpDn2x3gPy0UgfXBx",
"formId": "__AwJyEpMKn5Oh9P80HOs",
"docId": "WqauvDwUWfeuOkl3o4e--__AwJyEpMKn5Oh9P80HOs",
"status": null,
"auditorNames": "",
"auditorList": "{[]}",
"coAuditorList": null,
"lastFlowOperation": "7",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "0F18BWPlZHYl54IX4u8--__xaFFRkWXvylv5YAibJl",
"summary": "",
"flowName": "流程4",
"stateLabel": "结束",
"initiator": "系统管理员",
"initiatorId": "__oP0irhWXGA2oZRusW1d",
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": 1640589571000,
"lastProcessTime": 1640589778000,
"flowstatertId": "0F18BWPlZHYl54IX4u8--__xaFFRkWXvylv5YAibJl-hkafpDPUWqGoIVqYq9f",
"flowId": "__ezKUOGocfX8G1ZCABSP",
"formId": "__xaFFRkWXvylv5YAibJl",
"docId": "0F18BWPlZHYl54IX4u8--__xaFFRkWXvylv5YAibJl",
"status": null,
"auditorNames": "",
"auditorList": "{[]}",
"coAuditorList": null,
"lastFlowOperation": "7",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "sKDhDsbYlZ4wZ56Al5B--__AwJyEpMKn5Oh9P80HOs",
"summary": "",
"flowName": "流程2",
"stateLabel": "结束",
"initiator": "wxw1",
"initiatorId": "tGnu7ptDCyBpFbB7t2L",
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": 1640577163000,
"lastProcessTime": 1640585424000,
"flowstatertId": "sKDhDsbYlZ4wZ56Al5B--__AwJyEpMKn5Oh9P80HOs-drOwiOtEUlMJ9Haxorj",
"flowId": "__clnpDn2x3gPy0UgfXBx",
"formId": "__AwJyEpMKn5Oh9P80HOs",
"docId": "sKDhDsbYlZ4wZ56Al5B--__AwJyEpMKn5Oh9P80HOs",
"status": null,
"auditorNames": "",
"auditorList": "{[]}",
"coAuditorList": null,
"lastFlowOperation": "7",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "__2LhKAmcYZ3N8K39Rblf--__qJQ2oo1YBE9sq98GzFg",
"summary": null,
"flowName": "通过角色抄送审批人",
"stateLabel": "人事",
"initiator": "系统管理员",
"initiatorId": null,
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": null,
"lastProcessTime": 1613644089000,
"flowstatertId": "__2LhKAmcYZ3N8K39Rblf--__qJQ2oo1YBE9sq98GzFg-__P36wM1uc9dXpzAsyVog",
"flowId": "__b7RIcRGKWItsvpf33Db",
"formId": "__qJQ2oo1YBE9sq98GzFg",
"docId": "__2LhKAmcYZ3N8K39Rblf--__qJQ2oo1YBE9sq98GzFg",
"status": null,
"auditorNames": "系统管理员,人事",
"auditorList": "{\"1584946785482\":[\"__oP0irhWXGA2oZRusW1d\",\"__LyKAhJwEP5MXLiyRF6s\"]}",
"coAuditorList": null,
"lastFlowOperation": "80",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "__HXQ9zLuIPtAPSCNWoWX--9c0aqDXwpcfHP2G5wCv",
"summary": null,
"flowName": "请假申请_串行流程",
"stateLabel": "人事备案",
"initiator": "系统管理员",
"initiatorId": null,
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": null,
"lastProcessTime": 1613644061000,
"flowstatertId": "__HXQ9zLuIPtAPSCNWoWX--9c0aqDXwpcfHP2G5wCv-__VlT01sIoANolfAmbfu2",
"flowId": "fW1801qkQ6PsAcfxuI2",
"formId": "9c0aqDXwpcfHP2G5wCv",
"docId": "__HXQ9zLuIPtAPSCNWoWX--9c0aqDXwpcfHP2G5wCv",
"status": null,
"auditorNames": "系统管理员",
"auditorList": "{\"1566350840526\":[\"__oP0irhWXGA2oZRusW1d\"]}",
"coAuditorList": null,
"lastFlowOperation": "80",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "__O547uHIosf2HnZYZOhm--__wC0XlExseDqCrrqItKD",
"summary": null,
"flowName": "市局督办",
"stateLabel": "区局督办受理中",
"initiator": "系统管理员",
"initiatorId": null,
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": null,
"lastProcessTime": 1613643952000,
"flowstatertId": "__O547uHIosf2HnZYZOhm--__wC0XlExseDqCrrqItKD-__QWHa07qocJc3ShtsoYM",
"flowId": "__NrGCEfz8wRFt9GSU0gZ",
"formId": "__wC0XlExseDqCrrqItKD",
"docId": "__O547uHIosf2HnZYZOhm--__wC0XlExseDqCrrqItKD",
"status": null,
"auditorNames": "",
"auditorList": "{\"1595160170302\":[]}",
"coAuditorList": null,
"lastFlowOperation": "80",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "__2CHhnoeBszTneBRRU18--S0BENt5k8A9dkM6tTpo",
"summary": null,
"flowName": "请假申请_设置表单权限",
"stateLabel": "人事备案",
"initiator": "系统管理员",
"initiatorId": null,
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": null,
"lastProcessTime": 1613643875000,
"flowstatertId": "__2CHhnoeBszTneBRRU18--S0BENt5k8A9dkM6tTpo-__PMKsAlgFj10uwVlW0xl",
"flowId": "i81ezXMr3s7pTzPs1wR",
"formId": "S0BENt5k8A9dkM6tTpo",
"docId": "__2CHhnoeBszTneBRRU18--S0BENt5k8A9dkM6tTpo",
"status": null,
"auditorNames": "系统管理员,人事",
"auditorList": "{\"1566350840526\":[\"__oP0irhWXGA2oZRusW1d\",\"__LyKAhJwEP5MXLiyRF6s\"]}",
"coAuditorList": null,
"lastFlowOperation": "80",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "__O3gRPIVbybC0zVMW9Au--jlEQBPqkPCUEjYdL6f3",
"summary": null,
"flowName": "请假申请_添加补签意见",
"stateLabel": "主管审批",
"initiator": "系统管理员",
"initiatorId": null,
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": null,
"lastProcessTime": 1613643861000,
"flowstatertId": "__O3gRPIVbybC0zVMW9Au--jlEQBPqkPCUEjYdL6f3-__gqbr65zTkvxUMh27mUS",
"flowId": "gllWbrkgsoXfkeGk7jk",
"formId": "jlEQBPqkPCUEjYdL6f3",
"docId": "__O3gRPIVbybC0zVMW9Au--jlEQBPqkPCUEjYdL6f3",
"status": null,
"auditorNames": "前端开发工程师02,测试专员01,售后专员02,销售员03,售后专员01,后端开发工程师02,技术部长,前端开发工程师01,系统管理员,前台专员,销售专员01,前端开发工程师03,售后组长,销售员02,后端开发工程师01,财务,销售员04,前端开发组长,测试专员02,测试组长,人事,后端开发工程师03",
"auditorList": "{\"1566350834001\":[\"__pYmsChfjQfodPWfF6Z1\",\"__M1g8MydPX42krz583Jy\",\"__hsgAbVwKZevuBdeiJJf\",\"__4K2NHMwlBsvhItS54bf\",\"__YfBaYUiseyktdgboQgI\",\"__rRhVCRESTbgHfIf6fGv\",\"__IuIvOafEXqqlBsTQXpZ\",\"__nX4Itfc8twLkdqHAsAz\",\"__oP0irhWXGA2oZRusW1d\",\"__dGVnXnRWbkjb6h26q6q\",\"__bvKhiFNfnWyWtnwoeTp\",\"__r3CRRY7sNyZi9tvAabM\",\"__LyFp6jqhbHsIf1VovV8\",\"__DRTjq33iYBsxt9iOp42\",\"__5TsWWMCjsEWKL7Uwlmg\",\"__GIhuZgXnREWfRcoDgOK\",\"__tEr8c6zPiFDjVYszTQU\",\"__eSxfm3Pryn8YcFhQY1A\",\"__wvn1ciPjGf0zDupkDam\",\"__y2nHhGskY9FQ6LYny8s\",\"__LyKAhJwEP5MXLiyRF6s\",\"__iba2MmpSWYHSMVzTOSx\"]}",
"coAuditorList": null,
"lastFlowOperation": "80",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "__Nyl16BcUfssERfh66sQ--iUiMDx79iwunOufOm64",
"summary": null,
"flowName": "请假申请_加签协办",
"stateLabel": "主管审批",
"initiator": "系统管理员",
"initiatorId": null,
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": null,
"lastProcessTime": 1613643839000,
"flowstatertId": "__Nyl16BcUfssERfh66sQ--iUiMDx79iwunOufOm64-__0KJGlfzjJFEyyX0tLUB",
"flowId": "QtwXrJdX42XrKmhY9Hv",
"formId": "iUiMDx79iwunOufOm64",
"docId": "__Nyl16BcUfssERfh66sQ--iUiMDx79iwunOufOm64",
"status": null,
"auditorNames": "销售专员01,销售员02,后端开发工程师02,销售员04,售后专员02,前端开发工程师01,后端开发工程师01,系统管理员,前端开发工程师03,技术部长,销售员03,前台专员,测试专员01,测试组长,人事,后端开发工程师03,测试专员02,财务,售后组长,售后专员01,前端开发工程师02,前端开发组长",
"auditorList": "{\"1566350834001\":[\"__bvKhiFNfnWyWtnwoeTp\",\"__DRTjq33iYBsxt9iOp42\",\"__rRhVCRESTbgHfIf6fGv\",\"__tEr8c6zPiFDjVYszTQU\",\"__hsgAbVwKZevuBdeiJJf\",\"__nX4Itfc8twLkdqHAsAz\",\"__5TsWWMCjsEWKL7Uwlmg\",\"__oP0irhWXGA2oZRusW1d\",\"__r3CRRY7sNyZi9tvAabM\",\"__IuIvOafEXqqlBsTQXpZ\",\"__4K2NHMwlBsvhItS54bf\",\"__dGVnXnRWbkjb6h26q6q\",\"__M1g8MydPX42krz583Jy\",\"__y2nHhGskY9FQ6LYny8s\",\"__LyKAhJwEP5MXLiyRF6s\",\"__iba2MmpSWYHSMVzTOSx\",\"__wvn1ciPjGf0zDupkDam\",\"__GIhuZgXnREWfRcoDgOK\",\"__LyFp6jqhbHsIf1VovV8\",\"__YfBaYUiseyktdgboQgI\",\"__pYmsChfjQfodPWfF6Z1\",\"__eSxfm3Pryn8YcFhQY1A\"]}",
"coAuditorList": null,
"lastFlowOperation": "80",
"flowIndex": null
},
{
"applicationid": "sOZu9kthmxyP8qQfq0e",
"id": "__dLCrMWdi4ISR8qzq8g8--jZ0aUDc6vs7wSOZETk9",
"summary": null,
"flowName": "请假申请_加签主办",
"stateLabel": "主管审批",
"initiator": "系统管理员",
"initiatorId": null,
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "系统管理员",
"firstProcessTime": null,
"lastProcessTime": 1613643790000,
"flowstatertId": "__dLCrMWdi4ISR8qzq8g8--jZ0aUDc6vs7wSOZETk9-__XyBMJhUdvbBVvSaupPj",
"flowId": "ppon3GMdiEcrUKr11AR",
"formId": "jZ0aUDc6vs7wSOZETk9",
"docId": "__dLCrMWdi4ISR8qzq8g8--jZ0aUDc6vs7wSOZETk9",
"status": null,
"auditorNames": "测试专员01,测试组长,前端开发工程师01,销售专员01,前台专员,前端开发工程师03,后端开发工程师03,财务,前端开发工程师02,后端开发工程师01,前端开发组长,销售员03,后端开发工程师02,技术部长,人事,测试专员02,系统管理员",
"auditorList": "{\"1566350834001\":[\"__M1g8MydPX42krz583Jy\",\"__y2nHhGskY9FQ6LYny8s\",\"__nX4Itfc8twLkdqHAsAz\",\"__bvKhiFNfnWyWtnwoeTp\",\"__dGVnXnRWbkjb6h26q6q\",\"__r3CRRY7sNyZi9tvAabM\",\"__iba2MmpSWYHSMVzTOSx\",\"__GIhuZgXnREWfRcoDgOK\",\"__pYmsChfjQfodPWfF6Z1\",\"__5TsWWMCjsEWKL7Uwlmg\",\"__eSxfm3Pryn8YcFhQY1A\",\"__4K2NHMwlBsvhItS54bf\",\"__rRhVCRESTbgHfIf6fGv\",\"__IuIvOafEXqqlBsTQXpZ\",\"__LyKAhJwEP5MXLiyRF6s\",\"__wvn1ciPjGf0zDupkDam\",\"__oP0irhWXGA2oZRusW1d\"]}",
"coAuditorList": null,
"lastFlowOperation": "80",
"flowIndex": null
}
],
"pageCount": 3
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» applicationid | string | true | none | none | |
»»» id | string | true | none | none | |
»»» summary | string¦null | true | none | none | |
»»» flowName | string | true | none | none | |
»»» stateLabel | string | true | none | none | |
»»» initiator | string | true | none | none | |
»»» initiatorId | string¦null | true | none | none | |
»»» initiatorDept | null | true | none | none | |
»»» initiatorDeptId | null | true | none | none | |
»»» lastAuditor | string | true | none | none | |
»»» firstProcessTime | integer¦null | true | none | none | |
»»» lastProcessTime | integer | true | none | none | |
»»» flowstatertId | string | true | none | none | |
»»» flowId | string | true | none | none | |
»»» formId | string | true | none | none | |
»»» docId | string | true | none | none | |
»»» status | null | true | none | none | |
»»» auditorNames | string | true | none | none | |
»»» auditorList | string | true | none | none | |
»»» coAuditorList | null | true | none | none | |
»»» lastFlowOperation | string | true | none | none | |
»»» flowIndex | null | true | none | none | |
»» pageCount | integer | true | none | none |
GET 流程耗时占比
GET /api/authtime/domain/{domainid}/applicationid/{applicationid}/workflow/flowTimeConsumingAccounting
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id | |
daterange | query | string | 否 | 日期(今天-today 本周 thisweek 本月-thismonth 本年=thisyear) | |
showmode | query | string | 否 | 显示所有用户(all) |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
GET 流程实例占比
GET /api/authtime/domain/{domainid}/applicationid/{applicationid}/workflow/flowAccounting
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id | |
daterange | query | string | 否 | 日期(今天-today 本周 thisweek 本月-thismonth 本年=thisyear) | |
showmode | query | string | 否 | 显示所有用户(all) |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
GET 查看流程实例信息
GET /api/authtime/domain/applicationid/{applicationid}/workflow/flowstatert
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
applicationid | path | string | 是 | 软件id | |
id | query | string | 否 | 流程实例id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"applicationid": "__li0F1Bmmpxzxtz12Zm6",
"id": "30NhBwMn2JkEmqSgeTx--__AwJyEpMKn5Oh9P80HOs",
"summary": "",
"flowName": "流程2",
"stateLabel": "申请人",
"initiator": "wxw1",
"initiatorId": "tGnu7ptDCyBpFbB7t2L",
"initiatorDept": null,
"initiatorDeptId": null,
"lastAuditor": "wxw1",
"firstProcessTime": 1640576435000,
"lastProcessTime": 1640576435000,
"flowstatertId": "30NhBwMn2JkEmqSgeTx--__AwJyEpMKn5Oh9P80HOs-vekmWcK7mvQH6cQWJto",
"flowId": "__clnpDn2x3gPy0UgfXBx",
"formId": "__AwJyEpMKn5Oh9P80HOs",
"docId": "30NhBwMn2JkEmqSgeTx--__AwJyEpMKn5Oh9P80HOs",
"status": null,
"auditorNames": "系统管理员,wxw1",
"auditorList": "{\"1640576287879\":[\"__oP0irhWXGA2oZRusW1d\",\"tGnu7ptDCyBpFbB7t2L\"]}",
"coAuditorList": null,
"lastFlowOperation": "1",
"flowIndex": null
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» applicationid | string | true | none | none | |
»» id | string | true | none | none | |
»» summary | string | true | none | none | |
»» flowName | string | true | none | none | |
»» stateLabel | string | true | none | none | |
»» initiator | string | true | none | none | |
»» initiatorId | string | true | none | none | |
»» initiatorDept | null | true | none | none | |
»» initiatorDeptId | null | true | none | none | |
»» lastAuditor | string | true | none | none | |
»» firstProcessTime | integer | true | none | none | |
»» lastProcessTime | integer | true | none | none | |
»» flowstatertId | string | true | none | none | |
»» flowId | string | true | none | none | |
»» formId | string | true | none | none | |
»» docId | string | true | none | none | |
»» status | null | true | none | none | |
»» auditorNames | string | true | none | none | |
»» auditorList | string | true | none | none | |
»» coAuditorList | null | true | none | none | |
»» lastFlowOperation | string | true | none | none | |
»» flowIndex | null | true | none | none |
GET 流程耗时排序
GET /api/authtime/domain/{domainid}/applicationid/{applicationid}/workflow/doAnalyzerActorTimeConsumingTopX
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
applicationid | path | string | 是 | 软件id | |
daterange | query | string | 否 | 日期(今天-today 本周 thisweek 本月-thismonth 本年=thisyear) | |
showmode | query | string | 否 | 显示所有用户(all) |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 95334
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "FPnfiZrQktvBKa5thBd"
},
{
"columnName": "FLOWNAME",
"value": "请假申请"
},
{
"columnName": "STARTNODENAME",
"value": "申请人"
},
{
"columnName": "ENDNODENAME",
"value": "主管"
},
{
"columnName": "AUDITOR",
"value": "ycRsc26GiLHzkJuinLm"
},
{
"columnName": "DOCID",
"value": "UKNr2QPNqT8srz5RXVj"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 63220
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "VN97M5KJ3TAx7sOs4KL"
},
{
"columnName": "FLOWNAME",
"value": "挂起"
},
{
"columnName": "STARTNODENAME",
"value": "测试1"
},
{
"columnName": "ENDNODENAME",
"value": "测试1"
},
{
"columnName": "AUDITOR",
"value": "RusnXYokDS3ox4l1WDD"
},
{
"columnName": "DOCID",
"value": "WAA37ld1MkfL4kRh21f"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 4503
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "f10LmdSPbI5LYZDoZ93"
},
{
"columnName": "FLOWNAME",
"value": "加签主办人"
},
{
"columnName": "STARTNODENAME",
"value": "申请"
},
{
"columnName": "ENDNODENAME",
"value": "人事审核"
},
{
"columnName": "AUDITOR",
"value": "sLXMZ59zCXSz3uoq9Yf"
},
{
"columnName": "DOCID",
"value": "puBVItjMobvwfaaz9vO"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 3987
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "zyAn3KlaecPYY6zUHuh"
},
{
"columnName": "FLOWNAME",
"value": "带时间流程审核"
},
{
"columnName": "STARTNODENAME",
"value": "提交申请"
},
{
"columnName": "ENDNODENAME",
"value": "主管审核"
},
{
"columnName": "AUDITOR",
"value": "5PN80KzuWw6TEEMLINK"
},
{
"columnName": "DOCID",
"value": "aNWtG5Ih2Lz7fiOFwQ6"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 136
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "FcWg77Avx41c6XIk6UU"
},
{
"columnName": "FLOWNAME",
"value": "补签功能"
},
{
"columnName": "STARTNODENAME",
"value": "人事"
},
{
"columnName": "ENDNODENAME",
"value": "宣传"
},
{
"columnName": "AUDITOR",
"value": "6itX5G75sJiN3JdAIu9"
},
{
"columnName": "DOCID",
"value": "Nwoj9ERh40249UZh4ZY"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 48
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "TCzZJInlgVxXmQ8kv5C"
},
{
"columnName": "FLOWNAME",
"value": "发文流程_聚合"
},
{
"columnName": "STARTNODENAME",
"value": "发文草稿"
},
{
"columnName": "ENDNODENAME",
"value": "办公室"
},
{
"columnName": "AUDITOR",
"value": "SiJ037fKniXlDb808T0"
},
{
"columnName": "DOCID",
"value": "x1vYNzkg1LowzEmxVMR"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 20
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "VN97M5KJ3TAx7sOs4KL"
},
{
"columnName": "FLOWNAME",
"value": "挂起"
},
{
"columnName": "STARTNODENAME",
"value": "宣传1"
},
{
"columnName": "ENDNODENAME",
"value": "测试1"
},
{
"columnName": "AUDITOR",
"value": "RusnXYokDS3ox4l1WDD"
},
{
"columnName": "DOCID",
"value": "d5mMAEssCMUQasq0Ul7"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 19
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "5EWSM5Bm0UOk3cYj4T0"
},
{
"columnName": "FLOWNAME",
"value": "请假申请_串行"
},
{
"columnName": "STARTNODENAME",
"value": "申请人"
},
{
"columnName": "ENDNODENAME",
"value": "主管"
},
{
"columnName": "AUDITOR",
"value": "t5WlGHNIgD9sXH6iNQs"
},
{
"columnName": "DOCID",
"value": "xNNJcdyLRJkx9agI7oF"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 19
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "5EWSM5Bm0UOk3cYj4T0"
},
{
"columnName": "FLOWNAME",
"value": "请假申请_串行"
},
{
"columnName": "STARTNODENAME",
"value": "申请人"
},
{
"columnName": "ENDNODENAME",
"value": "主管"
},
{
"columnName": "AUDITOR",
"value": "D2Fn7vAlmFZlvMplyQv"
},
{
"columnName": "DOCID",
"value": "R2oY3ekjTkSKWfKDq9W"
}
]
},
{
"id": null,
"resultFields": [
{
"fieldName": "AMOUNT",
"value": 18
}
],
"groupColumns": [
{
"columnName": "FLOWID",
"value": "5EWSM5Bm0UOk3cYj4T0"
},
{
"columnName": "FLOWNAME",
"value": "请假申请_串行"
},
{
"columnName": "STARTNODENAME",
"value": "申请人"
},
{
"columnName": "ENDNODENAME",
"value": "主管"
},
{
"columnName": "AUDITOR",
"value": "TyigJ70RRrysfm2FcmP"
},
{
"columnName": "DOCID",
"value": "1B0bE5joroLEsTys0YM"
}
]
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
GET 获取文档节点历史审批人
GET /api/authtime/domain/applicationid/{applicationid}/workflow/intervention/approvers
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
applicationid | path | string | 是 | 软件id | |
id | query | string | 否 | 文档id | |
nodeid | query | string | 否 | 节点id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"id": "1532945544660",
"statelabel": "申请人"
},
{
"id": "1532945622003",
"statelabel": "完成"
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
GET 获取可干预的节点
GET /api/authtime/domain/applicationid/{applicationid}/workflow/intervention/othernodes
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
applicationid | path | string | 是 | 软件id | |
id | query | string | 否 | 流程实例id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"id": "1532945544660",
"type": "节点类型",
"statelabel": "申请人"
},
{
"id": "1532945622003",
"type": "节点类型",
"statelabel": "完成"
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | [object] | true | none | none | |
»» id | string | true | none | none | |
»» type | string | true | none | none | |
»» statelabel | string | true | none | none |
POST 批量更新当前流程节点审批人
POST /api/authtime/domain/workflow/approvers/batch
Body 请求参数
{
"userIds": [
"__QZLADYKIXgCMomV6IK0"
],
"docs": [
{
"docId": "__8QyeO4uMDBUTotEHhaJ",
"applicationId": "sOZu9kthmxyP8qQfq0e"
}
]
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | object | 否 | none | |
» userIds | body | [string] | 是 | 用户id集合 | none |
» docs | body | [object] | 是 | none | |
»» docId | body | string | 否 | 文档id | none |
»» applicationId | body | string | 否 | 软件id | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
POST 干预流程
POST /api/authtime/domain/applicationid/{applicationid}/workflow/intervention/flowstatert/doflow
Body 请求参数
{
"submitTo": [
{
"nodeid": "1589963184813",
"isToPerson": true,
"userids": "__5Hk3YqTU5A4zdRJ5Wbu;4czjvLGmSk1XsL50p8A"
},
{
"nodeid": "1589963187699",
"isToPerson": true,
"userids": "AzKGycMtONnUirI04M0"
}
]
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
applicationid | path | string | 是 | 软件id | |
id | query | string | 否 | 流程实例id | |
nextnodeids | query | string | 否 | 干预节点id(id1,id2,id3……) | |
body | body | object | 否 | none | |
» submitTo | body | [object] | 是 | none | |
»» nodeid | body | string | 是 | none | |
»» isToPerson | body | boolean | 是 | none | |
»» userids | body | string | 是 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"id": "1532945544660",
"statelabel": "申请人"
},
{
"id": "1532945622003",
"statelabel": "完成"
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | [object] | true | none | none | |
»» id | string | true | none | none | |
»» statelabel | string | true | none | none |
GET 获取流程指定审批人用户选择框列表
GET /api/authtime/domain/documents/{docId}/workflows/{flowId}/selectApprovers
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
docId | path | string | 是 | 文档id | |
flowId | path | string | 是 | 流程id | |
applicationId | query | string | 否 | 软件id | |
nodeId | query | string | 否 | 节点id | |
type | query | string | 否 | 类型(3:查询;2:角色;1:部门;) | |
selectId | query | string | 否 | 点击角色或者部门时选中id | |
pageNum | query | string | 否 | 当前页 | |
pageSize | query | string | 否 | 每页显示数据数 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"datas": [
{
"id": "11e4-63ff-5d9df2ad-9f19-57d7b83ae7be",
"name": "admin",
"type": 1,
"mobile": "",
"mobile2": null,
"email": "",
"avatar": "",
"dept": "产品部",
"deptId": "11e8-46a9-a3c6c4f2-94a7-9b60038597d7",
"loginNo": "admin1",
"domainId": "11e1-81e2-37f74759-9124-47aada6b7467",
"pcmEnable": true,
"domainAdmin": false
}
],
"pageCount": 1,
"rowCount": 2,
"pageNum": 1,
"linesPerPage": 5
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» datas | [object] | true | none | none | |
»»» id | string | false | none | none | |
»»» name | string | false | none | none | |
»»» type | integer | false | none | none | |
»»» mobile | string | false | none | none | |
»»» mobile2 | null | false | none | none | |
string | false | none | none | ||
»»» avatar | string | false | none | none | |
»»» dept | string | false | none | none | |
»»» deptId | string | false | none | none | |
»»» loginNo | string | false | none | none | |
»»» domainId | string | false | none | none | |
»»» pcmEnable | boolean | false | none | none | |
»»» domainAdmin | boolean | false | none | none | |
»» pageCount | integer | true | none | none | |
»» rowCount | integer | true | none | none | |
»» pageNum | integer | true | none | none | |
»» linesPerPage | integer | true | none | none |
myApps授权时/邮件配置
GET 获取企业域邮件配置
GET /api/authtime/domain/{domainid}/email
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"fetchServer": "imap.exmail.qq.com",
"sendHost": "smtp.exmail.qq.com",
"smtpServerPort": "465",
"domainId": "3CffNlgt9B9StIjIUPB",
"ccAddress": "",
"sendAddress": "nicole@teemlink.com",
"trash": "Junk E-mail",
"isUseClient": "true",
"fetchssl": "false",
"smtpssl": "false",
"smtpServer": "smtp.exmail.qq.com",
"removed": "removed",
"sender": "Sent Items",
"smtpAuthenticated": "true",
"fetchProtocol": "imap",
"sendPassword": "MyWAdC2ThUJoJgZa",
"draft": "Drafts",
"sendAccount": "nicole@teemlink.com",
"functionDomain": "teemlink.com",
"fetchServerPort": "993"
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» fetchServer | string | true | none | none | |
»» sendHost | string | true | none | none | |
»» smtpServerPort | string | true | none | none | |
»» domainId | string | true | none | none | |
»» ccAddress | string | true | none | none | |
»» sendAddress | string | true | none | none | |
»» trash | string | true | none | none | |
»» isUseClient | string | true | none | none | |
»» fetchssl | string | true | none | none | |
»» smtpssl | string | true | none | none | |
»» smtpServer | string | true | none | none | |
»» removed | string | true | none | none | |
»» sender | string | true | none | none | |
»» smtpAuthenticated | string | true | none | none | |
»» fetchProtocol | string | true | none | none | |
»» sendPassword | string | true | none | none | |
»» draft | string | true | none | none | |
»» sendAccount | string | true | none | none | |
»» functionDomain | string | true | none | none | |
»» fetchServerPort | string | true | none | none |
PUT 更新企业域邮件配置
PUT /api/authtime/domain/{domainid}/email
Body 请求参数
{
"sendHost": "邮件发送主机",
"sendAddress": "邮件发送地址",
"sendAccount": "邮件发送账号",
"sendPassword": "邮件发送密码",
"ccAddress": "邮件抄送地址",
"isUseClient": "邮件客户端",
"functionDomain": "邮件功能域",
"sender": "邮件发送箱",
"draft": "草稿箱",
"removed": "已删除",
"fetchServer": "收取邮件服务器",
"fetchServerPort": "收取邮件端口",
"fetchProtocol": "收取邮件协议",
"fetchssl": "是否需要证书",
"smtpServerPort": "发送邮件服务器端口",
"smtpAuthenticated": "是否可带附件",
"smtpssl": "是否需要证书"
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainid | path | string | 是 | 企业域id | |
body | body | object | 否 | none |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
myApps授权时/文件上传
POST 上传文件
POST /api/authtime/uploads
Body 请求参数
files: string
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
body | body | object | 否 | none | |
» files | body | string | 否 | 多个文件 |
返回示例
成功
{
"data": [
{
"fileName": "import_user_sample.xlsx",
"filePath": "\\uploads\\2019\\8fd094db-b2d8-4114-ae00-ef94f004c38d.xlsx"
}
],
"errcode": 0,
"errmsg": "ok"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» data | [object] | true | none | none | |
»» fileName | string | false | none | none | |
»» filePath | string | false | none | none | |
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
myApps授权时/平台模式流程测试模块
GET 获取所有流程信息
GET /api/authtime/domain/applications/{applicationId}/platform/flows
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
applicationId | path | string | 是 | 软件id | |
pageSize | query | string | 否 | 页长度 | |
pageNum | query | string | 否 | 当前页码 |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"linesPerPage": 10,
"pageCount": 1,
"datas": [
{
"subject": "山东泰华",
"name": "山东泰华",
"id": "__3a72QPe9RbHyFKEUrTT"
},
{
"subject": "子流程",
"name": "子流程",
"id": "__5E4FAfPReq0roKZsa1S"
},
{
"subject": "测试",
"name": "测试",
"id": "__8bj1HcIt5CawwFlZvh5"
}
],
"rowCount": 3,
"pageNum": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageCount | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» subject | string | true | none | none | |
»»» name | string | true | none | none | |
»»» id | string | true | none | none | |
»» rowCount | integer | true | none | none | |
»» pageNum | integer | true | none | none |
GET 获取所有绑定用户
GET /api/authtime/domain/{domainId}/applications/{applicationId}/platform/allusers
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
domainId | path | string | 是 | none | |
applicationId | path | string | 是 | 软件id |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": [
"B0",
"admin1",
"junye",
"janceshi",
"janxuanchuan"
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none |
myApps授权时/定时任务
PUT 启动定时任务
PUT /api/authtime/domain/task/start
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | query | string | 否 | 任务id | |
rTime | query | string | 否 | 运行时间 | |
rDate | query | string | 否 | 运行日期 |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
POST 获取绑定软件的定时任务
POST /api/authtime/domain/tasks
Body 请求参数
[
"{{applicationId}}",
"id2"
]
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
searchword | query | string | 否 | 关键字 | |
linesPerPage | query | string | 否 | 页长度 | |
pageNo | query | string | 否 | 当前页码 | |
body | body | array[string] | 否 | none |
返回示例
成功
{
"errcode": 0,
"errmsg": "ok",
"data": {
"rowCount": 1,
"linesPerPage": 10,
"pageNo": 1,
"datas": [
{
"id": "__oopBLDNdK2Dp1p2Csfb",
"uri": "/4.0功能示例.application/测试01.task/测试01.task",
"name": "测试01",
"type": 1,
"description": "",
"runningTime": 1607697833000,
"period": 34,
"runtimes": 0,
"terminateScript": "",
"taskScript": "\n//输出文本到控制台,可以在应用服务器的后台和前台调试模式下的控制查看打印内容\n(function(){\nprintln(\"当前审批人:\");\n})()",
"modifyTime": 1607696192094,
"creator": "Admin",
"creatorid": "Ai6hllhNjS2ull9TKGb",
"totalRuntimes": 21,
"state": 0,
"startupType": 0,
"daysOfWeek": [],
"dayOfMonth": 1,
"repeatTimes": 0,
"frequency": 0,
"executedCount": 0,
"rDate": "",
"rTime": "",
"modifyTiemStr": "2020-12-11",
"rdate": "",
"rtime": ""
}
],
"pageCount": 1
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» errcode | integer | true | none | none | |
» errmsg | string | true | none | none | |
» data | object | true | none | none | |
»» rowCount | integer | true | none | none | |
»» linesPerPage | integer | true | none | none | |
»» pageNo | integer | true | none | none | |
»» datas | [object] | true | none | none | |
»»» id | string | false | none | none | |
»»» uri | string | false | none | none | |
»»» name | string | false | none | none | |
»»» type | integer | false | none | none | |
»»» description | string | false | none | none | |
»»» runningTime | integer | false | none | none | |
»»» period | integer | false | none | none | |
»»» runtimes | integer | false | none | none | |
»»» terminateScript | string | false | none | none | |
»»» taskScript | string | false | none | none | |
»»» modifyTime | integer | false | none | none | |
»»» creator | string | false | none | none | |
»»» creatorid | string | false | none | none | |
»»» totalRuntimes | integer | false | none | none | |
»»» state | integer | false | none | none | |
»»» startupType | integer | false | none | none | |
»»» daysOfWeek | [string] | false | none | none | |
»»» dayOfMonth | integer | false | none | none | |
»»» repeatTimes | integer | false | none | none | |
»»» frequency | integer | false | none | none | |
»»» executedCount | integer | false | none | none | |
»»» rDate | string | false | none | none | |
»»» rTime | string | false | none | none | |
»»» modifyTiemStr | string | false | none | none | |
»»» rdate | string | false | none | none | |
»»» rtime | string | false | none | none | |
»» pageCount | integer | true | none | none |
PUT 停止定时任务
PUT /api/authtime/domain/task/stop
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
accessToken | cookie | string | 否 | none | |
adminToken | cookie | string | 否 | none | |
id | query | string | 否 | none |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |