| 123456789101112131415161718192021222324252627282930313233343536 |
- import request from '../utils/request';
- // 查询收藏列表
- export function listCollection(query) {
- return request({
- url: '/miniapp/collection/list',
- method: 'GET',
- params: query
- });
- }
- // 添加收藏
- export function addCollection(data) {
- return request({
- url: '/miniapp/collection',
- method: 'POST',
- data: data
- });
- }
- // 取消收藏
- export function delCollection(id) {
- return request({
- url: '/miniapp/collection/' + id,
- method: 'DELETE'
- });
- }
- // 检查是否已收藏
- export function checkCollection(studentId, targetId, type) {
- return request({
- url: '/miniapp/collection/check',
- method: 'GET',
- params: { studentId, targetId, type }
- });
- }
|