dyjh il y a 6 ans
Parent
commit
70f18ffe8f

+ 33 - 0
database/migrations/2019_03_28_161831_add_column_is_show_ma_price_to_album_agent.php

@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AddColumnIsShowMaPriceToAlbumAgent extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('album_agent', function (Blueprint $table) {
+            //
+            $table->unsignedInteger('is_show_ma_price')->nullable()->default(0)->comment('0 不显示 1 显示');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('album_agent', function (Blueprint $table) {
+            //
+        });
+    }
+}

+ 61 - 0
public/apidoc/api_data.js

@@ -858,6 +858,67 @@ define({ "api": [
     "groupTitle": "Album",
     "groupTitle": "Album",
     "name": "GetApiAlbumStyle"
     "name": "GetApiAlbumStyle"
   },
   },
+  {
+    "type": "post",
+    "url": "/api/album/agent_price_set",
+    "title": "厂家价格设置(agent_price_set)",
+    "description": "<p>厂家价格设置(agent_price_set)</p>",
+    "group": "Album",
+    "permission": [
+      {
+        "name": "AUTH"
+      }
+    ],
+    "version": "0.1.0",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "int",
+            "optional": true,
+            "field": "store_id",
+            "description": "<p>商户id</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "int",
+            "optional": true,
+            "field": "point",
+            "description": "<p>价格设置比例 为0不设置</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "int",
+            "optional": true,
+            "field": "is_show_ma_price",
+            "description": "<p>厂家价格是否可见 0 不可见 1 可见</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "examples": [
+        {
+          "title": "Success-Response:",
+          "content": "HTTP/1.1 200 OK\n{\n    \"status\": true,\n    \"status_code\": 0,\n    \"message\": \"success\",\n    \"data\":[]\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "error": {
+      "examples": [
+        {
+          "title": "Error-Response:",
+          "content": "HTTP/1.1 400 Bad Request\n{\n    \"state\": false,\n    \"code\": 1000,\n    \"message\": \"传入参数不正确\",\n    \"data\": null or []\n}\n可能出现的错误代码:\n   1000    CLIENT_WRONG_PARAMS             传入参数不正确",
+          "type": "json"
+        }
+      ]
+    },
+    "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
+    "groupTitle": "Album",
+    "name": "PostApiAlbumAgent_price_set"
+  },
   {
   {
     "type": "post",
     "type": "post",
     "url": "/api/album/customer-goods-detail",
     "url": "/api/album/customer-goods-detail",

+ 61 - 0
public/apidoc/api_data.json

@@ -858,6 +858,67 @@
     "groupTitle": "Album",
     "groupTitle": "Album",
     "name": "GetApiAlbumStyle"
     "name": "GetApiAlbumStyle"
   },
   },
+  {
+    "type": "post",
+    "url": "/api/album/agent_price_set",
+    "title": "厂家价格设置(agent_price_set)",
+    "description": "<p>厂家价格设置(agent_price_set)</p>",
+    "group": "Album",
+    "permission": [
+      {
+        "name": "AUTH"
+      }
+    ],
+    "version": "0.1.0",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "int",
+            "optional": true,
+            "field": "store_id",
+            "description": "<p>商户id</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "int",
+            "optional": true,
+            "field": "point",
+            "description": "<p>价格设置比例 为0不设置</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "int",
+            "optional": true,
+            "field": "is_show_ma_price",
+            "description": "<p>厂家价格是否可见 0 不可见 1 可见</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "examples": [
+        {
+          "title": "Success-Response:",
+          "content": "HTTP/1.1 200 OK\n{\n    \"status\": true,\n    \"status_code\": 0,\n    \"message\": \"success\",\n    \"data\":[]\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "error": {
+      "examples": [
+        {
+          "title": "Error-Response:",
+          "content": "HTTP/1.1 400 Bad Request\n{\n    \"state\": false,\n    \"code\": 1000,\n    \"message\": \"传入参数不正确\",\n    \"data\": null or []\n}\n可能出现的错误代码:\n   1000    CLIENT_WRONG_PARAMS             传入参数不正确",
+          "type": "json"
+        }
+      ]
+    },
+    "filename": "app/Http/Controllers/Api/V1/AlbumController.php",
+    "groupTitle": "Album",
+    "name": "PostApiAlbumAgent_price_set"
+  },
   {
   {
     "type": "post",
     "type": "post",
     "url": "/api/album/customer-goods-detail",
     "url": "/api/album/customer-goods-detail",

+ 1 - 1
public/apidoc/api_project.js

@@ -9,7 +9,7 @@ define({
   "apidoc": "0.3.0",
   "apidoc": "0.3.0",
   "generator": {
   "generator": {
     "name": "apidoc",
     "name": "apidoc",
-    "time": "2019-03-07T02:27:39.345Z",
+    "time": "2019-03-28T09:03:36.904Z",
     "url": "http://apidocjs.com",
     "url": "http://apidocjs.com",
     "version": "0.17.6"
     "version": "0.17.6"
   }
   }

+ 1 - 1
public/apidoc/api_project.json

@@ -9,7 +9,7 @@
   "apidoc": "0.3.0",
   "apidoc": "0.3.0",
   "generator": {
   "generator": {
     "name": "apidoc",
     "name": "apidoc",
-    "time": "2019-03-07T02:27:39.345Z",
+    "time": "2019-03-28T09:03:36.904Z",
     "url": "http://apidocjs.com",
     "url": "http://apidocjs.com",
     "version": "0.17.6"
     "version": "0.17.6"
   }
   }