文档
测试

课程点赞/收藏

GET
/study/stCourseRecord/add 测试地址:http://47.108.74.138:9688/neimeng/study/stCourseRecord/add

接口描述

点赞(state=1) / 收藏(state=2)

请求参数

参数名
类型
描述
必填
courseId
int
课程id
必填
createBy
string
操作用户
必填
state
int
用于判断操作状态 【点赞(state=1) / 收藏(state=2)】
必填

响应参数

参数名
类型
描述
必填
respCode
string
示例:0000
必填
respDesc
string
示例:成功
必填
result
string
示例:点赞成功 (对应操作的提示语句)
必填

说明 / 示例

用户对一课程点赞/收藏,若没有操作记录,则默认为点赞/收藏;若有操作记录,则取消点赞/收藏