## 查询资源分组信息

> BASIC

**Path:** /api/app/ebuilder/form/viewFilter/getGroupSearch/{pageId}/{compId}

**Method:** POST

> REQUEST

**Path Params:**

| name | value | desc |
| --- | --- | --- |
| pageId |  | 页面id |
| compId |  | 组件id |

**Request Body:**

| name | type | desc |
| --- | --- | --- |
| isPhysical | boolean | 是否物理表 |
| resourceGroup | boolean | 是否资源分组，默认传true |

**Request Demo:**

```json
{
  "isPhysical": true,
  "resourceGroup": true
}
```

> RESPONSE

**Body:**

| name | type | desc |
| --- | --- | --- |
| code | integer |  |
| msg | string |  |
| status | boolean |  |
| data | array |  |
| \|─ | object |  |
| \|─id | integer |  |
| \|─listId | integer |  |
| \|─groupField | integer |  |
| \|─fieldId | integer |  |
| \|─showOrder | integer |  |
| \|─fieldInfo | object |  |
| \|─key | object |  |
| \|─showPosition | string | 显示位置 |
| \|─defaultValue | string | 默认值 |
| \|─multiSelect | boolean | 是否多选 |
| \|─componentKey | string |  |
| \|─showName | string |  |
| \|─listFilterDefaultSets | object | 筛选条件设置 |
| \|─listFilterId | integer |  |
| \|─optionEnable | string | 是否启用选项0不启用,1启用 |
| \|─defaultType | string | 默认值类型0条件参数、1自身值、2动态参数 |
| \|─startValue | string | 默认值左区间 |
| \|─startValueSpan | string |  |
| \|─endValue | string | 默认值有区间 |
| \|─dateMenuGroup | array | 启用按月拆分平铺的拆分层级 |
| \|─ | object |  |
| \|─filterId | integer |  |
| \|─name | string |  |
| \|─minNum | number |  |
| \|─maxNum | number |  |
| \|─showOrder | integer |  |
| \|─scope | object |  |
| \|─key | object |  |
| \|─dateScope | string | 日期选项配置 |
| \|─isChecked | string | 按月拆分平铺的拆分层级是否选中0：未选中1：选中 |
| \|─id | integer |  |
| \|─createTime | string |  |
| \|─updateTime | string |  |
| \|─creator | integer |  |
| \|─tenantKey | string |  |
| \|─deleteType | integer |  |
| \|─listFilterSets | array | 选项配置集合只有数字类型字段才有 |
| \|─ | object |  |
| \|─filterId | integer |  |
| \|─name | string |  |
| \|─minNum | number |  |
| \|─maxNum | number |  |
| \|─showOrder | integer |  |
| \|─scope | object |  |
| \|─key | object |  |
| \|─dateScope | string | 日期选项配置 |
| \|─isChecked | string | 按月拆分平铺的拆分层级是否选中0：未选中1：选中 |
| \|─id | integer |  |
| \|─createTime | string |  |
| \|─updateTime | string |  |
| \|─creator | integer |  |
| \|─tenantKey | string |  |
| \|─deleteType | integer |  |
| \|─isOptionTile | boolean | 是否选项平铺,listFilterEntity的这个属性已作废 |
| \|─multiSelect | boolean | 是否多选（仅用于分类选项） |
| \|─listGroupSets | array | 分类选项,目前常用搜索均为固定条件 |
| \|─ | object |  |
| \|─id | integer |  |
| \|─groupId | integer | groupId/filterId |
| \|─setName | string | 名称 |
| \|─showOrder | integer | 显示顺序 |
| \|─optionId | integer | 选项id |
| \|─optionName | string | 选项文本 |
| \|─isShow | boolean | 是否显示 |
| \|─isChecked | boolean | 是否默认选中 |
| \|─count | integer | 数据量 |
| \|─conditionData | string | 固定条件 |
| \|─fieldInfo | object |  |
| \|─key | object |  |
| \|─showDateStyle | string |  |
| \|─isDateMenu | string | 按月拆分平铺0：关闭1：开启 |
| \|─isCurrentMax | string | 当前日期之后的月份不显示0：关闭1：开启 |
| \|─tileOptionAllConfig | object | “全部”选项配置 |
| \|─isChecked | boolean | 是否选中 |
| \|─isShow | boolean | 是否显示 |
| \|─showOrder | integer | 排序 |
| \|─tileOptionNoGroupConfig | object | “未分组”选项配置 |
| \|─isChecked | boolean | 是否选中 |
| \|─isShow | boolean | 是否显示 |
| \|─showOrder | integer | 排序 |
| \|─fieldName | string | fieldName，方便前端使用 |
| \|─tabStyle | string |  |
| \|─tileOptionAllConfig | object | “全部”选项配置 |
| \|─isChecked | boolean | 是否选中 |
| \|─isShow | boolean | 是否显示 |
| \|─showOrder | integer | 排序 |
| \|─tileOptionNoGroupConfig | object | “未分组”选项配置 |
| \|─isChecked | boolean | 是否选中 |
| \|─isShow | boolean | 是否显示 |
| \|─showOrder | integer | 排序 |
| \|─otherProperties | string | 字段配置 |

**Response Demo:**

```json
{
  "code": 0,
  "msg": "",
  "status": false,
  "data": [
    {
      "id": 0,
      "listId": 0,
      "groupField": 0,
      "fieldId": 0,
      "showOrder": 0,
      "fieldInfo": {
        "": {}
      },
      "showPosition": "",
      "defaultValue": "",
      "multiSelect": false,
      "componentKey": "",
      "showName": "",
      "listFilterDefaultSets": {
        "listFilterId": 0,
        "optionEnable": "",
        "defaultType": "",
        "startValue": "",
        "startValueSpan": "",
        "endValue": "",
        "dateMenuGroup": [
          {
            "filterId": 0,
            "name": "",
            "minNum": 0.0,
            "maxNum": 0.0,
            "showOrder": 0,
            "scope": {
              "": {}
            },
            "dateScope": "",
            "isChecked": "",
            "id": 0,
            "createTime": "",
            "updateTime": "",
            "creator": 0,
            "tenantKey": "",
            "deleteType": 0
          }
        ],
        "listFilterSets": [
          {
            "filterId": 0,
            "name": "",
            "minNum": 0.0,
            "maxNum": 0.0,
            "showOrder": 0,
            "scope": {
              "": {}
            },
            "dateScope": "",
            "isChecked": "",
            "id": 0,
            "createTime": "",
            "updateTime": "",
            "creator": 0,
            "tenantKey": "",
            "deleteType": 0
          }
        ],
        "isOptionTile": false,
        "multiSelect": false,
        "listGroupSets": [
          {
            "id": 0,
            "groupId": 0,
            "setName": "",
            "showOrder": 0,
            "optionId": 0,
            "optionName": "",
            "isShow": false,
            "isChecked": false,
            "count": 0,
            "conditionData": ""
          }
        ],
        "fieldInfo": {
          "": {}
        },
        "showDateStyle": "",
        "isDateMenu": "",
        "isCurrentMax": "",
        "tileOptionAllConfig": {
          "isChecked": false,
          "isShow": false,
          "showOrder": 0
        },
        "tileOptionNoGroupConfig": {
          "isChecked": false,
          "isShow": false,
          "showOrder": 0
        }
      },
      "fieldName": "",
      "tabStyle": "",
      "tileOptionAllConfig": {
        "isChecked": false,
        "isShow": false,
        "showOrder": 0
      },
      "tileOptionNoGroupConfig": {
        "isChecked": false,
        "isShow": false,
        "showOrder": 0
      },
      "otherProperties": ""
    }
  ]
}
```
