import {http} from './service.js' //微信api const wxApp={ getOpenId:p => http.get('/wx-app/getOpenId', {params:p}), getOpenData:p => http.post('/wx-app/getOpenData',p), getGenerateScheme:p => http.get('/wx-app/getGenerateScheme', {params:p}), } //字典 const dict=p => http.get('/blade-system/dict-biz/dictionary', {params:p}) //文件上传 const uploadFile =(p)=> http.upload('blade-resource/oss/endpoint/put-file', {name:'file',filePath:p}) //活动管理 const activity = { //音乐之声活动 yyzs_list:p => http.get('yyzs/cyzh-activity/activity/selectPageWithTag', {params:p,custom: {yyzs: true}}), //商场活动 list:p => http.get('cyzh-ldt/activity/list', {params:p}), } //用户管理 const loginUser={ detail:p => http.get('cyzh-ldt/loginuser/detail', {params:p}), submit:p => http.post('cyzh-ldt/loginuser/submit', p), login:p => http.post('cyzh-ldt/loginuser/login', p), payBefore:p => http.post('cyzh-ldt/loginuser/payBefore', p), payBeforeForNormal:p => http.post('cyzh-ldt/loginuser/payBeforeForNormal', p), getBillrecordFromRedis:p => http.get('cyzh-ldt/loginuser/getBillrecordFromRedis', {params:p}), clearBillRecordCache:p => http.get('cyzh-ldt/loginuser/clearBillRecordCache', {params:p}), } //商户管理 const shop={ list:p => http.get('cyzh-ldt/shop/list', {params:p}), detail:p => http.get('cyzh-ldt/shop/detail', {params:p}), } //商场管理 const mall={ //获取商场列表 list:p => http.get('cyzh-ldt/mall/list',{params:p}), } //代理商 const agenter={ list:p => http.get('cyzh-ldt/agenter/list',{params:p}), submit:p => http.post('cyzh-ldt/agenter/submit', p), } //代理类型 const agenterType={ detail:p => http.get('cyzh-ldt/agentertype/detail',{params:p}), } //用户银行 const userBank={ detail:p => http.get('cyzh-ldt/userbank/detail',{params:p}), list:p => http.get('cyzh-ldt/userbank/list',{params:p}), appList:p => http.get('cyzh-ldt/userbank/appList',{params:p}), submit:p => http.post('cyzh-ldt/userbank/submit', p), remove:p => http.post('cyzh-ldt/userbank/remove?ids='+p), } //支付 const pay={ //wx支付 payOrder:p => http.get('payment/payOrder/YEE_PAY/MINI_PROGRAM',{params:p}), //扫码支付 payOrderOfscanCode:p => http.get('payment/payOrder/YEE_PAY/SCAN_CODE',{params:p}), } const billRecord={ submit:p => http.post('cyzh-ldt/billrecord/submit', p), detail:p => http.get('cyzh-ldt/billrecord/detail', {params:p}), } const setting = { feedback: p => http.post('feedback/submit', p) } const account = { pointList:p => http.get('cyzh-ldt/loginuser/channeluserpoint/list',{params:p}), remainList:p => http.get('cyzh-ldt/loginuser/remaining/list',{params:p}), } //webSocket const webSocket={ sendInfo:p => http.post('cyzh-ldt/webSocket/sendInfo',p), } export const api={ wxApp, dict, uploadFile, activity, loginUser, shop, mall, agenter, agenterType, userBank, pay, billRecord, setting, account, webSocket }