import request from '@/utils/request'
/**
 * 获取店铺列表
 * @param data 获取店铺列表的参数
 * @param data.keyword 模糊查询店铺
 * @returns 获取店铺列表
 */
export interface designerListData {
	keyword: string
}
export const getDesignerList = (data:designerListData,loading?:boolean) => {
	return request({
		url: '/buyer/designer/search',
		method: 'get',
		params: data,
		loading
	})
}

/**
 * 获取店铺详情
 * @param data 获取店铺详情的参数
 * @param data.sellerId 店铺 id
 * @returns 获取店铺详情
 */
export interface designerDetailData {
	sellerId?: string
}
export const getDesignerDetail = (data:designerDetailData,loading?:boolean) => {
	return request({	
		url: `/buyer/designer/shop/${data.sellerId}`,
		method: 'get',
		loading
	})
}