소스 검색

消息状态

wzq 5 년 전
부모
커밋
fe913a811c
2개의 변경된 파일33개의 추가작업 그리고 0개의 파일을 삭제
  1. 30 0
      database/migrations/2019_06_12_024409_modify_status_to_table_message_rule.php
  2. 3 0
      routes/api.php

+ 30 - 0
database/migrations/2019_06_12_024409_modify_status_to_table_message_rule.php

@@ -0,0 +1,30 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class ModifyStatusToTableMessageRule extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        DB::statement("ALTER TABLE message_rule CHANGE  COLUMN `status` `message_status` TINYINT (4) NOT NULL DEFAULT 0 COMMENT '消息状态:0:未发送,1发送中,2已发送未隐藏,3已发送并隐藏'");
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('table_message_rule', function (Blueprint $table) {
+            //
+        });
+    }
+}

+ 3 - 0
routes/api.php

@@ -56,6 +56,9 @@ $api->version('v1', [
         //新增城市
         //新增城市
         $api->post('/cityManagement/create', 'ConfigCityManagementController@create');
         $api->post('/cityManagement/create', 'ConfigCityManagementController@create');
 
 
+        //消息规则列表
+        $api->get('message', 'MessageRuleController@index');
+
     });
     });
     //配置文件
     //配置文件
     $api->get('/config', 'ConfigController@index');
     $api->get('/config', 'ConfigController@index');