/*
	接口统一管理
*/
const apiurl = {
	// 用户注册登陆
	login: {
		url: '/agentInfo/login',
		type: 'post'
	},
	// 重新登录
	reLogin: {
		url: '/auth/login',
		type: 'post'
	},
	// 修改密码
	updatePassword: {
		url: '/agentInfo/updatePassword',
		type: 'put'
	},
	// 修改用户信息
	updateMemberInfo: {
		url: '/memberInfo/update',
		type: 'put'
	},
	//代理人端首页信息
	indexData: {
		url: '/agentInfo/index',
		type: 'get'
	},
	//用户信息统计
	memberSta: {
		url: '/agentInfo/memberSta',
		type: 'get'
	},
	//代理人业绩
	achievement: {
		url: '/agentInfo/achievement',
		type: 'get'
	},
	//店铺列表
	shopList: {
		url: '/agentInfo/shopList',
		type: 'post'
	},
	//ID获取店铺详情
	shopById: {
		url: '/agentInfo/shopById',
		type: 'get'
	},
	//店铺更新
	shopUpdate: {
		url: '/agentInfo/shopUpdate',
		type: 'put'
	},
	//轮播图
	swiperList: {
		url: '/advList/pageList',
		type: 'get'
	},
	//轮播图详情
	swiperDetails: {
		url: '/advList/selectById',
		type: 'get'
	},
	// 热销商品列表
	topGoodList: {
		url: '/goods/selectTopGoodList',
		type: 'get'
	},
	// 商品分类信息
	goodsTypeTree: {
		url: '/goodsType/tree',
		type: 'get'
	},
	// 商品分类信息列表
	goodsTypeList: {
		url: '/goodsType/list',
		type: 'get'
	},
	// 商品列表
	memberGoodList: {
		url: '/goods/memberGoodList',
		type: 'get'
	},
	// 商品详情
	memberGoodDetails: {
		url: '/goods/memberGetById',
		type: 'get'
	},
	// 购物车列表
	cartList: {
		url: '/agentGoodsCart/pageList',
		type: 'get'
	},
	// 购物车添加
	addCart: {
		url: '/agentGoodsCart/insert',
		type: 'post'
	},
	// 购物车数量修改
	updateQuantity: {
		url: '/agentGoodsCart/modifyCart',
		type: 'put'
	},
	// 购物车批量删除
	deleteCarts: {
		url: '/agentGoodsCart/deleteByIds',
		type: 'delete'
	},
	// 订单提交
	submitOrder: {
		url: '/agentOrder/submit',
		type: 'post'
	},
}


/*
* 特殊处理接口
*/ 
const otherApiUrl = {
	// 文件上传
	uploadFile: '/file/upload/single/minio',
}

export {
	apiurl,
	otherApiUrl
}