简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
GET:https://dev5.yunzmall.com/addons/yun_shop/api.php?route=plugin.data-dictionary.sql.get-table-detail&table_name=ims_account
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
table_name | 是 | string | 表名 |
返回示例:
正确时返回:
{
result: 1,
msg: "ok",
data:{
ims_yz_account_open_config: [
{
name: "config_id",
type: "integer",
default: null,
notnull: true,
length: null,
unsigned: false,
autoincrement: false,
comment: null,
collation: null
},
{
name: "uniacid",
type: "integer",
default: "0",
notnull: true,
length: null,
unsigned: false,
autoincrement: false,
comment: null,
collation: null
},
{
name: "app_key",
type: "string",
default: null,
notnull: true,
length: 64,
unsigned: false,
autoincrement: false,
comment: null,
collation: "utf8mb4_unicode_ci"
},
{
name: "app_secret",
type: "string",
default: null,
notnull: true,
length: 64,
unsigned: false,
autoincrement: false,
comment: null,
collation: "utf8mb4_unicode_ci"
},
{
name: "type",
type: "boolean",
default: "0",
notnull: true,
length: null,
unsigned: false,
autoincrement: false,
comment: null,
collation: null
},
{
name: "created_at",
type: "integer",
default: "0",
notnull: true,
length: null,
unsigned: true,
autoincrement: false,
comment: null,
collation: null
},
{
name: "updated_at",
type: "integer",
default: "0",
notnull: true,
length: null,
unsigned: true,
autoincrement: false,
comment: null,
collation: null
},
{
name: "deleted_at",
type: "integer",
default: null,
notnull: false,
length: null,
unsigned: false,
autoincrement: false,
comment: null,
collation: null
}
],
table_comment: "测试--描述"
}
}
}
}
错误时返回:
{
result: 0,
msg: "fail",
data: []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
name | string | 表名 |
type | string | 字段类型 |
default | string | 默认值 |
notnull | bool | 是否可以为空 |
length | int | 长度 |
unsigned | bool | 是否可以无符号 |
autoincrement | bool | 是否自增 |
comment | string | 字段描述 |
collation | string | 字符集 |
|table_comment|string |表描述|
备注:
- 更多返回错误代码请看首页的错误代码描述