import request from '@/utils/requester.js'
import config from "@/common/config.js"

export default {
	login: (params = {}) => request.post("/wxmpapi/sysuser/login", params),
	wxBindMobile: (params = {}) => request.post("/lpkcustomer/wxBindMobile", params),
	// 不显示loading  true
	// 提货卡列表
	cardList: (params = {}) => request.post("/lpkgiftcard/gifCardByCustomerSid", params, {}, {}, true),
	// 福礼卡列表
	gifcardList: (params = {}) => request.post("/empcardgift/gifCardByCustomerSid", params, {}, {}, true),
	// 企业卡列表
	empcardList: (params = {}) => request.post("/empcard/getEmpCardByCustomerSid", params, {}, {}, true),
	// 提货卡详情
	cardDetail: (params = {}) => request.get("/lpkgiftcard/getGifCardBySid/" + params, params, {}, {}, true),
	// 福礼卡详情
	gifcardDetail: (params = {}) => request.get("/empcardgift/getGifCardBySid/" + params, params, {}, {}, true),
	// 企业卡详情
	empCardDetail: (params = {}) => request.get("/empcard/getEmpCardBySid/" + params, params, {}, {}, true),
	// 福礼卡分享 改变卡状态
	shareEmpCard: (params = {}) => request.get("/empcardgift/shareEmpCard/" + params, params, {}, {}, true),
	// 提货日期 周六日的日期组合
	isSaturAndSun: (params = {}) => request.get("/lpkgiftcard/isSaturAndSun/" + params, params, {}, {}, true),
	// 提货日期 周六日的日期组合
	isSaturAndSun2: (params = {}) => request.get("/empcardgift/isSaturAndSun/" + params, params, {}, {}, true),
	// 提货日期 周六日的日期组合
	isSaturAndSun3: (params = {}) => request.get("/empcard/isSaturAndSun/" + params, params, {}, {}, true),
	// 提货卡预约初始化
	cardBooking: (params = {}) => request.get("/lpkgiftcard/getReservationBySid/" + params, params, {}, {}, true),
	// 提货卡预约保存
	cardBookingSave: (params = {}) => request.post("/lpksreservoorder/submission", params),
	// 提货卡转赠保存
	generateEmpCard: (params = {}) => request.post("/empcardgift/generateEmpCard", params),
	// 福礼卡预约保存
	gifcardBookingSave: (params = {}) => request.post("/empsreservoorder/submission", params),
	// 福利卡转赠保存
	generateEmpCardGift: (params = {}) => request.post("/empcardgift/generateEmpCardGift", params),
	// 企业卡生成福利卡
	empcardSave: (params = {}) => request.post("/empcardgift/generateCard", params),
	// 企业卡预约保存
	empcardBookingSave: (params = {}) => request.post("/empsreservoorder/submissionEmp", params),
	// 绑定提货卡
	cardBind: (params = {}) => request.post("/lpkgiftcard/bindCard", params),
	// 绑定企业卡
	empcardBind: (params = {}) => request.post("/empcard/bindCard", params),
	// 单一提货卡预约记录
	orderByCardSid: (params = {}) => request.get("/lpksreservoorder/orderByCardSid/" + params, params, {}, {}, true),
	// 预约记录
	orderListByUserSid: (params = {}) => request.post("/lpksreservoorder/orderListByUserSid", params, {}, {}, true),
	// 预约记录详情
	orderDetails: (params = {}) => request.get("/lpksreservoorder/orderDetails/" + params, params, {}, {}, true),
	// 商品详情
	goodsDetail: (params = {}) => request.get("/lpkgoods/goodsDetails/" + params, params, {}, {}, true),
	// 提货点
	address: (params = {}) => request.post("/lpkstore/getAllStoreByQuery", params, {}, {}, true),


	//  2024-1-13 新需求接口  所有卡数据整合到一个页面
	// 新提货卡列表 
	pickUpCardList: (params = {}) => request.post("/lpkgiftcard/gifCardsByCustomerSid", params, {}, {}, true),
	// 新绑定提货卡
	pickUpCardBind: (params = {}) => request.post("/lpkgiftcard/bindAllCard", params),

	// 云菜窖列表
	appletGiftBagList: (params = {}) => request.get("/appletgiftbag/appletGiftBagList", params),
	// 云菜窖列表
	getGiftBagBySid: (params = {}) => request.get("/appletgiftbag/getGiftBagBySid/" + params, params),
	// 自选菜窖 商品信息
	getAllGiftBag: (params = {}) => request.get("/lpkgoods/getAllGiftBag", params),
	// 結算商品
	createOrder: (params = {}) => request.post("/empsreservoorder/createOrder", params),


	// 我的
	// 获取头像 昵称
	getUserInfo: (params = {}) => request.get("/lpkcustomer/customerInfo/" + params, params),
	// 用户基本信息
	getBaseInfo: (params = {}) => request.get("/lpkcustomer/getCustomerInfo/" + params, params, {}, {}, true),
	// 修改头像
	uploadHandImage: (params = {}) => request.post("/lpkcustomer/uploadAvatar", params),
	// 获取默认提菜信息
	getStoreBySid: (params = {}) => request.get("/customerstore/getStoreBySid/" + params, params),
	// 推荐有礼
	myRecommend: (params = {}) => request.get("/appletgiftbag/recommendRecord/" + params, params),
	// 基本信息修改头像
	headerUpload: config.baseUrl + '/lpkcustomer/modifyHeadImage',
	// 修改昵称
	changeNick: (params = {}) => request.formpost("/lpkcustomer/modifyUserNickName", params),
	// 获取手机号
	getPhone: (params = {}) => request.formpost("/lpkcustomer/getPhoneNumber", params),
	// 获取实名
	getRealInfo: (params = {}) => request.get("/lpkcustomer/getRealInfo/" + params, params, {}, {}, true),
	// 保存实名
	saveRealInfo: (params = {}) => request.post("/lpkcustomer/saveRealInfo", params),


	//  2024-1-15 新需求
	// 获取补充菜窖 商品分类列表
	getAllGoodsType: (params = {}) => request.get("/lpkgiftcard/getAllGoodsType/" + params, params),
	// 获取补充菜窖 商品分类列表
	getGoodsByType: (params = {}) => request.post("/lpkgiftcard/getGoodsByType", params),
	// 获取当前购物车总价及总斤数
	getGoodsWeight: (params = {}) => request.post("/shoppingcart/getGoodsWeight", params),
	// 加入购物车
	addShoppingCart: (params = {}) => request.post("/shoppingcart/addShoppingCart", params),
	// 购物车列表
	shoppingCartList: (params = {}) => request.post("/shoppingcart/shoppingCartList", params, {}, {}, true),
	// 结算  跳过支付
	saveGoods: (params = {}) => request.post("/vegetablecellar/saveGoods", params),

	// 我的菜窖 类型列表
	vegeCellarTypeList: (params = {}) => request.post("/lpkgoods/vegeCellarTypeList", params),
	// 我的菜窖 商品列表
	vegeCellarList: (params = {}) => request.post("/lpkgoods/vegeCellarList", params),
	// 我的菜窖 预约提菜
	getStoreBySid: (params = {}) => request.get("/customerstore/getStoreBySid/" + params, params),
	// 我的菜窖 预约提菜 选择时间范围
	getExtractSaturAndSun: (params = {}) => request.get("/customerstore/isSaturAndSun", params),
	// 我的菜窖 保存预约提菜
	submissionExtract: (params = {}) => request.post("/lpksreservoorders/submission", params),

}