POST
/system/tenant/queryTenantList管理后台租户表-列表查询
平台与系统 / 租户
基本信息
- 接口状态脚手架生成·未接入前端
- 接口URLPOST
https://dscp-dev.hn12301.net/manage-api/system/tenant/queryTenantList - 请求方式
POST - Content-Type
application/json - 暴露渠道管理后台 前缀
/manage-api - 名称来源源码注释
- 调用方本次扫描未发现调用
- 需求上下文
- 维护人 / 最后改动AsiQue 2023-11-25
- 读写数据表
system_tenant反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.system.TenantController#queryTenantList - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/system/TenantController.java:48 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| name | … | 否 | String | 租户名 → system_tenant.name |
| contactUserId | … | 否 | Long | 联系人的用户编号 → system_tenant.contact_user_id |
| contactName | … | 否 | String | 联系人 → system_tenant.contact_name |
| contactMobile | … | 否 | String | 联系手机 → system_tenant.contact_mobile |
| status | … | 否 | Integer | 租户状态(0正常 1停用) → system_tenant.status |
| website | … | 否 | String | 绑定域名 → system_tenant.website |
| packageId | … | 否 | Long | 租户套餐编号 → system_tenant.package_id |
| expireTime | … | 否 | Date | 过期时间 → system_tenant.expire_time |
| accountCount | … | 否 | Integer | 账号数量 → system_tenant.account_count |
| idList | … | 否 | List<Long> | id列表 |
| keywords | … | 否 | String | 关键字 |
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| id | … | 否 | Long | 租户编号 → system_tenant.id |
| name | … | 否 | String | 租户名 → system_tenant.name |
| contactUserId | … | 否 | Long | 联系人的用户编号 → system_tenant.contact_user_id |
| contactName | … | 否 | String | 联系人 → system_tenant.contact_name |
| contactMobile | … | 否 | String | 联系手机 → system_tenant.contact_mobile |
| status | … | 否 | Integer | 租户状态(0正常 1停用) → system_tenant.status |
| website | … | 否 | String | 绑定域名 → system_tenant.website |
| packageId | … | 否 | Long | 租户套餐编号 → system_tenant.package_id |
| expireTime | … | 否 | Date | 过期时间 → system_tenant.expire_time |
| accountCount | … | 否 | Integer | 账号数量 → system_tenant.account_count |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"id": "1",
"name": "\"string\"",
"contactUserId": "1",
"contactName": "\"string\"",
"contactMobile": "\"string\"",
"status": "1",
"website": "\"string\"",
"packageId": "1",
"expireTime": "\"2026-01-01 00:00:00\"",
"accountCount": "1"
}
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:system_tenant 反查全部引用接口 →
- TenantController#queryTenantList
- TenantService#queryList(TenantServiceImpl)
- TenantMapper#queryList
- BeanUtils.map → TenantQuery
- BeanUtils.mapList → TenantResponse
逻辑摘要:列表查询(tenantService.queryList);入参与返回值经 BeanUtils 做对象/分页映射
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)