255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'ID' => 'ID', 'dep_id' => '企业微信组织架构的部门ID', 'dep_name' => '企业微信组织架构的部门名称', 'parentid' => '父亲部门id。根部门为1', ]; } public function load($item, $formName = null) { $this->dep_id = isset($item['id']) ? $item['id'] : 1; $this->dep_name = isset($item['name']) ? $item['name'] : ''; $this->parentid = isset($item['parentid']) ? $item['parentid'] : 1; return true; } }