// 获取会员在店铺详细信息
export const getUserBusinessRoleApi = () => uni.$uv.http.get(`/user/userBusinessRole/userInfo`);

// 查询商品分类列表
export const getShopProductCategoryApi = (businessId : string) => uni.$uv.http.get(`/shop/productCategory/list`, {
	params: {
		businessId
	}
});

// 商家店铺内分页查询产品列表
export const getShopProductApi = (params) => uni.$uv.http.get(`/shop/product/shop/page`, {
	params
});

// 根据协议code查询 协议信息
export const getProductInfoApi = (code) => uni.$uv.http.get(`/protocol/info?code=${code}`);

// // 新增用户反馈
// export const userOpinionAdd = (data) => uni.$uv.http.post(`/user/userOpinion/add`, data);
// // 获取用户反馈详细信息
// export const userOpinionInfo = (opinionId) => uni.$uv.http.get(`/user/userOpinion/info/${opinionId}`);