'integer', 'group_id' => 'integer', 'status' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; /** * 通过中间表关联API * @return \Hyperf\Database\Model\Relations\BelongsToMany */ public function apis() : \Hyperf\Database\Model\Relations\BelongsToMany { return $this->belongsToMany(SystemApi::class, 'system_app_api', 'app_id', 'api_id'); } /** * 关联APP分组 * @return \Hyperf\Database\Model\Relations\HasOne */ public function appGroup() : \Hyperf\Database\Model\Relations\HasOne { return $this->hasOne(SystemAppGroup::class, 'id', 'group_id'); } }