Browse Source

Add /merchant/<merchantId>/posters Api

xuchaolang 6 years ago
parent
commit
75ea983e5c
2 changed files with 21 additions and 1 deletions
  1. 1 1
      db/config/poster.md
  2. 20 0
      tob/tobApi.md

+ 1 - 1
db/config/poster.md

@@ -8,7 +8,7 @@
 | merchant_id | int | no | 0 | 渠道id | |
 | pid | int | no | 0 | 产品id | |
 | type | int | no | 0 | 产品类型 | |
-| img | string | no | | 产品id | |
+| img | string | no | | 图片id | |
 | sort | string | no | | 顺序号 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | timestamp | no | now | 创建时间 | |

+ 20 - 0
tob/tobApi.md

@@ -558,4 +558,24 @@ GET
 }
 ```
 
+### 修改某渠道的海报配置
+```
+/merchant/<merchantId>/posters
+PUT
+{
+  'data':[
+      {
+        'pid':'xxxx',
+        'img':'xxxx',
+        'sort':3,
+      }
+  ]
+}
+返回
+{
+    'code':200
+    ..
+}
+```
+
 >请求参数(所有请求参数皆非必需)