Explorar o código

增加新媒体账户模型

shawdonH hai 2 días
pai
achega
490280f731
Modificáronse 1 ficheiros con 19 adicións e 0 borrados
  1. 19 0
      app/Models/NewMediaAccount.php

+ 19 - 0
app/Models/NewMediaAccount.php

@@ -0,0 +1,19 @@
+<?php
+
+namespace App\Models;
+
+use Illuminate\Database\Eloquent\Model;
+
+class NewMediaAccount extends Model
+{
+    //
+    const PLATFORM_DOUYIN = 1;
+    const PLATFORM_WECHAT_VIDEO = 2;
+
+    const PLATFORM_MAP = [
+        self::PLATFORM_DOUYIN => '抖音',
+        self::PLATFORM_WECHAT_VIDEO => '微信视频号',
+    ];
+
+    protected $table = 'new_media_account';
+}