142 lines
3.4 KiB
JSON
142 lines
3.4 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "product_category",
|
|
"title": "产品类别树",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "parent_id",
|
|
"title": "父类别ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "类别名称",
|
|
"type": "str",
|
|
"length": 255,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "类别描述",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "has_product",
|
|
"title": "是否可挂产品",
|
|
"type": "char",
|
|
"length": 1,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "product_table_name",
|
|
"title": "产品数据表名",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "product_table_title",
|
|
"title": "产品数据表显示名",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "sort_order",
|
|
"title": "排序序号",
|
|
"type": "int",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "icon",
|
|
"title": "图标",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "char",
|
|
"length": 1,
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "所属机构ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "created_by",
|
|
"title": "创建人",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "datetime",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "datetime",
|
|
"nullable": "no"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_product_category_parent",
|
|
"idxtype": "index",
|
|
"idxfields": ["parent_id"]
|
|
},
|
|
{
|
|
"name": "idx_product_category_status",
|
|
"idxtype": "index",
|
|
"idxfields": ["status"]
|
|
},
|
|
{
|
|
"name": "idx_product_category_org",
|
|
"idxtype": "index",
|
|
"idxfields": ["org_id"]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "parent_id",
|
|
"table": "product_category",
|
|
"valuefield": "id",
|
|
"textfield": "name",
|
|
"cond": "has_product='0'"
|
|
},
|
|
{
|
|
"field": "has_product",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "id='has_product_flg'"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "id='product_category_status'"
|
|
}
|
|
]
|
|
}
|