移出部分接口文件删除无用接口

This commit is contained in:
唐明明
2021-09-24 11:43:27 +08:00
parent c50a9e3abc
commit 4716a97e70
8 changed files with 32 additions and 419 deletions

View File

@@ -24,22 +24,6 @@ const inits = data => {
}) })
} }
// 企业广场
const companies = data => {
return request({
url: 'companies',
data
})
}
// 企业列表
const companiesList = data => {
return request({
url: 'companies/lists',
data
})
}
// 企业认证配置信息 // 企业认证配置信息
const appliesCreate = () => { const appliesCreate = () => {
return request({ return request({
@@ -89,8 +73,6 @@ const appliesCategory = data => {
export { export {
createConfig, createConfig,
inits, inits,
companies,
companiesList,
appliesCreate, appliesCreate,
applies, applies,
isallow, isallow,

View File

@@ -33,14 +33,6 @@ const couponsGoods = data => {
}) })
} }
// 设置关联商品*********已废弃
const couponsAddgoods = (id, data) => {
return request({
url: 'coupons/tools/coupons/' + id + '/addgoods',
method: 'POST',
data
})
}
// 管理优惠券详情 // 管理优惠券详情
const magCouponsInfo = (id) => { const magCouponsInfo = (id) => {
@@ -68,7 +60,6 @@ export {
toolsCoupons, toolsCoupons,
pushCoupons, pushCoupons,
couponsGoods, couponsGoods,
couponsAddgoods,
magCouponsInfo, magCouponsInfo,
magCouponsStatus, magCouponsStatus,
magCouponsRecommend magCouponsRecommend

View File

@@ -8,27 +8,6 @@
import { request } from '../index' import { request } from '../index'
// 商城首页
const mall = data => {
return request({
url: "mall"
})
}
// 商品列表
const list = data => {
return request({
url: "mall/goods",
data
})
}
// 商品详情
const goods = id => {
return request({
url: 'mall/goods/' + id
})
}
// 商品管理-商品列表 // 商品管理-商品列表
const managesGoodsIndex = data => { const managesGoodsIndex = data => {
@@ -56,22 +35,6 @@ const managesGoodsBurn = data => {
}) })
} }
// 商品管理-商品上架 ********已废弃
const managesGoodsOnsale = id => {
return request({
url: 'manages/goods/'+id+'/onsale',
method:'PUT'
})
}
// 商品管理-商品下架 ********已废弃
const managesGoodsOffsale = id => {
return request({
url: 'manages/goods/'+id+'/offsale',
method:'PUT'
})
}
// 发布商品前置 // 发布商品前置
const managesGoodsCreateBefore = () => { const managesGoodsCreateBefore = () => {
return request({ return request({
@@ -127,35 +90,6 @@ const managesGoodsEdit = id => {
}) })
} }
// 区块链证书
const managesChain = (id) => {
return request({
url: 'mall/goods/'+ id + '/chain'
})
}
// 商品认证
const managesAttestation = (id) => {
return request({
url: 'mall/goods/'+ id +'/message'
})
}
// 商品溯源
const managesTracedTo = (id) => {
return request({
url: 'mall/goods/'+ id +'/trace'
})
}
// 领取优惠券
const managesCoupons = (id) => {
return request({
url: 'coupons/'+ id +'/grant',
method: 'POST'
})
}
// 产品编辑 // 产品编辑
const managesGoodsPut = (id, data) => { const managesGoodsPut = (id, data) => {
return request({ return request({
@@ -173,14 +107,9 @@ const managesGoodsExtends = id => {
} }
export { export {
mall,
list,
goods,
managesGoodsIndex, managesGoodsIndex,
managesGoodsMint, managesGoodsMint,
managesGoodsBurn, managesGoodsBurn,
managesGoodsOnsale,
managesGoodsOffsale,
managesGoodsCreateBefore, managesGoodsCreateBefore,
managesGoodsCreate, managesGoodsCreate,
managesCategory, managesCategory,
@@ -188,10 +117,6 @@ export {
managesGoodsDelete, managesGoodsDelete,
managesGoodsEdit, managesGoodsEdit,
managesCreate, managesCreate,
managesChain,
managesAttestation,
managesTracedTo,
managesCoupons,
managesGoodsPut, managesGoodsPut,
managesGoodsExtends managesGoodsExtends
} }

View File

@@ -1,102 +0,0 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 转让市场
*/
import { request } from '../index'
// 转让市场
const markets = data => {
return request({
url: 'markets',
data
})
}
// 转让市场记录
const marketsLogs = data => {
return request({
url: 'markets/orders',
data
})
}
// 转让详情
const marketsInfo = id => {
return request({
url: 'markets/' + id
})
}
// 提交支付订单
const marketsBuy = (id, data) => {
return request({
url: 'markets/' + id + '/create',
method: 'POST',
data
})
}
// 转让市场支付
const marketsPay = (id, platform) => {
return request({
url: 'markets/pay/' + id + '/' + platform
})
}
// 转让权证信息
const marketsCreateInfo = symbol => {
return request({
url: 'markets/user/markets/create',
data: { symbol }
})
}
// 提交权证转让
const marketsCreate = data => {
return request({
url: 'markets/user/markets/create',
method: 'POST',
data
})
}
// 转让管理
const marketsMag = data => {
return request({
url: 'markets/user/markets',
data
})
}
// 取消转让
const marketsCancel = id => {
return request({
url: 'markets/' + id + '/cancel',
method: 'POST'
})
}
// 我的成交理事
const marketsOrdersLogs = (data, name) => {
return request({
url: 'markets/orders/' + name,
data
})
}
export {
markets,
marketsLogs,
marketsInfo,
marketsBuy,
marketsPay,
marketsCreateInfo,
marketsCreate,
marketsMag,
marketsCancel,
marketsOrdersLogs
}

View File

@@ -1,146 +0,0 @@
/**
* Web-zdx
* moduleName: 我的数权
*/
import { request } from '../index'
// 我的数权
const mallWarrants = (data) => {
return request({
url: 'mall/warrants',
method: 'GET',
data: data
})
}
// 我的数权Id获取数权详情
const mallWarrantsList = (symbol) => {
return request({
url: 'mall/warrants/exchange',
method: 'GET',
data: {
symbol:symbol
}
})
}
// 确认提货
const mallWarrantsSure = (data) => {
return request({
url: 'mall/warrants/exchange',
method: 'POST',
data: data
})
}
// 我的邮寄订单,我的提货单
const mallShipmentsPostShop = (apiUrl,data) => {
return request({
url: apiUrl,
method: 'GET',
data: data
})
}
// 根据提货单的no 获取提货单的详情
const mallShipmentsInfo = (no) => {
return request({
url: 'mall/shipments/'+no,
method: 'GET'
})
}
// 取消提货单
const mallShipmentsCancel = (shipmentNo) => {
return request({
url: 'mall/shipments/'+ shipmentNo+'/cancel',
method: 'POST'
})
}
// 签收提货单
const mallShipmentsSign = (shipmentNo) => {
return request({
url: 'mall/shipments/'+ shipmentNo+'/sign',
method: 'POST'
})
}
// 退货单申请退货
const mallShipmentsRefund = (data) => {
return request({
url: 'mall/shipments/'+ data.shipment_no+'/refund',
method: 'POST',
data:data
})
}
// 退货单申请退货前置条件
const mallShipmentsRefundInfo = (shipmentNo) => {
return request({
url: 'mall/shipments/'+ shipmentNo+'/refund',
method: 'GET'
})
}
// 查看物流接口
const mallShipmentsLogistic = (shipmentNo) => {
return request({
url: 'mall/shipments/'+ shipmentNo+'/logistic',
method: 'GET'
})
}
// 我的退货单 mall/refunds
const mallRefunds = (data) => {
return request({
url: 'mall/refunds',
method: 'GET',
data: data
})
}
//退货单详情页
const mallRefundsInfo = (no) => {
return request({
url: 'mall/refunds/'+no,
method: 'GET'
})
}
// 确认退货mall/refunds/{refund}/deliver
const mallRefundsDeliver = (data) => {
return request({
url: 'mall/refunds/'+data.refund+'/deliver',
method: 'POST',
data:data
})
}
// 提货单或者服务单生成提货二维码
const mallWarrantsQrcode = (data) => {
return request({
url: 'mall/warrants/qrcode',
method: 'GET',
data:data
})
}
export {
mallWarrants,
mallWarrantsList,
mallWarrantsSure,
mallShipmentsPostShop,
mallShipmentsInfo,
mallShipmentsCancel,
mallShipmentsSign,
mallShipmentsRefund,
mallShipmentsRefundInfo,
mallShipmentsLogistic,
mallRefunds,
mallRefundsInfo,
mallRefundsDeliver,
mallWarrantsQrcode
}

View File

@@ -1,30 +0,0 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 订单
*/
import { request } from '../index'
// 创建,确认订单
const buy = (data, method) => {
return request({
url: 'mall/buy/goods',
method,
data
})
}
// eb支付
const eb = (no) => {
return request({
url: 'mall/pay/' + no + '/eb',
})
}
export {
buy,
eb
}

View File

@@ -3,7 +3,9 @@
* moduleName:核销相关操作 * moduleName:核销相关操作
*/ */
import { request } from '../index' import {
request
} from '../index'
// 扫码前置条件 get 核销前置 post 表示核销 // 扫码前置条件 get 核销前置 post 表示核销

View File

@@ -15,14 +15,6 @@ const index = () => {
}) })
} }
// 成交客户 *********已废弃
const customer = data => {
return request({
url: 'mall/statistics',
data
})
}
// 成交客户 // 成交客户
const orderUsers = data => { const orderUsers = data => {
return request({ return request({
@@ -151,7 +143,6 @@ const deliverLogistic = (shipment__no) => {
export { export {
index, index,
customer,
orderUsers, orderUsers,
visitors, visitors,
basicsConfig, basicsConfig,