2022年5月29日 从svn移到git

This commit is contained in:
daihh
2022-05-29 18:59:24 +08:00
parent 9580ff8c9b
commit faa7afb65f
897 changed files with 171836 additions and 0 deletions

42
api/modules/trample.js Normal file
View File

@@ -0,0 +1,42 @@
/* 踩的相关处理*/
import ajax from '@/utils/xajax.js'
/*
*踩赞记录分页
*@param pageIndex 第几页
*@param pageSize 长度
查询条件暂时未确定
*/
const page=function(query){
return ajax.post('/xboe/m/trample/page',query);
}
/*
*踩
@param id 目前是课程id
*/
const trample=function(id){
return ajax.get(`/xboe/m/trample/trample?id=${id}`);
}
/**
* 取消
* @param {Object} id
*/
const remove=function(id){
return ajax.get(`/xboe/m/trample/remove?id=${id}`);
}
/*
查询当前用户是否已踩
@param objId 目前课程id
*/
const has=function(id){
return ajax.get(`/xboe/m/trample/has?objId=${id}`);
}
export default{
page,
trample,
remove,
has
}