From 898043fc97d2ab8b793fd317a049b874ed207c6d Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Wed, 10 Dec 2025 20:12:31 +0800
Subject: [PATCH] 商户添加分类

---
 admin/app/common/model/release/Tag.php |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/admin/app/common/model/release/Tag.php b/admin/app/common/model/release/Tag.php
new file mode 100644
index 0000000..c3f5a65
--- /dev/null
+++ b/admin/app/common/model/release/Tag.php
@@ -0,0 +1,35 @@
+<?php
+
+namespace app\common\model\plus\release;
+
+use app\common\model\BaseModel;
+
+/**
+ * 项目标签模型
+ */
+class Tag extends BaseModel
+{
+    protected $name = 'release_tag';
+    protected $pk = 'tag_id';
+
+
+
+    /**
+     * 获取详情
+     */
+    public static function detail($tag_id)
+    {
+        return (new static())->find($tag_id);
+    }
+
+    /**
+     * 获取列表记录
+     */
+    public static function getAll()
+    {
+        return (new static())->where('is_delete', '=', 0)
+            ->field('tag_id,name')
+            ->order(['sort' => 'asc', 'create_time' => 'asc'])
+            ->select();
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.2