172 lines
4.0 KiB
TypeScript
172 lines
4.0 KiB
TypeScript
import requestEncryption from '@/utils/requestEncryption';
|
|
import request from '@/utils/request';
|
|
|
|
// 获取活动表列表
|
|
export async function handleGetACTIVITYList(params?: any) {
|
|
const data = await requestEncryption(`/Member/GetACTIVITYList`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data.Result_Data;
|
|
}
|
|
|
|
|
|
// 同步活动
|
|
export async function handleGetSynchroACTIVITY(params?: any) {
|
|
console.log('231231');
|
|
|
|
const data = await requestEncryption(`/Member/SynchroACTIVITY`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return data
|
|
}
|
|
return data;
|
|
}
|
|
|
|
// 删除活动
|
|
export async function handleDeleteACTIVITY(params?: any) {
|
|
const data = await requestEncryption(`/Member/DeleteACTIVITY`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data;
|
|
}
|
|
|
|
|
|
// 获得共享休息站列表数据
|
|
export async function handleGetRESTSTATIONList(params?: any) {
|
|
const data = await requestEncryption(`/Member/GetRESTSTATIONList`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data.Result_Data.List;
|
|
}
|
|
|
|
|
|
// 同步共享休息站表
|
|
export async function handleGetSynchroRESTSTATION(params?: any) {
|
|
const data = await requestEncryption(`/Member/SynchroRESTSTATION`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data;
|
|
}
|
|
|
|
// 删除共享休息站表
|
|
export async function handleDeleteRESTSTATION(params?: any) {
|
|
const data = await requestEncryption(`/Member/DeleteRESTSTATION`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data;
|
|
}
|
|
|
|
// 获取共享休息站订单表列表
|
|
export async function handleGetRESTSTATIONBILLList(params?: any) {
|
|
const data = await requestEncryption(`/Member/GetRESTSTATIONBILLList`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data.Result_Data.List;
|
|
}
|
|
|
|
// 同步共享休息站订单表列表
|
|
export async function handleSynchroRESTSTATIONBILL(params?: any) {
|
|
const data = await requestEncryption(`/Member/SynchroRESTSTATIONBILL`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data;
|
|
}
|
|
|
|
|
|
// 获取活动报名信息表列表
|
|
export async function handleGetACTIVITYDETAILList(params?: any) {
|
|
const data = await requestEncryption(`/Member/GetACTIVITYDETAILList`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data.Result_Data.List;
|
|
}
|
|
|
|
// 获取消息通知关联表列表 招商的报名信息
|
|
export async function handleGetRTNOTICEINFOList(params?: any) {
|
|
const data = await requestEncryption(`/MemberMessage/GetRTNOTICEINFOList`, {
|
|
method: 'POST',
|
|
data: { ...params, requestEncryption: true }
|
|
});
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return {
|
|
List: []
|
|
}
|
|
}
|
|
return data.Result_Data.List;
|
|
}
|
|
|
|
|
|
export async function handleGetPictureList(params: any) {
|
|
const data = await request('/Picture/GetPictureList', {
|
|
method: 'GET',
|
|
params
|
|
})
|
|
|
|
if (data.Result_Code !== 100) {
|
|
return []
|
|
}
|
|
|
|
return data
|
|
}
|
|
|