huodongdong %!s(int64=7) %!d(string=hai) anos
pai
achega
ef4c7b7f03

+ 5 - 0
api/cms/README.MD

@@ -0,0 +1,5 @@
+#### public header
+> 请求的公共头参数
+
+* requestId : string, 每次不同
+* bizCode : string

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

@@ -1,4 +1,4 @@
-### GET /course/{code}
+### GET /course/{id}
 * method: GET
 * version: v1.0
 * describe: 获取单个课程
@@ -7,7 +7,7 @@
 
 |name |type| null | desc |
 |---- |:---|:---|:----:|
-| code | string | no | 编码 |
+| id | string | no | 编码 |
 
 ##### 返回字段说明
 | name | type | desc |

+ 3 - 2
api/cms/item/item_one.md

@@ -1,4 +1,4 @@
-### GET /item/{code}
+### GET /item/{id}
 * method: GET
 * version: v1.0
 * describe: 获取单个商品
@@ -7,7 +7,7 @@
 
 |name |type| null | desc |
 |---- |:---|:---|:----:|
-| code | string | no | 编码 |
+| id | string | no | 编码 |
 
 ##### 返回字段说明
 | name | type | desc |
@@ -20,6 +20,7 @@
 | cpName| string | 内容提供商名字 |
 | status| string| 状态 |
 | priceList | array | 价格数组 |
+| tagList | array | 标签数组 |
 | gmtCreated|int | 创建时间 |
 | gmtModified|int|修改时间|
 

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

@@ -1,4 +1,4 @@
-### GET /lesson/{code}
+### GET /lesson/{id}
 * method: GET
 * version: v1.0
 * describe: 获取单个课
@@ -7,7 +7,7 @@
 
 |name |type| null | desc |
 |---- |:---|:---|:----:|
-| code | string | no | 课编码 |
+| id | string | no | 课编码 |
 
 ##### 返回字段说明
 | name | type | desc |

+ 1 - 1
api/cms/package/combo_list.md

@@ -1,4 +1,4 @@
-### GET /combo/list
+### GET /package/list
 * method: GET
 * version: v1.0
 * describe: 获取商品包列表

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

@@ -1,4 +1,4 @@
-### GET /combo
+### GET /package/{id}
 * method: GET
 * version: v1.0
 * describe: 获取单个商品包
@@ -7,7 +7,7 @@
 
 |name |type| null | desc |
 |---- |:---|:---|:----:|
-| code | string | no | 编码 |
+| id | string | no | 编码 |
 
 ##### 返回字段说明
 | name | type | desc |

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

@@ -1,4 +1,4 @@
-### POST /combo
+### POST /package
 * method: POST
 * version: v1.0
 * describe: 修改商品包信息

+ 2 - 2
api/cms/support/support_one.md

@@ -1,4 +1,4 @@
-### GET /support/{code}
+### GET /support/{id}
 * method: GET
 * version: v1.0
 * describe: 获取单个课
@@ -7,7 +7,7 @@
 
 |name |type| null | desc |
 |---- |:---|:---|:----:|
-| code | string | no | 课编码 |
+| id | string | no | 课编码 |
 
 ##### 返回字段说明
 | name | type | desc |

+ 4 - 13
api/cms/ware/ware_list.md

@@ -9,7 +9,6 @@
 |---- |:---|:---|:----:|
 | code | string | yes | 课件编码 |
 | name | string | yes | 课件名称 |
-| type | string | yes | 课件类型 [SINGLE, MULTI, VIDEO] |
 | pageNo | string | yes | 页码 |
 | pageSize | string | yes | 页大小 |
 
@@ -20,9 +19,7 @@
 | code | string | 课件编码 |
 | name | string | 课件名称 |
 | digest| string | 课件描述 |
-| type | string | 课件类型 |
-| playUrl| string | 播放地址 |
-| imgList| array | 组图数组 |
+| resourceList| array | 资源数组 |
 | cpId| string | 内容提供商id |
 | cpName| string | 内容提供商名字 |
 | status| string| 状态 |
@@ -47,9 +44,7 @@
                 "digest": null,
                 "type": "SINGLE",
                 "playUrl": null,
-                "imgList": [
-                  "http://3du3x.90374kd,027shjse2",
-                ],
+                "resourceList": [],
                 "cpId": 300,
                 "cpName": "hello",
                 "sort": null,
@@ -64,9 +59,7 @@
                 "digest": null,
                 "type": "SINGLE",
                 "playUrl": null,
-                "imgList": [
-                  "http://3du3x.90374kd,027shjse2",
-                ],
+                "imgList": [],
                 "cpId": 300,
                 "cpName": "hello",
                 "sort": null,
@@ -81,9 +74,7 @@
                 "digest": null,
                 "type": "SINGLE",
                 "playUrl": null,
-                "imgList": [
-                  "http://3du3x.90374kd,027shjse2",
-                ],
+                "imgList": [],
                 "cpId": 300,
                 "cpName": "hello",
                 "sort": null,

+ 0 - 2
api/cms/ware/ware_save.md

@@ -15,8 +15,6 @@
 | code | string | no | 课件编码 |
 | name | string | no | 课件名称 |
 | digest| string | yes | 课件描述 |
-| type | string| no | 课件类型 |
-| playUrl| string | yes | 播放地址 |
 | imgList| array | yes | 组图数组 |
 | cpId| string| yes | 内容提供商id |
 | status| string| yes | 状态|

+ 1 - 1
db/product/lj_course.md

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

+ 1 - 1
db/product/lj_course_sub_relation.md

@@ -4,7 +4,7 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
+| id | varchar(512) | no | | 主键 | pri |
 | course_id | varchar(512) | no | | 课程id | |
 | sub_id | varchar(512) | no | | 单元id | |
 | type | smallint | no | 0 | 类型, 0为课程与课对应关系, 1为课程与单元对应关系 | |

+ 2 - 1
db/product/lj_course_support_relation.md

@@ -4,10 +4,11 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | bigint | no | | 主键 | pri |
+| id | varchar(512) | no | | 主键 | pri |
 | course_id | varchar(512) | no | | 课程id | |
 | support_id | varchar(512) | no | | 周边id | |
 | sort | int | yes | 0 | 排序 | |
+| status | int | no | 0 | 是否删除 | |
 | gmt_created | smallint | no | now | 创建时间 | | |
 
 ##### index

+ 17 - 0
db/product/lj_gruop.md

@@ -0,0 +1,17 @@
+### lj_group table structure
+> 此表为标签分组的数据结构
+
+
+| field | type | null | default | desc | extra |
+|----|:-----|:-------|:------|:-----|:-----|
+| id | varchar(512) | no | | 主键 | pri |
+| code | varchar(512) | no | | 唯一编码 | |
+| name | varchar(512) | no | | 名字 | |
+| merchant_id | varchar(512) | no | | 渠道id | |
+| sort | int | no |  | tag排序 | |
+| status | smallint | no | | 状态 | |
+| gmt_created | timestamp | no | now | 创建时间 | |
+| gmt_modified | timestamp | no | now | 更新时间 | | |
+
+##### index
+> unique index (code)

+ 3 - 3
db/product/lj_item.md

@@ -1,14 +1,14 @@
 ### lj_item table structure
-> 此表为课程产品的数据结构, 可出售
+> 此表为品的数据结构, 可出售
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
+| id | varchar(512) | no | | 主键 | pri |
 | code | varchar(512) | no | | 课程编码/周边编码 | |
 | name | varchar(512) | no | | 名字 | |
 | type | smallint | no | | 商品类型, 课程/周边 | |
-| merchant_id | string | no | | 渠道id | |
+| merchant_id | varchar(512) | no | | 渠道id | |
 | sort | int | no | 0 | 排序字段 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | smallint | no | now | 创建时间 | |

+ 2 - 3
db/product/lj_item_price.md

@@ -4,9 +4,8 @@
 
 | field | type | null | default | desc | extra |
 |:----:|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
-| item_id | string | no | | 商品id |  |
-| type | int | no | 0 | 价格类型, 0:售卖价, 2: 课程包价 | |
+| id | varchar(512) | no | | 主键 | pri |
+| item_id | varchar(512) | no | | 商品id |  |
 | duration | int | no | | 售卖时长 | |
 | name | varchar(512) | no | | 价格名字 | |
 | cp_price | double(16,2) | no | 0 | 内容提供商成本价 | |

+ 2 - 2
db/product/lj_course_tag_relation.md

@@ -1,10 +1,10 @@
 ### lj_item_tag_relation table structure
-> 此表为课程或周边与标签的对应关系
+> 此表为商品与标签的对应关系
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
+| id | varchar(512) | no | | 主键 | pri |
 | tag_id |varchar(512) | no | | 标签id | |
 | item_id | varchar(512) | no | | 商品id | |
 | sort | int | no | 0 | 排序 |

+ 1 - 1
db/product/lj_lesson.md

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

+ 1 - 1
db/product/lj_lesson_ware_relation.md

@@ -4,7 +4,7 @@
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
+| id | varchar(512) | no | | 主键 | pri |
 | lesson_id | varchar(512) | no | | 课id | |
 | ware_id | varchar(512) | no | | 课件id | |
 | sort | int | no | 0| 排序 | |

+ 6 - 6
db/product/lj_package.md

@@ -1,18 +1,18 @@
-### lj_combo table structure
-> 此表为课程存储对应的数据结构
+### lj_package table structure
+> 此表为课程存储对应的数据结构
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
-| merchant_id | string | no | | 渠道id | |
+| id | varchar(512) | no | | 主键 | pri |
+| merchant_id | varchar(512) | no | | 渠道id | |
 | name | varchar(1024) | yes | null | 课程名 | |
 | digest | text | yes | null | 课程摘要 | |
-| cv_img_ids | varchar(512) | yes | null | 封面图 | |
+| cv_img_list | varchar(512) | yes | null | 封面图 | |
 | dis_price | double(16,2) | no| 0 | 折扣价 | |
 | sort | int | no | 0 | 排序字段 | |
 | status | smallint | no | | 状态 | |
-| gmt_created | smallint | no | now | 创建时间 | |
+| gmt_created | timestamp | no | now | 创建时间 | |
 | gmt_modified | timestamp | no | now | 更新时间 | | |
 
 ##### index

+ 5 - 5
db/product/lj_package_item_relation.md

@@ -1,13 +1,13 @@
-### lj_combo_item_relation table structure
+### lj_package_item_relation table structure
 > 此表为课程包与商品的对应关系表
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
-| combo_id | string | no | | | |
-| item_id | string | no | | | |
-| price_id | string | no | | 价格 | |
+| id | varchar(512) | no | | 主键 | pri |
+| _id | varchar(512) | no | | | |
+| item_id | varchar(512) | no | | | |
+| price_id | varchar(512) | no | | 价格 | |
 | dis_price | double(16,2) | null | | 打进课程包的价格 | |
 | gmt_created | timestamp | no | now | 创建时间 | | |
 

+ 3 - 4
db/product/lj_support.md

@@ -1,19 +1,18 @@
 ### lj_support table structure
-> 此表为课程存储对应的数据结构
+> 此表为周边存储对应的数据结构
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
+| id | varchar(512) | 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_list | varchar(512) | yes | null | 封面图 | |
 | status | smallint | no | | 状态 | |
-| gmt_created | smallint | no | now | 创建时间 | |
+| gmt_created | timestamp | no | now | 创建时间 | |
 | gmt_modified | timestamp | no | now | 更新时间 | | |
 
 ##### index

+ 2 - 2
db/product/lj_support_circle_relation.md

@@ -1,10 +1,10 @@
-### lj_support_circle_relation table structure
+### lj_support_self_relation table structure
 > 此表为周边与周边关系的数据结构
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
+| id | varchar(512) | no | | 主键 | pri |
 | fid | varchar(512) | no | | 课程id | |
 | tid | varchar(512) | no | | 课程id | |
 | gmt_created | smallint | no | now | 创建时间 | | |

+ 2 - 5
db/product/lj_tag.md

@@ -1,14 +1,11 @@
 ### lj_tag table structure
-> 此表为课程及周边标签的分类
+> 此表为商品标签的数据存储结构
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
-| code | varchar(512) | no | | 标签编码 |unique |
+| id | varchar(512) | no | | 主键 | pri |
 | name | varchar(512) | no | | 名字 | |
-| merchant_id | string | no | | 渠道id | |
-| type | int | no | | 标签类型, 如周边、课程 | |
 | sort | int | no |  | tag排序 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | timestamp | no | now | 创建时间 | |

+ 3 - 3
db/product/lj_unit.md

@@ -1,16 +1,16 @@
 ### lj_unit table structure
-> 此表为存储对应的数据结构
+> 此表为单元存储对应的数据结构
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
+| id | varchar(512) | no | | 主键 | pri |
 | code | varchar(512) | no | | 单元编码 | uni |
 | name | varchar(1024) | yes | null | 单元标题 | |
 | digest | text | yes | null | 单元摘要 | |
 | sort | int | no |  | 排序 | |
 | status | smallint | no | | 状态 | |
-| gmt_created | smallint | no | now | 创建时间 | |
+| gmt_created | timestamp | no | now | 创建时间 | |
 | gmt_modified | timestamp | no | now | 更新时间 | | |
 
 ##### index

+ 2 - 2
db/product/lj_unit_lesson_relation.md

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

+ 4 - 6
db/product/lj_ware.md

@@ -1,17 +1,15 @@
 ### lj_ware table structure
-> 此表为课存储对应的数据结构
+> 此表为课存储对应的数据结构
 
 
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
-| id | string | no | | 主键 | pri |
+| id | varchar(512) | 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_list | varchar(512) | yes | null | 课件组图 | |
-| cp_id | int | yes | 0 | 供应商id | |
+| resource_list | varchar(512) | yes | null | 资源id数组 | |
+| cp_id | varchar(512) | yes | 0 | 供应商id | |
 | sort | int | no | 0 | 排序 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | timestamp | no | now | 创建时间 | |