# R2-03 — spec_parser.go: 属性访问器 ## 缺失方法 `MIoTSpecProperty` 缺少 `writable / readable / notifiable` 三个布尔访问器。 Python 中通过 `access` 属性 setter 自动设置: ```python @access.setter def access(self, value: list) -> None: self._writable = 'write' in value self._readable = 'read' in value self._notifiable = 'notify' in value ``` ## 目标文件 `D:\miot\go-miot\spec_parser.go` 添加: ```go func (p *MIoTSpecProperty) Writable() bool { for _, a := range p.Access { if a == "write" { return true } } return false } func (p *MIoTSpecProperty) Readable() bool { ... } func (p *MIoTSpecProperty) Notifiable() bool { ... } ```