| | |
| | | } |
| | | |
| | | /** |
| | | * 获取五个推荐视频 |
| | | * 获取推荐视频 |
| | | * |
| | | * @param params |
| | | */ |
| | | export function getRecommendVideos() { |
| | | export function getRecommendVideos(params) { |
| | | return http.request({ |
| | | url: "/lmk/video/recommend", |
| | | method: Method.GET, |
| | | needToken: true |
| | | needToken: true, |
| | | params: params |
| | | }); |
| | | } |
| | | |
| | |
| | | export function subscribe(authorId) { |
| | | return http.request({ |
| | | url: "/lmk/my-subscribe/subscribe/" + authorId, |
| | | method: Method.POST, |
| | | needToken: true |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * 取消关注作者 |
| | | * |
| | | * @param params |
| | | */ |
| | | export function unSubscribe(authorId) { |
| | | return http.request({ |
| | | url: "/lmk/my-subscribe/unSubscribe/" + authorId, |
| | | method: Method.POST, |
| | | needToken: true |
| | | }); |
| | |
| | | data: data |
| | | }); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取视频详情 |
| | | * |
| | | * @param params |
| | | */ |
| | | export function getVideoDetail(id) { |
| | | return http.request({ |
| | | url: "/lmk/video/wx/detail/" + id, |
| | | method: Method.GET, |
| | | needToken: true |
| | | }); |
| | | } |