Sfoglia il codice sorgente

last modified 12.6

huodongdong 7 anni fa
parent
commit
ef101b36d3

+ 7 - 7
api/cms/course/course_list.md

@@ -9,22 +9,23 @@
 |---- |:---|:---|:----:|
 | code | string | yes | 编码 |
 | name | string | yes | 名称 |
+| status | string | yes | NORMAL, DEL |
 | pageNo | int | yes | 页码 |
 | pageSize | int | yes | 页大小 |
 
 ##### 返回字段说明
 | name | type | desc |
 |------|:-----|:----:|
-| id | bigint | 课程id |
+| id | string | 课程id |
 | code | string | 编码 |
 | name | string | 名称 |
 | title | string | 标题 |
 | digest| string | 描述 |
 | type | string | 类型 |
-| imgUrls | array | 组图数组 |
-| cpId | int | 内容提供商id |
+| imgList | array | 组图数组 |
+| cpId | string| 内容提供商id |
 | cpName| string | 内容提供商名字 |
-| state| int| 状态 |
+| status| string| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
@@ -47,14 +48,13 @@
                 "digest": null,
                 "detail": null,
                 "keyword": null,
-                "cvImgIds": null,
-                "bgImgIds": null,
+                "cvImgList": [],
+                "bgImgList": [],
                 "cpId": null,
                 "cpName": "",
                 "status": "NORMAL",
                 "gmtCreated": null,
                 "gmtModified": null,
-                "subItemList": null
             }
         ],
         "start": 0,

+ 5 - 5
api/cms/course/course_one.md

@@ -12,16 +12,16 @@
 ##### 返回字段说明
 | name | type | desc |
 |------|:-----|:----:|
-| id | int | 课id |
+| id | string | 课id |
 | code | string | 编码 |
 | name | string | 名称 |
 | digest| string | 描述 |
 | tags | array | 标签名数组 |
 | subItemList | array | 课数组 |
 | supportList | array | 周边数组 |
-| cpId| int | 内容提供商id |
+| cpId| string | 内容提供商id |
 | cpName| string | 内容提供商名字 |
-| state| int| 状态 |
+| status| string| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
@@ -39,8 +39,8 @@
         "digest": null,
         "detail": null,
         "keyword": null,
-        "cvImgIds": null,
-        "bgImgIds": null,
+        "cvImgList": null,
+        "bgImgList": null,
         "status": null,
         "gmtCreated": null,
         "gmtModified": null,

+ 5 - 5
api/cms/course/course_save.md

@@ -11,15 +11,15 @@
 ##### 参数说明
 | name | type | null| desc |
 |------|:-----|:----|:----:|
-| id | int | yes | 课id |
+| id | string | yes | 课id |
 | code | string | no | 课编码 |
 | name | string | no | 课名称 |
 | digest| string | yes | 课描述 |
 | tags | array | yes | 标签名数组 |
-| subItemList | array | yes | 课数组, 不传不更新, 传[]则更新为空 |
-| supportList | array | yes | 周边数组, 同课数组 |
-| cpId| int | yes | 内容提供商id |
-| state| int| yes | 状态|
+| subItemList | array | yes | 课数组, 不传不更新, 传[]则更新为空, {"id":"", "type":"LESSON"}|
+| supportList | array | yes | 周边id数组, 同课数组 |
+| cpId| string | yes | 内容提供商id |
+| status| string | yes | 状态|
 
 ##### 结果示例
 ```

+ 33 - 43
api/cms/item/item_list.md

@@ -9,67 +9,57 @@
 |---- |:---|:---|:----:|
 | code | string | yes | 编码 |
 | name | string | yes | 名称 |
-| type | int | yes | 商品类型 |
-| state | int | yes | 状态 |
-| sort | string | yes | 排序字段 |
-| by | int | yes | 1: ASC, -1: DESC |
+| type | string | yes | 商品类型 [COURSE, SUPPORT]|
+| status | int | yes | 状态 |
+| merchantId | string
 | pageNo | int | yes | 页码 |
 | pageSize | int | yes | 页大小 |
 
 ##### 返回字段说明
 | name | type | desc |
 |------|:-----|:----:|
-| id | int | id |
+| id | string | id |
 | code | string | 编码 |
 | name | string | 名称 |
-| type | int | 类型 |
+| type | string | 类型 |
 | tags | array | 标签名数组 |
 | playUrl| string | 播放地址 |
-| cpId| int | 内容提供商id |
+| cpId| string | 内容提供商id |
 | cpName| string | 内容提供商名字 |
-| merchantId | int | 渠道商id |
+| merchantId | string | 渠道商id |
 | merchantName | string | 渠道名 |
-| state| int| 状态 |
+| status| string| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
 ##### 结果示例
 ```
 {
-  "code": "0000",
-  "message": '',
-  "data": {
-    "page": {
-      "pageNo": 0,
-      "pageSize": 10,
-      "hasNext": 1,
-      "hasPrev": 0,
-      "totalSize": 100,
-      "totalNo": 10,
-      "start": 20
+    "code": 200,
+    "success": true,
+    "message": null,
+    "data": {
+        "pageNo": 1,
+        "pageSize": 10,
+        "totalSize": 1,
+        "list": [
+            {
+                "id": "525694229fb148afb3c10585964f9583",
+                "subId": null,
+                "code": "K-test-311",
+                "name": "小学310",
+                "type": "COURSE",
+                "merchantId": "87",
+                "sort": 2,
+                "status": "SALE",
+                "gmtCreated": 1512033359000,
+                "gmtModified": 1512033359000,
+                "priceList": null,
+                "tagList": null
+            }
+        ],
+        "start": 0,
+        "totalNo": 1
     }
-    "list": [
-      {
-        "id": 2,
-        "code": "J-001",
-        "name": "第一课",
-        "digest": "简介",
-        "type": 0,
-        "tags": [
-          {12:'a'},
-          {22:'b'},
-          {23:'c'}
-          ],
-        "merchantId": xxx,
-        "merchantName": "xxx",
-        "cost_price": xxx.xx,
-        "sale_price": xxx,xx,
-        "cpName": "鲨鱼公园",
-        "state": 0,
-        "gmtCreated": "创建时间",
-        "gmtModified": "修改时间"
-      },
-      ...
-    ]
 }
 ```

+ 21 - 30
api/cms/item/item_one.md

@@ -1,4 +1,4 @@
-### GET /item
+### GET /item/{code}
 * method: GET
 * version: v1.0
 * describe: 获取单个商品
@@ -12,44 +12,35 @@
 ##### 返回字段说明
 | name | type | desc |
 |------|:-----|:----:|
-| id | int | 课id |
+| id | string| id |
 | code | string | 编码 |
 | name | string | 名称 |
-| digest| string | 描述 |
 | tags | array | 标签名数组 |
-| cpId| int | 内容提供商id |
+| cpId| string | 内容提供商id |
 | cpName| string | 内容提供商名字 |
-| state| int| 状态 |
+| status| string| 状态 |
+| priceList | array | 价格数组 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
 ##### 结果示例
 ```
 {
-  "code": "0000",
-  "message": '',
-  "data": {
-    "id": 2,
-    "code": "C-001",
-    "name": "第一课",
-    "digest": "简介",
-    "tags": [
-      {12:'a'},
-      {22:'b'},
-      {23:'c'}
-      ],
-    "price": [
-      id: {
-        "name": "xxx",
-        "price": xxx.xx,
-        "duration": xxxx
-      },
-      ...
-    ]
-    "cpId": 123,
-    "cpName": "鲨鱼公园",
-    "state": 0,
-    "gmtCreated": "创建时间",
-    "gmtModified": "修改时间"
+    "code": 200,
+    "success": true,
+    "message": null,
+    "data": {
+        "id": 1511947147962852,
+        "code": "C-test-311",
+        "name": "小学310",
+        "type": "COURSE",
+        "merchantId": 85,
+        "sort": 2,
+        "status": "SALE",
+        "gmtCreated": null,
+        "gmtModified": null,
+        "priceList": null,
+        "tagList": null
+    }
 }
 ```

+ 5 - 6
api/cms/item/item_save.md

@@ -6,15 +6,14 @@
 ##### 参数说明
 | name | type | null| desc |
 |------|:-----|:----|:----:|
-| id | int | yes | id |
+| id | string| yes | id |
 | code | string | no | 编码 |
 | name | string | no | 名称 |
-| costPrice | double | yes | 进价 |
-| salePrice | double | yes | 渠道价 |
+| type | string | no | 类型:COURSE, SUPPORT |
 | digest| string | yes | 描述 |
-| tags | array | yes | 标签名数组 |
-| priceArr | array | yes | 价格数组 |
-| state| int| yes | 状态|
+| tagList | array | yes | 标签名数组 |
+| priceList | array | yes | 价格数组 |
+| status| string | yes | |
 
 ##### 结果示例
 ```

+ 3 - 3
api/cms/lesson/lesson_list.md

@@ -15,15 +15,15 @@
 ##### 返回字段说明
 | name | type | desc |
 |------|:-----|:----:|
-| id | int | 课id |
+| id | string| 课id |
 | code | string | 课编码 |
 | name | string | 课名称 |
 | digest| string | 课描述 |
-| state| int| 状态 |
+| status| string| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
-##### 结果示例
+##### 结果示例(不返回课件list)
 ```
 {
     "code": 200,

+ 2 - 2
api/cms/lesson/lesson_one.md

@@ -17,7 +17,7 @@
 | name | string | 课名称 |
 | digest| string | 课描述 |
 | wareList | array | 课件数组 |
-| state| int| 状态 |
+| status| int| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
@@ -44,7 +44,7 @@
                 "digest": null,
                 "type": "SINGLE",
                 "playUrl": null,
-                "imgUrls": [
+                "imgList": [
                   "http://www.xxx.c/img.jpg",
                 ],
                 "sort": null,

+ 2 - 2
api/cms/lesson/lesson_save.md

@@ -11,12 +11,12 @@
 ##### 参数说明
 | name | type | null| desc |
 |------|:-----|:----|:----:|
-| id | int | yes | 课id |
+| id | string| yes | 课id |
 | code | string | no | 课编码 |
 | name | string | no | 课名称 |
 | digest| string | yes | 课描述 |
 | wareList | array | yes | 课件数组, 不传不更新, 传[]则更新为空 |
-| state| string| yes | 状态|
+| status| string| yes | 状态|
 
 ##### 结果示例
 ```

+ 3 - 3
api/cms/combo/combo_list.md

@@ -10,7 +10,7 @@
 | code | string | yes | 编码 |
 | name | string | yes | 名称 |
 | type | int | yes | 商品类型 |
-| state | int | yes | 状态 |
+| status | int | yes | 状态 |
 | sort | string | yes | 排序字段 |
 | by | int | yes | 1: ASC, -1: DESC |
 | pageNo | int | yes | 页码 |
@@ -27,7 +27,7 @@
 | playUrl| string | 播放地址 |
 | merchantId | int | 渠道商id |
 | merchantName | string | 渠道名 |
-| state| int| 状态 |
+| status| int| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
@@ -59,7 +59,7 @@
           {23:'c'}
           ],
         "cpName": "鲨鱼公园",
-        "state": 0,
+        "status": 0,
         "gmtCreated": "创建时间",
         "gmtModified": "修改时间"
       },

+ 2 - 2
api/cms/combo/combo_one.md

@@ -18,7 +18,7 @@
 | digest| string | 描述 |
 | tags | array | 标签名数组 |
 | itemArr | array | 商品数组 |
-| state| int| 状态 |
+| status| int| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
@@ -47,7 +47,7 @@
       },
       ...
     ]
-    "state": 0,
+    "status": 0,
     "gmtCreated": "创建时间",
     "gmtModified": "修改时间"
 }

+ 1 - 1
api/cms/combo/combo_save.md

@@ -14,7 +14,7 @@
 | digest| string | yes | 描述 |
 | tags | array | yes | 标签名数组 |
 | itemArr | array | yes | 商品数组 |
-| state| int| yes | 状态|
+| status| int| yes | 状态|
 
 ##### 结果示例
 ```

+ 1 - 1
api/cms/resource/resource_save.md

@@ -13,7 +13,7 @@
 | rate | int | yes |资源码率 |
 | size | int | yes |资源大小 |
 | path | string | no | 地址 |
-| state| int| yes | 状态|
+| status| int| yes | 状态|
 
 ##### 结果示例
 ```

+ 46 - 38
api/cms/support/support_list.md

@@ -9,60 +9,68 @@
 |---- |:---|:---|:----:|
 | code | string | yes | 编码 |
 | name | string | yes | 名称 |
+| status | string | yes | 状态 |
 | pageNo | int | yes | 页码 |
 | pageSize | int | yes | 页大小 |
 
 ##### 返回字段说明
 | name | type | desc |
 |------|:-----|:----:|
-| id | int | id |
+| id | string | id |
 | code | string | 编码 |
 | name | string | 名称 |
+| title | string | 标题 |
 | digest| string | 描述 |
-| tags | array | 标签名数组 |
-| supportArr | array | 相关 |
-| cpId| int | 内容提供商id |
+| detail | string | 详细描述 |
+| imgList| array | 组图数组 |
+| cpId| string| 内容提供商id |
 | cpName| string | 内容提供商名字 |
-| state| int| 状态 |
+| status| string| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
 ##### 结果示例
 ```
 {
-  "code": 0,
-  "message": '',
-  "data": {
-    "page": {
-      "pageNo": 0,
-      "pageSize": 10,
-      "hasNext": 1,
-      "hasPrev": 0,
-      "totalSize": 100,
-      "totalNo": 10,
-      "start": 20
-    }
-    "list": [
-      {
-        "id": 2,
-        "code": "K-001",
-        "name": "第一课",
-        "digest": "简介",
-        "tags": [
-          {12:'a'},
-          {22:'b'},
-          {23:'c'}
-          ],
-        "supportArr": [
-          ...
+    "code": 200,
+    "success": true,
+    "message": null,
+    "data": {
+        "pageNo": 1,
+        "pageSize": 10,
+        "totalSize": 2,
+        "list": [
+            {
+                "id": 1511837565816595,
+                "code": "S-test-311",
+                "name": "小学311",
+                "title": null,
+                "digest": null,
+                "detail": null,
+                "imgList": [],
+                "cpId": xxx,
+                "cpName": "hello",
+                "status": null,
+                "gmtCreated": null,
+                "gmtModified": null
+            },
+            {
+                "id": 1511835822190182,
+                "code": "S-test-310",
+                "name": "小学310",
+                "title": null,
+                "digest": null,
+                "detail": null,
+                "imgList": [],
+                "cpId": xxx,
+                "cpName": "hello",
+                "status": null,
+                "gmtCreated": null,
+                "gmtModified": null
+            }
         ],
-        "cpId": 123,
-        "cpName": "鲨鱼公园",
-        "state": 0,
-        "gmtCreated": "创建时间",
-        "gmtModified": "修改时间"
-      },
-      ...
-    ]
+        "start": 0,
+        "totalNo": 1
+    }
 }
 ```

+ 46 - 48
api/cms/support/support_one.md

@@ -1,4 +1,4 @@
-### GET /support
+### GET /support/{code}
 * method: GET
 * version: v1.0
 * describe: 获取单个课
@@ -12,62 +12,60 @@
 ##### 返回字段说明
 | name | type | desc |
 |------|:-----|:----:|
-| id | int | id |
+| id | string| id |
 | code | string | 编码 |
 | name | string | 名称 |
 | digest| string | 描述 |
-| tags | array | 标签名数组 |
-| supportArr | array | 相关 |
-| cpId| int | 内容提供商id |
+| supportList | array | 相关 |
+| cpId| string | 内容提供商id |
 | cpName| string | 内容提供商名字 |
-| state| int| 状态 |
+| status| string 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
 ##### 结果示例
 ```
 {
-  "code": "0000",
-  "message": '',
-  "data": {
-    "id": 2,
-    "code": "K-001",
-    "name": "第一课",
-    "digest": "简介",
-    "tags": [
-      {12:'a'},
-      {22:'b'},
-      {23:'c'}
-      ],
-    "supportArr": [
-      {
-        "id": 2,
-        "code": "S-001",
-        "name": "第一课",
-        "digest": "简介",
-        "type": 0,
-        "tags": [
-          {12:'a'},
-          {22:'b'},
-          {23:'c'}
-          ],
-        "playUrl": "xxx",
-        "imgUrls": [
-          {123:"xxx"},
-          {23:"xxx"}
-        ],
-        "cpId": 123,
-        "cpName": "鲨鱼公园",
-        "state": 0,
-        "gmtCreated": "创建时间",
-        "gmtModified": "修改时间"
-      },
-      ...
-    ],
-    "cpId": 123,
-    "cpName": "鲨鱼公园",
-    "state": 0,
-    "gmtCreated": "创建时间",
-    "gmtModified": "修改时间"
+    "code": 200,
+    "success": true,
+    "message": null,
+    "data": {
+        "id": 1511835822190182,
+        "code": "S-test-310",
+        "name": "小学310",
+        "title": null,
+        "digest": null,
+        "detail": null,
+        "imgList": [],
+        "status": null,
+        "gmtCreated": null,
+        "gmtModified": null,
+        "supportList": [
+            {
+                "id": 1511835822190182,
+                "code": "S-test-310",
+                "name": "小学310",
+                "title": null,
+                "digest": null,
+                "detail": null,
+                "imgList": [],
+                "status": null,
+                "gmtCreated": null,
+                "gmtModified": null
+            },
+            {
+                "id": 1511837565816595,
+                "code": "S-test-311",
+                "name": "小学311",
+                "title": null,
+                "digest": null,
+                "detail": null,
+                "imgList": [],
+                "status": null,
+                "gmtCreated": null,
+                "gmtModified": null
+            }
+        ]
+    }
 }
 ```

+ 28 - 8
api/cms/support/support_save.md

@@ -1,24 +1,44 @@
 ### POST /support
 * method: POST
 * version: v1.0
-* describe: 修改周边
+* describe: 创建周边
+
+
+* method: PUT
+* version: v1.0
+* describe: 修改
 
 ##### 参数说明
 | name | type | null| desc |
 |------|:-----|:----|:----:|
-| id | int | yes | id |
+| id | string| yes | id |
 | code | string | no | 编码 |
 | name | string | no | 名称 |
+| title | string | yes | 标题 |
 | digest| string | yes | 描述 |
-| tags | array | yes | 标签名数组 |
-| supportArr | array | 相关 |
-| cpId| int | yes | 内容提供商id |
-| state| int| yes | 状态|
+| detail | string | yes | 详细描述 |
+| imgList | array | yes | 图片数组 |
+| supportList | array | 相关 |
+| cpId| string | yes | 内容提供商id |
+| status| string| yes | 状态|
 
 ##### 结果示例
 ```
 {
-  "code": "0000"
-  "message": "",
+    "code": 200,
+    "success": true,
+    "message": null,
+    "data": {
+        "id": 1511842038785658,
+        "code": "C-test-312",
+        "name": "小学311",
+        "title": null,
+        "digest": null,
+        "detail": null,
+        "imgList": [],
+        "status": null,
+        "gmtCreated": null,
+        "gmtModified": null
+    }
 }
 ```

+ 11 - 11
api/cms/ware/ware_list.md

@@ -9,23 +9,23 @@
 |---- |:---|:---|:----:|
 | code | string | yes | 课件编码 |
 | name | string | yes | 课件名称 |
-| type | int | yes | 课件类型 |
-| pageNo | int | yes | 页码 |
-| pageSize | int | yes | 页大小 |
+| type | string | yes | 课件类型 [SINGLE, MULTI, VIDEO] |
+| pageNo | string | yes | 页码 |
+| pageSize | string | yes | 页大小 |
 
 ##### 返回字段说明
 | name | type | desc |
 |------|:-----|:----:|
-| id | int | 课件id |
+| id | string | 课件id |
 | code | string | 课件编码 |
 | name | string | 课件名称 |
 | digest| string | 课件描述 |
-| type | int | 课件类型 |
+| type | string | 课件类型 |
 | playUrl| string | 播放地址 |
-| imgUrls| array | 组图数组 |
-| cpId| int | 内容提供商id |
+| imgList| array | 组图数组 |
+| cpId| string | 内容提供商id |
 | cpName| string | 内容提供商名字 |
-| status| int| 状态 |
+| status| string| 状态 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 
@@ -47,7 +47,7 @@
                 "digest": null,
                 "type": "SINGLE",
                 "playUrl": null,
-                "imgUrls": [
+                "imgList": [
                   "http://3du3x.90374kd,027shjse2",
                 ],
                 "cpId": 300,
@@ -64,7 +64,7 @@
                 "digest": null,
                 "type": "SINGLE",
                 "playUrl": null,
-                "imgUrls": [
+                "imgList": [
                   "http://3du3x.90374kd,027shjse2",
                 ],
                 "cpId": 300,
@@ -81,7 +81,7 @@
                 "digest": null,
                 "type": "SINGLE",
                 "playUrl": null,
-                "imgUrls": [
+                "imgList": [
                   "http://3du3x.90374kd,027shjse2",
                 ],
                 "cpId": 300,

+ 5 - 5
api/cms/ware/ware_save.md

@@ -11,15 +11,15 @@
 ##### 参数说明
 | name | type | null| desc |
 |------|:-----|:----|:----:|
-| id | int | yes | 课件id |
+| id | string| yes | 课件id |
 | code | string | no | 课件编码 |
 | name | string | no | 课件名称 |
 | digest| string | yes | 课件描述 |
-| type | int | no | 课件类型 |
+| type | string| no | 课件类型 |
 | playUrl| string | yes | 播放地址 |
-| imgIds| array | yes | 组图数组 |
-| cpId| int | yes | 内容提供商id |
-| state| int| yes | 状态|
+| imgList| array | yes | 组图数组 |
+| cpId| string| yes | 内容提供商id |
+| status| string| yes | 状态|
 
 
 ##### 返回值

+ 8 - 8
db/action/lj_event_log.md

@@ -4,13 +4,13 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| user_id | bigint | yes | 0 | 用户id | |
-| merchant_id | bigint | yes | 0 | 渠道商id | |
+| id | string | no | | 主键 | pri |
+| user_id | string | yes | 0 | 用户id | |
+| merchant_id | string | yes | 0 | 渠道商id | |
 | event_type | int | no | | 事件类型 | |
 | tar_name | varchar(512) | yes | null | 目标名称 | |
 | tar_id | varchar(512) | yes | null | 目标id | |
-| value | bigint | no | 0 | 行为值 | |
+| value | string | no | 0 | 行为值 | |
 | platform | smallint | yes | null | | |
 | gmt_created | timestamp | no | now | 创建时间 | |
 | gmt_modified | timestamp | no | gmt_created | 修改时间 | | |
@@ -20,13 +20,13 @@
 ##### create sql
 ```
 CREATE TABLE `lj_event_log` (
-  `id` bigint(20) NOT NULL AUTO_INCREMENT,
-  `user_id` bigint(16) DEFAULT NULL COMMENT '用户id',
-  `merchant_id` bigint(20) DEFAULT NULL COMMENT '渠道商',
+  `id` string(20) NOT NULL AUTO_INCREMENT,
+  `user_id` string(16) DEFAULT NULL COMMENT '用户id',
+  `merchant_id` string(20) DEFAULT NULL COMMENT '渠道商',
   `type` int NOT NULL COMMENT '事件类型',
   `tar_name` varchar(512) DEFAULT NULL COMMENT '目标名称',
   `tar_id` varchar(512) DEFAULT NULL COMMENT '目标id',
-  `value` bigint(20) DEFAULT 0 COMMENT '事件值',
+  `value` string(20) DEFAULT 0 COMMENT '事件值',
   `platform` smallint(6) DEFAULT NULL COMMENT '播放平台 TV APP ...',
   `gmt_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
   `gmt_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',

+ 3 - 3
db/product/lj_course.md

@@ -4,15 +4,15 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
+| id | string | no | | 主键 | pri |
 | code | varchar(512) | no | | 课程编码 | uni |
 | name | varchar(1024) | yes | null | 课程名 | |
 | title | varchar(1024) | yes | null | 课程标题 | |
 | digest | text | yes | null | 课程摘要 | |
 | detail | text | yes | null | 课程简介 | |
 | keyword | varchar(1024) | yes | null | 课程关键字 | |
-| cv_img_ids | varchar(512) | yes | null | 封面图 | |
-| bg_img_ids | varchar(512) | yes | null | 背景图 | |
+| cv_img_list | varchar(512) | yes | null | 封面图 | |
+| bg_img_list | varchar(512) | yes | null | 背景图 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | smallint | no | now | 创建时间 | |
 | gmt_modified | timestamp | no | now | 更新时间 | | |

+ 5 - 4
db/product/lj_course_sub_relation.md

@@ -4,12 +4,13 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| course_code | varchar(512) | no | | 课程编码 | |
-| sub_code | varchar(512) | no | | 单元编码 | |
+| id | string | no | | 主键 | pri |
+| course_id | varchar(512) | no | | 课程id | |
+| sub_id | varchar(512) | no | | 单元id | |
 | type | smallint | no | 0 | 类型, 0为课程与课对应关系, 1为课程与单元对应关系 | |
 | sort | int | no | | 顺序 | 排序字段 |
+| status | int | no | 0 | 是否删除 | |
 | gmt_created | smallint | no | now | 创建时间 | | |
 
 ##### index
-> unique index on(c_code, t_code)
+> unique index on(course_id, sub_id)

+ 4 - 3
db/product/lj_course_support_relation.md

@@ -5,9 +5,10 @@
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
 | id | bigint | no | | 主键 | pri |
-| course_code | varchar(512) | no | | 课程编码 | |
-| support_code | varchar(512) | no | | 周边编码 | |
+| course_id | varchar(512) | no | | 课程id | |
+| support_id | varchar(512) | no | | 周边id | |
+| sort | int | yes | 0 | 排序 | |
 | gmt_created | smallint | no | now | 创建时间 | | |
 
 ##### index
-> unique index on(course_code, support_code)
+> unique index on(course_id, support_id)

+ 7 - 5
db/product/lj_course_tag_relation.md

@@ -1,13 +1,15 @@
-### lj_course_tag_relation table structure
+### lj_item_tag_relation table structure
 > 此表为课程或周边与标签的对应关系
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| tag_code |varchar(512) | no | | 标签编码 | |
-| course_code | varchar(512) | no | | 课程或周边编码 | |
+| id | string | no | | 主键 | pri |
+| tag_id |varchar(512) | no | | 标签id | |
+| item_id | varchar(512) | no | | 商品id | |
+| sort | int | no | 0 | 排序 |
+| status | int | no | 0 | 是否删除 | |
 | gmt_created | timestamp | no | now | 创建时间 | | |
 
 ##### index
-> unique index (tag_code, c_code)
+> unique index (tag_id, item_id)

+ 3 - 2
db/product/lj_item.md

@@ -4,10 +4,11 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
+| id | string | no | | 主键 | pri |
 | code | varchar(512) | no | | 课程编码/周边编码 | |
+| name | varchar(512) | no | | 名字 | |
 | type | smallint | no | | 商品类型, 课程/周边 | |
-| merchant_id | bigint | no | | 渠道id | |
+| merchant_id | string | no | | 渠道id | |
 | sort | int | no | 0 | 排序字段 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | smallint | no | now | 创建时间 | |

+ 4 - 4
db/product/lj_item_price.md

@@ -4,14 +4,14 @@
 
 | field | type | null | default | desc | extra |
 |:----:|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| item_id | bigint | no | | 商品id |  |
+| id | string | no | | 主键 | pri |
+| item_id | string | no | | 商品id |  |
 | type | int | no | 0 | 价格类型, 0:售卖价, 2: 课程包价 | |
 | duration | int | no | | 售卖时长 | |
 | name | varchar(512) | no | | 价格名字 | |
 | cp_price | double(16,2) | no | 0 | 内容提供商成本价 | |
-| mr_price | double(16,2) | no | 0 | 给渠道价格 | |
-| tr_price | double(16,2) | no | 0 | 终端显示价格 | |
+| merchant_price | double(16,2) | no | 0 | 给渠道价格 | |
+| terminal_price | double(16,2) | no | 0 | 终端显示价格 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | smallint | no | now | 创建时间 | |
 | gmt_modified | timestamp | no | now | 更新时间 | | |

+ 1 - 1
db/product/lj_lesson.md

@@ -4,7 +4,7 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
+| id | string | no | | 主键 | pri |
 | code | varchar(512) | no | | 课编码 | uni |
 | name | varchar(1024) | yes | null | 标题 | |
 | digest | text | yes | null | 课摘要 | |

+ 6 - 4
db/product/lj_lesson_ware_relation.md

@@ -4,10 +4,12 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| lesson_code | varchar(512) | no | | 课编码 | |
-| ware_code | varchar(512) | no | | 课件编码 | |
+| id | string | no | | 主键 | pri |
+| lesson_id | varchar(512) | no | | 课id | |
+| ware_id | varchar(512) | no | | 课件id | |
+| sort | int | no | 0| 排序 | |
+| status | int | no | 0 | 是否删除 | |
 | gmt_created | timestamp | no | now | 创建时间 | | |
 
 ##### index
-> unique index on(l_code, w_code)
+> unique index on(lesson_id, ware_id)

+ 2 - 2
db/product/lj_combo.md

@@ -4,8 +4,8 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| merchant_id | bigint | no | | 渠道id | |
+| id | string | no | | 主键 | pri |
+| merchant_id | string | no | | 渠道id | |
 | name | varchar(1024) | yes | null | 课程名 | |
 | digest | text | yes | null | 课程摘要 | |
 | cv_img_ids | varchar(512) | yes | null | 封面图 | |

+ 4 - 4
db/product/lj_combo_item_relation.md

@@ -4,10 +4,10 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| combo_id | bigint | no | | | |
-| item_id | bigint | no | | | |
-| price_id | bigint | no | | 价格 | |
+| id | string | no | | 主键 | pri |
+| combo_id | string | no | | | |
+| item_id | string | no | | | |
+| price_id | string | no | | 价格 | |
 | dis_price | double(16,2) | null | | 打进课程包的价格 | |
 | gmt_created | timestamp | no | now | 创建时间 | | |
 

+ 2 - 2
db/product/lj_support.md

@@ -4,14 +4,14 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
+| id | string | no | | 主键 | pri |
 | code | varchar(512) | no | | 周边编码 | uni |
 | name | varchar(1024) | yes | null | 名 | |
 | title | varchar(1024) | yes | null | 标题 | |
 | type | smallint | no | 0 | 类型 | |
 | digest | text | yes | null | 摘要 | |
 | detail | text | yes | null | 简介 | |
-| img_ids | varchar(512) | yes | null | 封面图 | |
+| img_list | varchar(512) | yes | null | 封面图 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | smallint | no | now | 创建时间 | |
 | gmt_modified | timestamp | no | now | 更新时间 | | |

+ 4 - 4
db/product/lj_support_circle_relation.md

@@ -4,10 +4,10 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| fcode | varchar(512) | no | | 课程编码 | |
-| tcode | varchar(512) | no | | 课程编码 | |
+| id | string | no | | 主键 | pri |
+| fid | varchar(512) | no | | 课程id | |
+| tid | varchar(512) | no | | 课程id | |
 | gmt_created | smallint | no | now | 创建时间 | | |
 
 ##### index
-> unique index on(fcode, tcode)
+> unique index on(fid, tid)

+ 2 - 2
db/product/lj_tag.md

@@ -4,10 +4,10 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
+| id | string | no | | 主键 | pri |
 | code | varchar(512) | no | | 标签编码 |unique |
 | name | varchar(512) | no | | 名字 | |
-| merchant_id | bigint | no | | 渠道id | |
+| merchant_id | string | no | | 渠道id | |
 | type | int | no | | 标签类型, 如周边、课程 | |
 | sort | int | no |  | tag排序 | |
 | status | smallint | no | | 状态 | |

+ 1 - 1
db/product/lj_unit.md

@@ -4,7 +4,7 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
+| id | string | no | | 主键 | pri |
 | code | varchar(512) | no | | 单元编码 | uni |
 | name | varchar(1024) | yes | null | 单元标题 | |
 | digest | text | yes | null | 单元摘要 | |

+ 4 - 4
db/product/lj_unit_lesson_relation.md

@@ -4,10 +4,10 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
-| u_code | varchar(512) | no | | 单元编码 | |
-| l_code | varchar(512) | no | | 课程编码 | |
+| id | string | no | | 主键 | pri |
+| unit_id | varchar(512) | no | | 单元id | |
+| lesson_id | varchar(512) | no | | 课程id | |
 | gmt_created | smallint | no | now | 创建时间 | | |
 
 ##### index
-> unique index on(u_code, l_code)
+> unique index on(unit_id, lesson_id)

+ 2 - 2
db/product/lj_ware.md

@@ -4,13 +4,13 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
+| id | string | no | | 主键 | pri |
 | code | varchar(512) | no | | 课件编码 | uni |
 | name | varchar(1024) | yes | null | 课件名称 | |
 | digest | text | yes | null | 课件摘要 | |
 | type | smallint | no | | 类型 | |
 | play_url | string | yes | null | 视频地址 | |
-| img_ids | varchar(512) | yes | null | 课件组图 | |
+| img_list | varchar(512) | yes | null | 课件组图 | |
 | cp_id | int | yes | 0 | 供应商id | |
 | sort | int | no | 0 | 排序 | |
 | status | smallint | no | | 状态 | |