初始化项目

This commit is contained in:
augushong
2021-03-23 18:14:33 +08:00
parent 1f92ae2ce3
commit c76cfa3ae1
273 changed files with 26485 additions and 0 deletions

24
app/model/PostTag.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace app\model;
use think\Model;
/**
* @mixin think\Model
*/
class PostTag extends Model
{
//
public function tag()
{
return $this->belongsTo(Tag::class,'tag_id');
}
public function post()
{
return $this->belongsTo(Post::class, 'post_id');
}
}