/industry/addIndustry
在用管理后台
#
| 控制器 | com.jxxx.dscp.api.controller.industry.IndustryController#addIndustry |
|---|---|
| 所属模块 | industry industry |
| 暴露渠道 | 管理后台 (@Route 注解;决定 URL 前缀与可访问端) |
| 请求方法 | POST |
industryIndustryController#addIndustryIndustry ⇒ 表 industryIndustryService#add (IndustryServiceImpl)IndustryMapper#insert ⇒ 表 industry链路按 Controller → Service(Impl) → Mapper → 表 逐层追踪;字段对应的「表.列」见下方请求/响应表新增列,按字段同名映射到涉及的实体表列;— 表示该字段为查询条件 / 计算 / 转换 / 包装字段,未直接对应单一列。
| 环境 | 完整 URL(主机 + 渠道前缀 + 路径) | 备注 |
|---|---|---|
| dev | https://dscp-dev.hn12301.net/manage-api/industry/addIndustry | |
| uat | https://dscp-uat.hn12301.net/manage-api/industry/addIndustry | |
| pro | https://dscp-uat.hn12301.net/manage-api/industry/addIndustry | (仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意) |
无(该接口无 Query/Path/Header 显式参数;入参见 Body)
IndustryAddRequest| 字段 | 类型 | 必填 | 取值/校验 | 表 / 列 | 说明 |
|---|---|---|---|---|---|
| code | String | 是 | 必填 | industry.code | code |
| name | String | 是 | 必填 | industry.name | 名称 |
| state | Boolean | industry.state | 状态 | ||
| parentCode | String | industry.parent_code | 父code |
| errcode | int | 业务码,0=成功 |
| errmsg | string | 提示信息 |
| data | T | 下方“data 结构” |
IndustryResponse (object)| 字段 | 类型 | 必填 | 取值/校验 | 表 / 列 | 说明 |
|---|---|---|---|---|---|
| id | Long | industry.id | id | ||
| code | String | industry.code | code | ||
| name | String | industry.name | 名称 | ||
| state | Boolean | industry.state | 状态 | ||
| parentCode | String | industry.parent_code | 父code | ||
| children | List<IndustryResponse> | — | 子列表 | ||
| children[].… | (循环引用,已折叠) | — |
示例
POST /industry/addIndustry{
"body": {
"code": "",
"name": "",
"state": false,
"parentCode": ""
}
}{
"errcode": 0,
"errmsg": "",
"data": {
"id": 1,
"code": "",
"name": "",
"state": false,
"parentCode": "",
"children": [
{}
]
}
}