-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d76f595
commit 6a07f4d
Showing
3 changed files
with
106 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Hyperf\Database\Seeders\Seeder; | ||
|
||
class TopicTagSeeder extends Seeder | ||
{ | ||
/** | ||
* Run the database seeds. | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
\Hyperf\DbConnection\Db::table('topic_tag')->insert([ | ||
'name' => '默认板块', | ||
'color' => '#000000', | ||
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-message" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path> | ||
<path d="M4 21v-13a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-9l-4 4"></path> | ||
<line x1="8" y1="9" x2="16" y2="9"></line> | ||
<line x1="8" y1="13" x2="14" y2="13"></line> | ||
</svg>', | ||
'description' => '默认板块描述', | ||
'type' => null, | ||
'created_at' => date("Y-m-d H:i:s"), | ||
'updated_at' => date("Y-m-d H:i:s"), | ||
'font_color' => '#FFFFFF' | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Hyperf\Database\Seeders\Seeder; | ||
|
||
class UserClassSeeder extends Seeder | ||
{ | ||
/** | ||
* Run the database seeds. | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
// | ||
\Hyperf\DbConnection\Db::table('user_class')->insert([ | ||
'name' => '默认用户组', | ||
'color' => '#206bc4', | ||
'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-users" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path> | ||
<circle cx="9" cy="7" r="4"></circle> | ||
<path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"></path> | ||
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path> | ||
<path d="M21 21v-2a4 4 0 0 0 -3 -3.85"></path> | ||
</svg>', | ||
'quanxian' => '["comment_caina","comment_create","comment_edit","comment_remove","report_comment","report_topic","topic_create","topic_delete","topic_edit","topic_tag_create"]', | ||
'permission-value' => '1', | ||
'created_at' => date("Y-m-d H:i:s"), | ||
'updated_at' => date("Y-m-d H:i:s") | ||
]); | ||
} | ||
} |