DuliDuli Open Platform
EN
简体中文
繁體中文
English
Quick Start APIs DuliDuli Official Website
模板

Global Instructions


Overview of Global Instructions

All interfaces that are not specifically marked otherwise adhere to this global specification:

1.Protocol and Port:
All interfaces use the HTTP protocol with a default port of 9022.
2.Data Format:
All data is in JSON format, with a content type of application/json.
3.Access Token Requirement:
Each active call must include the accessToken parameter, which is obtained using the EnterpriseID, AppID, and AppSecret.
4.Data Encryption for POST Requests:
Data in POST requests must be encrypted. For details on the encryption method, please refer to the encryption and decryption instructions.
(Note: Encryption specifics would be provided in the request headers or additional documentation.)

Request headers

Header

Description

Content-Type

application/json

Global Return Values

Unless otherwise specified, the type of the return result is always: application/json

Field

Type

Description

code

Int

Status Code: 0 normal,

non-zero indicates error

msg

String

Status Code

data

String[]

Return Result

Object Type Return Example:

json

{
"code": 0,
"msg": "ok",
"data": {
"key" : "value"
}
}

Array Type Return Example:

json

{
"code": 0,
"msg": "ok",
"data": [
{"key" : "value"},
{"key" : "value"}
]
}

Global Error Codes

code

message

Description

1

ok

ok

2

system error

system error

100010

token expire

token expire

100020

invaild enterprise id

invaild enterprise id

100021

invaild app id

invaild app id

100030

invalid user id

invalid user id

100031

invalid query type

invalid query type

100040

Invalid params

Invalid params

100060

Invalid org or account

Invalid org or account

100061

mobile already exist error

mobile already exist error

100062

Invalid mobile number

Invalid mobile number

100063

email already exist error

email already exist error

100064

Invalid email

Invalid email

100065

Invalid params

Invalid params

100070

org id is required

org id is required

100080

Invalid dept name

Invalid dept name

100081

Invalid dept id

Invalid dept id

100082

parent dept not exisit

parent dept not exisit

100083

Invalid parameters

Invalid parameters

100090

Invalid dept name

Invalid dept name

100091

Invalid dept id

Invalid dept id

100092

parent dept not exisit

parent dept not exisit

100093

Invalid org id

Invalid org id

100094

Invalid parameters

Invalid parameters

100093

Invalid org id

Invalid org id

100094

Invalid parameters

Invalid parameters

100110

Invalid group id

Invalid group id

100111

Invalid account

Invalid account

100120

group not exist error

group not exist error

100130

Invalid group name

Invalid group name

100140

Invalid nick name

Invalid nick name

100141

Invalid password

Invalid password

100142

account already exist error

account already exist error

100143

org account already exist error

org account already exist error

100144

account dept is null

account dept is null

100150

Invalid status

Invalid status

100151

Invalid account id list

Invalid account id list

100160

Invalid file

Invalid file

100161

Invalid column header error

Invalid column header error

100162

Invalid content null

Invalid content null

100163

Invalid type

Invalid type

100164

Invalid cover

Invalid cover

100165

Invalid language

Invalid language