| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import {http} from './service.js'
- //文件上传
- const uploadFile =(p)=> http.upload('blade-resource/oss/endpoint/put-file', {name:'file',filePath:p})
- //字典
- const dict={
- list:p => http.get('/blade-system/dict-biz/dictionary', {params:p}),
- parentList:p => http.get('/blade-system/dict-biz/parent-list', {params:p}),
- dictionaryTree:p => http.get('/blade-system/dict-biz/dictionary-tree', {params:p}),
- }
- //手机验证码
- const sms={
- send:p => http.post('/sms/sendSms'+p)
- }
- const mall={
- //获取商场列表
- list:p => http.get('ldt_mall/mall/list',{params:p}),
- }
- //商户管理
- const shop={
- submitAudit:p => http.post('/shop/submitAudit',p),
- list:p => http.get('ldt_shop/shop/list',{params:p}),
- detail:p => http.get('ldt_shop/shop/detail',{params:p}),
- }
- //账号
- const accout={
- register:p => http.post('/shop/account/register',p),
- login:p => http.post('/shop/account/login',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),
- }
- export const api={
- uploadFile,
- dict,
- sms,
- mall,
- shop,
- accout,
- userBank
- }
|