//未读消息
export const messageUnreadNum_Api = (params) => uni.$uv.http.get(`/message/unread-num`, { params })

//会员根据类型来查询未读消息数据列表
export const messageUnreadInfo_Api = (params) => uni.$uv.http.get(`/message/unread-info`, { params })

//查询C端用户通知列表
export const messageList_Api = (params) => uni.$uv.http.get(`/message/list`, { params })

// 根据类型来设置消息为已读
export const messageReadType_Api = (data) => uni.$uv.http.post(`/message/read-type/${data.type}`, data)

// 全部已读
export const messageAllRead_Api = (data) => uni.$uv.http.post(`/message/allRead`, data)


// 购物车设置数量
export const setShopCar = (shopId, data) => uni.$uv.http.post(`/cart/num/${shopId}`, data)

//
export const getOpenPayment = (params) => uni.$uv.http.get(`/saleconfig/openPayment`, { params })

// 获取普通订单统计
export const getGeneralOrderCount = (params) => uni.$uv.http.get(`/order/general-order-count`, { params })

// 查询用户地址列表
export const useraddressList_Api = (params) => uni.$uv.http.get(`/useraddress/list`, { params })

// 新增用户地址
export const useraddressAdd_Api = (data) => uni.$uv.http.post(`/useraddress/add`, data)

// 修改用户地址
export const useraddressEdit_Api = (data) => uni.$uv.http.post(`/useraddress/edit`, data)

// 删除用户地址
export const useraddressDel_Api = (ids) => uni.$uv.http.post(`/useraddress/del/${ids}`, {})

// 获取用户地址详情
export const useraddressInfo_Api = (id) => uni.$uv.http.get(`/useraddress/info/${id}`, {})

// 设置默认
export const useraddressSetDefaultStatus_Api = (id) => uni.$uv.http.post(`/useraddress/setDefaultStatus/${id}`, {})

// 查询用户积分日志列表
export const integralPage_Api = (params) => uni.$uv.http.get(`/user/integral/page`, { params })

// 获取会员在绑定的店铺详细信息
export const userBusinessRole_Api = (params) => uni.$uv.http.get(`/user/userBusinessRole/userInfo`, { params })

//查自己名下的商家
export const businessUserInfo_Api = (params) => uni.$uv.http.get(`/ticket/business/userInfo`, { params })

// 查询会员在每个店铺中的等级列表
export const userBusinessRolePage_Api = (params) => uni.$uv.http.get(`/user/userBusinessRole/page`, { params })

// 获取会员在每个店铺中的等级详细信息
export const userBusinessRoleInfo_Api = (id) => uni.$uv.http.get(`/user/userBusinessRole/info/${id}`, {})

// 订单统计
export const shoporderCount_Api = (params) => uni.$uv.http.get(`/shoporder/count`, { params });

// 查询用户余额
export const totalBalance_Api = (params) => uni.$uv.http.get(`/user/totalBalance`, { params });

// 查询用户积分
export const totalIntegral_Api = (params) => uni.$uv.http.get(`/user/userBusinessRole/totalIntegral`, { params });
// 设置支付密码
export const setPayPassword_Api = (data) => uni.$uv.http.post(`/user/setPayPassword`, data);

// 获取用户余额明细列表
export const balancePage_Api = (params) => uni.$uv.http.get(`/user/balance/page`, { params });

// 生成会员码和对应二维码
export const getMemberCode_Api = (data) => uni.$uv.http.post(`/user/getMemberCode`, data);

// 刷新二维码
export const refreshQrCode_Api = (data) => uni.$uv.http.post(`/user/refreshQrCode`, data);

// 用户获取提现金额
export const withdrawalAmount_Api = (params) => uni.$uv.http.get(`/user/withdrawal/amount`, { params });

// 用户新增提现
export const addWithdrawal_Api = (data) => uni.$uv.http.post(`/user/withdrawal/add`, data);

// 用户获取提现手续费
export const withdrawalFee_Api = (params) => uni.$uv.http.get(`/user/withdrawal/fee`, { params });

// 用户获取提现记录
export const withdrawalPage_Api = (params) => uni.$uv.http.get(`/user/withdrawal/page`, { params });

// 用户获取提现详细信息
export const withdrawalInfo_Api = (id) => uni.$uv.http.get(`/user/withdrawal/info/${id}`, {})

// 修改手机号
export const updateMobile_Api = (data) => uni.$uv.http.post(`/user/updateMobile`, data);

// 判断是否设置支付密码
export const isSetPayPassword_Api = (params) => uni.$uv.http.get(`/user/isSetPayPassword`, { params });

// 第三方身份绑定信息
export const thirdBindingInfo_Api = (params) => uni.$uv.http.get(`/user/thirdBindingInfo`, { params });
