35 lines
773 B
JavaScript
35 lines
773 B
JavaScript
|
import request from '@/sheep/request';
|
||
|
|
||
|
const PointApi = {
|
||
|
// 获得积分商城活动分页
|
||
|
getPointActivityPage: (params) => {
|
||
|
return request({ url: 'promotion/point-activity/page', method: 'GET', params });
|
||
|
},
|
||
|
|
||
|
// 获得积分商城活动列表,基于活动编号数组
|
||
|
getPointActivityListByIds: (ids) => {
|
||
|
return request({
|
||
|
url: '/promotion/point-activity/list-by-ids',
|
||
|
method: 'GET',
|
||
|
params: {
|
||
|
ids,
|
||
|
},
|
||
|
});
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 获得积分商城活动明细
|
||
|
* @param {number} id 积分商城活动编号
|
||
|
* @return {*}
|
||
|
*/
|
||
|
getPointActivity: (id) => {
|
||
|
return request({
|
||
|
url: 'promotion/point-activity/get-detail',
|
||
|
method: 'GET',
|
||
|
params: { id },
|
||
|
});
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default PointApi;
|