GET代码目录
/tool/open_api/api/user/footprint
请求Params
请求 Header
响应定义
请求参数
Query参数
Header参数
数据结构
export interface Response {
code: number;
/**
* 总计数量
*/
count: number;
/**
* 足迹列表
*/
list: List[];
/**
* 当前页
*/
page: number;
/**
* 分页总数
*/
pageCount: number;
/**
* 每页数量
*/
pageSize: number;
}
export interface List {
/**
* 日期
*/
date: string;
/**
* 商品列表
*/
goods: Good[];
}
export interface Good {
/**
* 规格详细信息
*/
attr: Attr[];
/**
* 规格信息
*/
attrGroups: AttrGroup[];
/**
* 规格样式
*/
attrStyle: number;
/**
* 封面图
*/
coverPic: string;
/**
* 库存
*/
goodsNum: number;
/**
* 库存
*/
goodsStock: string;
/**
* 商品库id
*/
goodsWarehouseid: string;
/**
* 商品库信息
*/
goodsWarehouse: GoodsWarehouse;
/**
* 商品id
*/
id: string;
/**
* 是否面议商品
*/
isNegotiable: number;
/**
* 商城商品信息
*/
mallGoods: null | MallGoods;
/**
* 商品售价
*/
price: string;
/**
* 插件标示
*/
sign: string;
/**
* 商品状态
*/
status: number;
/**
* 是否使用规格
*/
useAttr: string;
}
export interface Attr {
attrList: AttrAttrList[];
/**
* 条形码
*/
barCode: string;
/**
* 成本价
*/
costPrice: string;
/**
* 规格id
*/
id: string;
/**
* 货号
*/
no: string;
/**
* 图片
*/
picurl: string;
/**
* 价格
*/
price: string;
/**
* 库存
*/
stock: string;
/**
* 重量
*/
weight: string;
}
export interface AttrAttrList {
/**
* 规格组名称
*/
attrGroupName: string;
/**
* 规格名称
*/
attrName: string;
}
export interface AttrGroup {
/**
* 规格组id
*/
attrGroupid: number;
/**
* 规格组名称
*/
attrGroupName: string;
/**
* 规格列表
*/
attrList: AttrGroupAttrList[];
}
export interface AttrGroupAttrList {
/**
* 规格id
*/
attrid: number;
/**
* 规格名称
*/
attrName: string;
/**
* 规格图片
*/
picurl: string;
}
/**
* 商品库信息
*/
export interface GoodsWarehouse {
/**
* 成本价
*/
costPrice: string;
/**
* 封面图
*/
coverPic: string;
/**
* 关联的卡密id
*/
ecardid: string;
/**
* 关键词
*/
keyword: string;
/**
* 商品名称
*/
name: string;
/**
* 原价
*/
originalPrice: string;
/**
* 轮播图
*/
picurl: string;
/**
* 副标题
*/
subtitle: string;
/**
* 商品类型
*/
type: Type;
/**
* 单位
*/
unit: string;
/**
* 视频
*/
videourl: string;
}
/**
* 商品类型
*/
export type Type = "goods" | "ecard" | "form-goods";
export interface MallGoods {
/**
* 是否面议商品
*/
isNegotiable: number;
/**
* 是否展示在快速购买
*/
isQuickShop: number;
/**
* 是否热销
*/
isSellWell: number;
}
示例代码
{
"code": 0,
"list": [
{
"date": "string",
"goods": [
{
"id": "string",
"goods_warehouse_id": "string",
"status": 0,
"price": "string",
"use_attr": "string",
"attr_groups": [
{
"attr_group_name": "string",
"attr_list": [
{
"attr_name": "string",
"pic_url": "string",
"attr_id": 0
}
],
"attr_group_id": 0
}
],
"attr_style": 1,
"goods_stock": "string",
"sign": "string",
"attr": [
{
"id": "string",
"stock": "string",
"price": "string",
"no": "string",
"weight": "string",
"pic_url": "string",
"bar_code": "string",
"cost_price": "string",
"attr_list": [
{
"attr_group_name": "string",
"attr_name": "string"
}
]
}
],
"goodsWarehouse": {
"name": "string",
"subtitle": "string",
"keyword": "string",
"original_price": "string",
"cost_price": "string",
"cover_pic": "string",
"pic_url": "string",
"video_url": "string",
"unit": "string",
"type": "goods",
"ecard_id": "string"
},
"mallGoods": {
"is_quick_shop": 0,
"is_sell_well": 0,
"is_negotiable": 0
},
"cover_pic": "string",
"goods_num": 0,
"is_negotiable": 0
}
]
}
],
"page": 0,
"pageCount": 0,
"pageSize": 0,
"count": 0
}