ソースを参照

模型丢失,填补

rkljw 8 ヶ月 前
コミット
ffc2be0b36

+ 1 - 1
.env

@@ -1,4 +1,4 @@
-APP_NAME=news_producer
+APP_NAME=public_producer
 APP_ENV=dev
 
 DB_DRIVER=mysql

+ 27 - 0
app/Model/Website.php

@@ -0,0 +1,27 @@
+<?php
+
+declare(strict_types=1);
+
+namespace App\Model;
+
+use Hyperf\DbConnection\Model\Model;
+
+/**
+ */
+class Website extends Model
+{
+    /**
+     * The table associated with the model.
+     */
+    protected ?string $table = 'website';
+
+    /**
+     * The attributes that are mass assignable.
+     */
+    protected array $fillable = [];
+
+    /**
+     * The attributes that should be cast to native types.
+     */
+    protected array $casts = [];
+}

+ 27 - 0
app/Model/WebsiteColumn.php

@@ -0,0 +1,27 @@
+<?php
+
+declare(strict_types=1);
+
+namespace App\Model;
+
+use Hyperf\DbConnection\Model\Model;
+
+/**
+ */
+class WebsiteColumn extends Model
+{
+    /**
+     * The table associated with the model.
+     */
+    protected ?string $table = 'website_column';
+
+    /**
+     * The attributes that are mass assignable.
+     */
+    protected array $fillable = [];
+
+    /**
+     * The attributes that should be cast to native types.
+     */
+    protected array $casts = [];
+}

+ 27 - 0
app/Model/WebsiteRole.php

@@ -0,0 +1,27 @@
+<?php
+
+declare(strict_types=1);
+
+namespace App\Model;
+
+use Hyperf\DbConnection\Model\Model;
+
+/**
+ */
+class WebsiteRole extends Model
+{
+    /**
+     * The table associated with the model.
+     */
+    protected ?string $table = 'website_role';
+
+    /**
+     * The attributes that are mass assignable.
+     */
+    protected array $fillable = [];
+
+    /**
+     * The attributes that should be cast to native types.
+     */
+    protected array $casts = [];
+}

+ 27 - 0
app/Model/WebsiteRoleUser.php

@@ -0,0 +1,27 @@
+<?php
+
+declare(strict_types=1);
+
+namespace App\Model;
+
+use Hyperf\DbConnection\Model\Model;
+
+/**
+ */
+class WebsiteRoleUser extends Model
+{
+    /**
+     * The table associated with the model.
+     */
+    protected ?string $table = 'website_role_user';
+
+    /**
+     * The attributes that are mass assignable.
+     */
+    protected array $fillable = [];
+
+    /**
+     * The attributes that should be cast to native types.
+     */
+    protected array $casts = [];
+}

+ 1 - 1
config/autoload/server.php

@@ -20,7 +20,7 @@ return [
             'name' => 'jsonrpc-http',
             'type' => Server::SERVER_HTTP,
             'host' => '0.0.0.0',
-            'port' => 9505,
+            'port' => 9502,
             'sock_type' => SWOOLE_SOCK_TCP,
             'callbacks' => [
                 Event::ON_REQUEST => [Hyperf\JsonRpc\HttpServer::class, 'onRequest'],

ファイルの差分が大きいため隠しています
+ 0 - 0
runtime/container/classes.cache


ファイルの差分が大きいため隠しています
+ 0 - 0
runtime/container/scan.cache


+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-395
+1238

+ 14 - 0
runtime/logs/hyperf.log

@@ -3758,3 +3758,17 @@
 [2024-07-22T07:19:25.414152+00:00] sql.INFO: [645.16] select `website`.*, `website_column`.`column_name`, `district`.`name` from `website` left join `website_column` on `website`.`website_column_id` = `website_column`.`id` left join `district` on `district`.`id` = `website`.`city_id` where (`website`.`website_name` like '%%') limit 10 offset 0 [] []
 [2024-07-22T07:19:25.480221+00:00] sql.INFO: [13.6] select count(*) as aggregate from `website` where (`website`.`website_name` like '%%') [] []
 >>>>>>> 734053e (public_commit)
+[2024-07-26T08:24:04.128501+00:00] sql.INFO: [136.44] select `link`.*, `website`.`website_name` from `link` left join `website` on `website`.`id` = `link`.`website_id` where (`link`.`title` like '%%') order by `sort` asc limit 10 offset 0 [] []
+[2024-07-26T08:24:04.167354+00:00] sql.INFO: [17.3] select count(*) as aggregate from `link` where (`link`.`title` like '%%') [] []
+[2024-07-26T08:24:13.283757+00:00] sql.INFO: [4.44] select `link`.*, `website`.`website_name` from `link` left join `website` on `website`.`id` = `link`.`website_id` where (`link`.`title` like '%%') order by `sort` asc limit 10 offset 0 [] []
+[2024-07-26T08:24:13.299781+00:00] sql.INFO: [4.55] select count(*) as aggregate from `link` where (`link`.`title` like '%%') [] []
+[2024-07-26T08:25:29.558415+00:00] sql.INFO: [63.83] select `link`.*, `website`.`website_name` from `link` left join `website` on `website`.`id` = `link`.`website_id` where (`link`.`title` like '%%') order by `sort` asc limit 10 offset 0 [] []
+[2024-07-26T08:25:29.585495+00:00] sql.INFO: [13.97] select count(*) as aggregate from `link` where (`link`.`title` like '%%') [] []
+[2024-07-26T08:27:46.293017+00:00] sql.INFO: [17.24] select `link`.*, `website`.`website_name` from `link` left join `website` on `website`.`id` = `link`.`website_id` where (`link`.`title` like '%%') order by `sort` asc limit 10 offset 0 [] []
+[2024-07-26T08:27:46.308687+00:00] sql.INFO: [2.52] select count(*) as aggregate from `link` where (`link`.`title` like '%%') [] []
+[2024-07-26T08:30:23.919197+00:00] sql.INFO: [74.97] select `link`.*, `website`.`website_name` from `link` left join `website` on `website`.`id` = `link`.`website_id` where (`link`.`title` like '%%') order by `sort` asc limit 10 offset 0 [] []
+[2024-07-26T08:30:23.930763+00:00] sql.INFO: [5.62] select count(*) as aggregate from `link` where (`link`.`title` like '%%') [] []
+[2024-07-26T09:05:37.925873+00:00] sql.INFO: [423.38] select `website`.*, `website_column`.`column_name`, `district`.`name` from `website` left join `website_column` on `website`.`website_column_id` = `website_column`.`id` left join `district` on `district`.`id` = `website`.`city_id` where (`website`.`website_name` like '%%') limit 10 offset 0 [] []
+[2024-07-26T09:05:38.080181+00:00] sql.INFO: [126.57] select count(*) as aggregate from `website` where (`website`.`website_name` like '%%') [] []
+[2024-07-26T09:05:39.979191+00:00] sql.INFO: [5.01] select `website_column`.*, `wc`.`column_name` as `parent_column_name` from `website_column` left join `website_column` as `wc` on `website_column`.`pid` = `wc`.`id` where (`website_column`.`column_name` like '%%') limit 10 offset 0 [] []
+[2024-07-26T09:05:40.024662+00:00] sql.INFO: [2.1] select count(*) as aggregate from `website_column` where (`website_column`.`column_name` like '%%') [] []

+ 4 - 0
vendor/composer/autoload_classmap.php

@@ -26,6 +26,10 @@ return array(
     'App\\Model\\Category' => $baseDir . '/app/Model/Category.php',
     'App\\Model\\Link' => $baseDir . '/app/Model/Link.php',
     'App\\Model\\Model' => $baseDir . '/app/Model/Model.php',
+    'App\\Model\\Website' => $baseDir . '/app/Model/Website.php',
+    'App\\Model\\WebsiteColumn' => $baseDir . '/app/Model/WebsiteColumn.php',
+    'App\\Model\\WebsiteRole' => $baseDir . '/app/Model/WebsiteRole.php',
+    'App\\Model\\WebsiteRoleUser' => $baseDir . '/app/Model/WebsiteRoleUser.php',
     'App\\Tools\\Result' => $baseDir . '/app/Tools/Result.php',
     'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
     'CURLStringFile' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',

+ 4 - 0
vendor/composer/autoload_static.php

@@ -710,6 +710,10 @@ class ComposerStaticInit88f2a4d4a4e81dc7d415bcdf39930654
         'App\\Model\\Category' => __DIR__ . '/../..' . '/app/Model/Category.php',
         'App\\Model\\Link' => __DIR__ . '/../..' . '/app/Model/Link.php',
         'App\\Model\\Model' => __DIR__ . '/../..' . '/app/Model/Model.php',
+        'App\\Model\\Website' => __DIR__ . '/../..' . '/app/Model/Website.php',
+        'App\\Model\\WebsiteColumn' => __DIR__ . '/../..' . '/app/Model/WebsiteColumn.php',
+        'App\\Model\\WebsiteRole' => __DIR__ . '/../..' . '/app/Model/WebsiteRole.php',
+        'App\\Model\\WebsiteRoleUser' => __DIR__ . '/../..' . '/app/Model/WebsiteRoleUser.php',
         'App\\Tools\\Result' => __DIR__ . '/../..' . '/app/Tools/Result.php',
         'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
         'CURLStringFile' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません