文档
测试

对企业颁发client id, secret

POST
http://${ip}:${port}/api/oauth/add-tenant

接口名

add-tenant

请求参数

参数名
类型
描述
必填
companyCode
String
企业编码
必填

响应参数

application/json
参数名
类型
描述
必填
addTenantResponse
必填
code
int
返回码,0表示成功,其他都是问题编码,具体参见错误码
必填
message
string
返回描述
必填
data
object
必填
clientId
long
租户id
必填
clientSecret
string
租户secret
必填
totalResults
int
必填
errorNote
必填

返回示例

```json { "addTenantResponse": { "code": 0, "message": "成功", "data": { "clientId": "10000010", "clientSecret": "86K5MVjVt0EiL7WAT9TdwsL1Tr6iuET9" }, "totalResults": null, "errorNote": null } } ```