Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
更新:默认模板优化
  • Loading branch information
zhuchunshu committed Apr 6, 2022
1 parent 21b4461 commit 33f79fc
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Plugins/Core/setting.php
@@ -1,18 +1,18 @@
<?php
Itf_Setting()->add(200,
"主题 - 全局","theme-common","App::setting.theme.common");
"主题 - 全局","theme-common","setting.theme.common");

Itf_Setting()->add(201,
"主题 - 页头","theme-header","App::setting.theme.header");
"主题 - 页头","theme-header","setting.theme.header");
Itf()->add("core_menu",1,[
"name" => "首页",
"url" => "/"
]);

Itf_Setting()->add(203,
"登陆注册","sign","App::setting.user.sign");
"登陆注册","sign","setting.user.sign");
Itf_Setting()->add(204,
"用户设置","user-setting","App::setting.user.core");
"用户设置","user-setting","setting.user.core");

Itf()->add("show_right",1,"App::topic.right");

Expand Down
37 changes: 37 additions & 0 deletions app/Plugins/User/src/Models/UserUsernameChangerLog.php
@@ -0,0 +1,37 @@
<?php

declare (strict_types=1);
namespace App\Plugins\User\src\Models;

use App\Model\Model;
use Carbon\Carbon;

/**
* @property int $id
* @property string $user_id
* @property string $old
* @property string $new
* @property Carbon $created_at
* @property Carbon $updated_at
*/
class UserUsernameChangerLog extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'user_username_changer_log';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['id','user_id','old','new','created_at','updated_at'];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = ['id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
@@ -0,0 +1,30 @@
<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateUserUsernameChangeLog extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('user_username_changer_log', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('user_id');
$table->string('old');
$table->string('new');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('user_username_changer_log');
}
}
Expand Up @@ -44,4 +44,5 @@
<small>头像缓存时间/秒,减少查询,大幅度优化速度 默认10分钟</small>
</div>


</div>
File renamed without changes.

0 comments on commit 33f79fc

Please sign in to comment.