---
name: "SmartGroupModel.getDpState"
mode: "api"
versionRequirements:
  - { name: "@ray-js/panel-sdk", version: "1.5.0" }
---

## SmartGroupModel.getDpState

> [VERSION] @ray-js/panel-sdk >= 1.5.0

### 描述

获取智能群组功能点状态

### 参数

无


### 返回值

类型: `DpState`

全量功能点状态对象，key 为功能点 code，value 类型由 Schema 推导

**`type` DpState**

```typescript
export type DpState = Record<string, DpValue>;
```

### 引用对象

##### `type` DpState

功能点状态对象，key 为功能点 code，value 为功能点值

```typescript
export type DpState = Record<string, DpValue>;
```

##### `type` DpValue

功能点值类型，可能为 boolean、number、string

```typescript
export type DpValue = boolean | number | string;
```


### 示例代码

#### 示例

```typescript
const dpState = group.getDpState();
console.log(dpState.switch_led);  // true
```
