From 30563323a53b0d0260c97d08a9e8bd4cc8227a95 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 13 Dec 2025 18:03:52 +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