CRMEB_标准版后台

基础接口

登录页面图片数据

基本信息

Path: /adminapi/login/info

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ slide string [] 非必须

item 类型: string

├─ 非必须
├─ logo_square string 非必须
├─ logo_rectangle string 非必须
├─ login_logo string 非必须

验证码

基本信息

Path: /adminapi/captcha_pro

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息

管理员登录

基本信息

Path: /adminapi/login

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
account text admin 用户名
pwd text 123456 密码
imgcode text abcd 图片验证码

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ token string 非必须
├─ expires_time number 非必须
├─ menus object [] 非必须

item 类型: object

├─ path string 必须
├─ title string 必须
├─ icon string 必须
├─ header string 必须
├─ is_header number 必须
├─ children object [] 必须

item 类型: object

├─ path string 必须
├─ title string 必须
├─ icon string 必须
├─ header string 必须
├─ is_header number 必须
├─ auth string [] 必须

item 类型: string

├─ 非必须
├─ children object [] 必须

item 类型: object

├─ path string 必须
├─ title string 必须
├─ icon string 必须
├─ header string 必须
├─ is_header number 必须
├─ auth string [] 必须

item 类型: string

├─ 非必须
├─ children object [] 必须

item 类型: object

├─ path string 必须
├─ title string 必须
├─ icon string 必须
├─ header string 必须
├─ is_header number 必须
├─ auth string [] 非必须

item 类型: string

├─ 非必须
├─ unique_auth string [] 非必须

item 类型: string

├─ 非必须
├─ user_info object 非必须
├─ id number 非必须
├─ account string 非必须
├─ head_pic string 非必须
├─ logo string 非必须
├─ logo_square string 非必须
├─ version string 非必须
├─ newOrderAudioLink string 非必须

管理员退出

基本信息

Path: /adminapi/setting/admin/logout

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

下载文件

基本信息

Path: /adminapi/download

Method: GET

接口描述:

请求参数

主页

获取logo

基本信息

Path: /adminapi/logo

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ logo string 非必须
├─ logo_square string 非必须
├─ site_name string 非必须

获取采单列表

基本信息

Path: /adminapi/menusList

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object [] 非必须

item 类型: object

├─ id number 必须
├─ pid number 必须
├─ menu_name string 必须
├─ menu_path string 必须
├─ unique_auth string 必须
├─ sort number 必须
├─ type number 必须
├─ html string 必须

消息提醒

基本信息

Path: /adminapi/jnotice

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object [] 非必须

item 类型: object

├─ icon string 必须
├─ iconColor string 必须
├─ title string 必须
├─ url string 必须
├─ type string 必须
├─ read number 必须
├─ time number 必须

首页头部

基本信息

Path: /adminapi/home/header

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ info object [] 非必须

item 类型: object

├─ today number 必须
├─ yesterday number 必须
├─ today_ratio number,string 必须
├─ week number 必须
├─ last_week number 必须
├─ week_ratio number,string 必须
├─ total string 必须
├─ date string 必须
├─ title string 必须
├─ total_name string 必须

首页订单图表

基本信息

Path: /adminapi/home/order

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
cycle thirtyday 周期 thirtyday-30天 week-周 month-月 year-年

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ yAxis object 非必须
├─ maxnum number 非必须
├─ maxprice string 非必须
├─ legend string [] 非必须

item 类型: string

├─ 非必须
├─ xAxis string [] 非必须

item 类型: string

├─ 非必须
├─ series object [] 非必须

item 类型: object

├─ name string 必须
├─ type string 必须
├─ itemStyle object 必须
├─ normal object 非必须
├─ color object 非必须
├─ x number 非必须
├─ y number 非必须
├─ x2 number 非必须
├─ y2 number 非必须
├─ colorStops object [] 非必须

item 类型: object

├─ offset number 必须
├─ color string 必须
├─ data number [] 必须

item 类型: number

├─ 非必须
├─ yAxisIndex number 必须
├─ pre_cycle object 非必须
├─ count object 非必须
├─ data number 非必须
├─ price object 非必须
├─ data number 非必须
├─ cycle object 非必须
├─ count object 非必须
├─ data number 非必须
├─ percent number 非必须
├─ is_plus number 非必须
├─ price object 非必须
├─ data string 非必须
├─ percent number 非必须
├─ is_plus number 非必须

首页用户图表

基本信息

Path: /adminapi/home/user

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ legend string [] 非必须

item 类型: string

├─ 非必须
├─ yAxis object 非必须
├─ maxnum number 非必须
├─ xAxis string [] 非必须

item 类型: string

├─ 非必须
├─ series number [] 非必须

item 类型: number

├─ 非必须
├─ bing_xdata string [] 非必须

item 类型: string

├─ 非必须
├─ bing_data object [] 非必须

item 类型: object

├─ name string 必须
├─ value number 必须
├─ itemStyle object 必须
├─ color string 非必须

首页商品交易额排行

基本信息

Path: /adminapi/home/rank

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ list object [] 非必须

item 类型: object

├─ product_id number 必须
├─ store_name string,null 必须
├─ val string 必须

获取菜单数据

基本信息

Path: /adminapi/menus

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
is_show 1 是否显示
keyword 财务 搜索关键词

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ menus object [] 非必须

item 类型: object

├─ path string 必须
├─ title string 必须
├─ icon string 必须
├─ header string 必须
├─ is_header number 必须
├─ children object [] 必须

item 类型: object

├─ path string 必须
├─ title string 必须
├─ icon string 必须
├─ header string 必须
├─ is_header number 必须
├─ auth string [] 必须

item 类型: string

├─ 非必须
├─ children object [] 必须

item 类型: object

├─ path string 必须
├─ title string 必须
├─ icon string 必须
├─ header string 必须
├─ is_header number 必须
├─ auth string [] 必须

item 类型: string

├─ 非必须
├─ children object [] 非必须

item 类型: object

├─ path string 必须
├─ title string 必须
├─ icon string 必须
├─ header string 必须
├─ is_header number 必须
├─ auth string [] 非必须

item 类型: string

├─ 非必须
├─ unique_auth string [] 非必须

item 类型: string

├─ 非必须

商品->商品管理

删除商品草稿

基本信息

Path: /adminapi/product/cache

Method: DELETE

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 非必须
status number 非必须

获取商品表单头

基本信息

Path: /adminapi/product/product/type_header

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ list object [] 非必须

item 类型: object

├─ type number 必须
├─ name string 必须
├─ count number 必须

商品列表

基本信息

Path: /adminapi/product/product

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
page 1
limit 20
cate_id 分类id 默认传0
type 1 type值 1-6 数字
store_name 搜索词
sales asc 销量排序asc desc 默认:normal

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ list object [] 非必须

item 类型: object

├─ id number 必须
├─ mer_id number 必须
├─ image string 必须
├─ recommend_image string 必须
├─ slider_image string [] 必须

item 类型: string

├─ 非必须
├─ store_name string 必须
├─ store_info string 必须
├─ keyword string 必须
├─ bar_code string 必须
├─ cate_id string 必须
├─ price string 必须
├─ vip_price string 必须
├─ ot_price string 必须
├─ postage string 必须
├─ unit_name string 必须
├─ sort number 必须
├─ sales number 必须
├─ stock string 必须
├─ is_show number 必须
├─ is_hot number 必须
├─ is_benefit number 必须
├─ is_best number 必须
├─ is_new number 必须
├─ add_time number 必须
├─ is_postage number 必须
├─ is_del number 必须
├─ mer_use number 必须
├─ give_integral string 必须
├─ cost string 必须
├─ is_seckill number 必须
├─ is_bargain null 必须
├─ is_good number 必须
├─ is_sub number 必须
├─ is_vip number 必须
├─ ficti number 必须
├─ browse number 必须
├─ code_path string 必须
├─ soure_link string 必须
├─ video_link string 必须
├─ temp_id number 必须
├─ spec_type number 必须
├─ activity string 必须
├─ spu string 必须
├─ label_id string 必须
├─ command_word string 必须
├─ collect number 必须
├─ likes number 必须
├─ visitor number 必须
├─ cate_name string 必须
├─ stock_attr boolean 必须
├─ count number 非必须

商品导出

基本信息

Path: /adminapi/export/storeProduct

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
page 1 页数
limit 20 每页条数
cate_id 分类id
type type值 1-6 数字
store_name 商铺名称

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data string [] 非必须

item 类型: string

├─ 非必须 导出文件地址

保存新增或编辑

基本信息

Path: /adminapi/product/product/:id

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 1 商品id 新增时为0

Body

参数名称 参数类型 是否必须 示例 备注
cate_id text 分类ID 数组
store_name text 商品名称
store_info text 商品简介
keyword text 关键字
unit_name text 单位
bar_code text 产品码
image text 主产品
slider_image text 多图 数组
postage text 邮费
ot_price text 市场价
price text 价格
sort text 排序
stock text 库存
sales text 销量
ficti text 虚拟销量
give_integral text 获得积分
is_show text 是否上架
cost text 成本价
is_hot text 是否热卖
is_benefit text 是否优惠
is_best text 是否精品
is_new text 是否新品
mer_use text 商户是否代理
is_postage text 是否包邮
is_good text 是否优品推荐
spec_type text 规格类型
items text 属性值
attrs text 规则
coupon_ids text [] 关联优惠券id
label_id text [] 关联标签id
command_word text 商品复制口令

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

获取规则属性模板

基本信息

Path: /adminapi/product/product/get_rule

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object [] 非必须

item 类型: object

├─ rule_name string 必须 属性模板名称
├─ rule_value object [] 必须 属性模板值

item 类型: object

├─ value string 必须 属性名称
├─ detail string [] 必须 属性值

item 类型: string

├─ 非必须

获取运费模板

基本信息

Path: /adminapi/product/product/get_template

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object [] 非必须

item 类型: object

├─ id number 必须
├─ name string 必须

获取上传密钥

基本信息

Path: /adminapi/product/product/get_temp_keys

Method: GET

接口描述:

请求参数

检测活动存在

基本信息

Path: /adminapi/product/product/check_activity/:id

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
id 1 商品ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息

商品采集

基本信息

Path: /adminapi/product/copy

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
url text https://item.jd.com/100009722461.html?extension_id=eyJhZCI6IjE3NTUiLCJjaCI6IjIiLCJza3UiOiIxMDAwMDk3MjI0NjEiLCJ0cyI6IjE2MDk5MDEwNzkiLCJ1bmlxaWQiOiJ7XCJjbGlja19pZFwiOlwiNWNjYTNmMTAtNWI5YS00ODAzLTk5MjYtMjZiMjMxYzZiZGNlXCIsXCJtYXRlcmlhbF9pZFwiOlwiMzA5NjI2Nzg1NVwiLFwicG9zX2lkXCI6XCIxNzU1XCIsXCJzaWRcIjpcImZkOWY0ODA2LWNhYmYtNDhjMC1iZGU3LTVkNTIwOTc3ODg2ZFwifSJ9&jd_pop=5cca3f10-5b9a-4803-9926-26b231c6bdce&abt=0

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ info object 非必须
├─ cate_id string 非必须
├─ store_name string 非必须
├─ store_info string 非必须
├─ unit_name string 非必须
├─ price string 非必须
├─ keyword string 非必须
├─ ficti number 非必须
├─ ot_price string 非必须
├─ give_integral number 非必须
├─ postage number 非必须
├─ cost number 非必须
├─ image string 非必须
├─ slider_image string [] 非必须

item 类型: string

├─ 非必须
├─ video_link string 非必须
├─ add_time number 非必须
├─ stock number 非必须
├─ description string 非必须
├─ description_images string [] 非必须

item 类型: string

├─ 非必须
├─ soure_link string 非必须
├─ temp_id string 非必须
├─ items object [] 非必须

item 类型: object

├─ value string 必须
├─ detail string [] 必须

item 类型: string

├─ 非必须
├─ attrs string [] 非必须

item 类型: string

├─ 非必须
├─ info object 非必须
├─ attr object [] 非必须

item 类型: object

├─ value string 必须
├─ detail string [] 必须

item 类型: string

├─ 非必须
├─ value object [] 非必须

item 类型: object

├─ value1 string 必须
├─ value2 string 必须
├─ detail object 必须
├─ 尺寸 string 非必须
├─ 版本 string 非必须
├─ pic string 必须
├─ price number 必须
├─ cost number 必须
├─ ot_price number 必须
├─ stock number 必须
├─ bar_code string 必须
├─ weight number 必须
├─ volume number 必须
├─ brokerage number 必须
├─ brokerage_two number 必须
├─ header object [] 非必须

item 类型: object

├─ title string 必须
├─ align string 必须
├─ minWidth number 必须
├─ key string 必须
├─ slot string 必须

获取商品采集配置

基本信息

Path: /adminapi/product/copy_config

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ copy_type string 非必须
├─ copy_num number 非必须

商品采集保存

基本信息

Path: /adminapi/product/crawl/save

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
cate_id text 分类id
store_name text 产品名称
store_info text 产品简介
keyword text 产品关键字
unit_name text 单位
image text 产品主图
slider_image text 产品轮播图
price text 售价
ot_price text 市场价
give_integral text 赠送积分
postage text 邮费
ficti text 虚拟销量
stock text 库存
cost text 成本价
description_images text [] 详情图片
description text 详情内容
is_show text 状态 0-下架 1-上架
soure_link text 原链接
temp_id text 运费模版
spec_type text 0 单、多规格
items text [] 规格
attrs text [] 规格详情

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须

设置商品批量下架

基本信息

Path: /adminapi/product/product/product_unshow

Method: PUT

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Query

参数名称 是否必须 示例 备注
ids [] 选择商品ids

Body

参数名称 参数类型 是否必须 示例 备注
all text 0 0:单页1:所有加入队列
where text 条件

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 必须
msg string 必须

获取退出是未保存数据

基本信息

Path: /adminapi/product/cache

Method: GET

接口描述:

请求参数

1分钟保存一次数据

基本信息

Path: /adminapi/product/cache

Method: POST

接口描述:

请求参数

获取商品分类cascader列表

基本信息

Path: /adminapi/product/category/cascader_list/:type

Method: GET

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
authori-zation

路径参数

参数名称 示例 备注
type 1 非必填

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object [] 非必须

item 类型: object

├─ value number 必须
├─ label string 必须
├─ pid number 必须
├─ children object [] 必须

item 类型: object

├─ value number 必须
├─ label string 必须
├─ pid number 必须

选择商品列表

基本信息

Path: /adminapi/product/product/list

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
page 1
limit 20
cate_id
store_name

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须
data object 非必须
├─ count string 非必须
├─ list object [] 非必须

item 类型: object

├─ id number 非必须
├─ mer_id number 非必须 商户Id
├─ image string 非必须 产品图片
├─ slider_image string [] 非必须 轮播图

item 类型: string

├─ 非必须
├─ store_name string 非必须 商品名称
├─ store_info string 非必须 商品简介
├─ keyword string 非必须 关键词
├─ cate_id string [] 非必须 分类

item 类型: string

├─ 非必须
├─ price string 非必须 价格
├─ vip_price string 非必须 会员价格
├─ ot_price string 非必须 市场价
├─ postage string 非必须 邮费
├─ unit_name string 非必须 单位名
├─ sort number 非必须 排序
├─ sales number 非必须 销量
├─ stock number 非必须 库存
├─ is_show number 非必须 是否显示
├─ is_hot number 非必须 是否热卖
├─ is_benefit number 非必须 是否优惠
├─ is_best number 非必须 是否精品
├─ is_new number 非必须 是否新品
├─ description string 非必须 产品描述
├─ add_time number 非必须 添加时间
├─ is_postage number 非必须 是否包邮
├─ is_del number 非必须 是否删除
├─ mer_use number 非必须 商户是否代理
├─ give_integral string 非必须 获得积分
├─ cost string 非必须 成本价
├─ is_seckill number 非必须 秒杀状态
├─ is_bargain number 非必须 砍价状态
├─ ficti number 非必须 虚拟销量
├─ browse number 非必须 浏览量
├─ code_path string 非必须 浏览量
├─ soure_link null 非必须 淘宝京东1688类型
├─ bar_code string 非必须 产品条码
├─ is_good number 非必须 虚拟销量
├─ cate_name string 非必须 分类名称
├─ attrs object [] 必须

item 类型: object

├─ product_id string 必须 商品ID
├─ suk string 必须 规格名称
├─ stock string 必须 库存
├─ sales string 必须 销量
├─ price string 必须 价格
├─ image string 必须 图片
├─ unique string 必须 唯一值
├─ cost string 必须 成本价
├─ bar_code string 必须 规格编码
├─ ot_price string 必须 原价
├─ weight string 必须 重量
├─ volume string 必须 体积
├─ brokerage string 必须 一级返佣
├─ brokerage_two string 必须 二级返佣
├─ type string 必须 类型
├─ quota string 必须 限量
├─ quota_show string 必须 限量显示

商品详情

基本信息

Path: /adminapi/product/product/:id

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
id 1 商品id

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ tempList object [] 非必须

item 类型: object

├─ id number 必须
├─ name string 必须
├─ cateList object [] 非必须

item 类型: object

├─ value number 必须
├─ label string 必须
├─ disabled number 必须
├─ productInfo object 非必须
├─ id number 非必须
├─ mer_id number 非必须
├─ image string 非必须
├─ recommend_image string 非必须
├─ slider_image string [] 非必须

item 类型: string

├─ 非必须
├─ store_name string 非必须
├─ store_info string 非必须
├─ keyword string 非必须
├─ bar_code string 非必须
├─ cate_id string [] 非必须

item 类型: string

├─ 非必须
├─ price string 非必须
├─ vip_price string 非必须
├─ ot_price string 非必须
├─ postage string 非必须
├─ unit_name string 非必须
├─ sort number 非必须
├─ sales number 非必须
├─ stock number 非必须
├─ is_show number 非必须
├─ is_hot number 非必须
├─ is_benefit number 非必须
├─ is_best number 非必须
├─ is_new number 非必须
├─ add_time number 非必须
├─ is_postage number 非必须
├─ is_del number 非必须
├─ mer_use number 非必须
├─ give_integral number 非必须
├─ cost string 非必须
├─ is_seckill number 非必须
├─ is_bargain null 非必须
├─ is_good number 非必须
├─ is_sub number [] 非必须

item 类型: number

├─ 非必须
├─ is_vip number 非必须
├─ ficti number 非必须
├─ browse number 非必须
├─ code_path string 非必须
├─ soure_link string 非必须
├─ video_link string 非必须
├─ temp_id number 非必须
├─ spec_type number 非必须
├─ activity string [] 非必须

item 类型: string

├─ 非必须
├─ spu string 非必须
├─ label_id string [] 非必须

item 类型: string

├─ 非必须
├─ command_word string 非必须
├─ coupons string [] 非必须

item 类型: string

├─ 非必须
├─ description string 非必须
├─ items string [] 非必须

item 类型: string

├─ 非必须
├─ attrs string [] 非必须

item 类型: string

├─ 非必须
├─ attr object 非必须
├─ pic string 非必须
├─ vip_price number 非必须
├─ price number 非必须
├─ cost number 非必须
├─ ot_price number 非必须
├─ stock number 非必须
├─ bar_code string 非必须
├─ weight number 非必须
├─ volume number 非必须
├─ brokerage number 非必须
├─ brokerage_two number 非必须

商品上下架操作

基本信息

Path: /adminapi/product/product/set_show/:id/:is_show

Method: PUT

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 商品id
is_show 1上架 0 下架

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

商品加入/移除回收站

基本信息

Path: /adminapi/product/product/:id

Method: DELETE

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 商品id参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

商品快速编辑

基本信息

Path: /adminapi/product/product/set_product/:id

Method: PUT

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 1 商品id

Body

参数名称 参数类型 是否必须 示例 备注
field text 字段 ficti-虚拟销量 stock-库存 sort-排序
value text 字段值

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须

设置产品批量上架

基本信息

Path: /adminapi/product/product/product_show

Method: PUT

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
ids text [] 选中的商品id
all text 0 0:单页1:所有加入队列
where text 条件

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

生成属性

基本信息

Path: /adminapi/product/generate_attr/:id

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 0 商品id 新增时为0

Body

参数名称 参数类型 是否必须 示例 备注
attrs text

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须
data object 非必须
├─ info object 非必须
├─ attr string [] 非必须 属性值

item 类型: string

├─ 非必须
├─ value string [] 非必须 属性表单

item 类型: string

├─ 非必须
├─ header string [] 非必须 属性表头

item 类型: string

├─ 非必须

获取京东、淘宝商品数据(已废弃)

基本信息

Path: /adminapi/product/crawl

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
link text 商品链接

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ info object 非必须
├─ cate_id string 非必须 分类id
├─ store_name string 非必须 产品名称
├─ store_info string 非必须 产品简介
├─ unit_name string 非必须 单位
├─ price string 非必须 产品售价
├─ keyword string 非必须 产品关键字
├─ ficti string 非必须 虚拟销量
├─ ot_price string 非必须 产品市场价
├─ give_integral string 非必须 赠送积分
├─ postage string 非必须 邮费
├─ cost string 非必须 产品成本价
├─ image string 非必须 产品主图片
├─ slider_image string [] 非必须 产品轮播图

item 类型: string

├─ 非必须
├─ add_time string 非必须 添加时间
├─ stock string 非必须 库存
├─ description string 非必须 详情内容
├─ soure_link string 非必须 原始链接
├─ description_images string [] 非必须 详情图片

item 类型: string

├─ 非必须

获取商品详情描述

基本信息

Path: /adminapi/goods/get_goods_field/:id

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
id 商品id

返回数据

名称 类型 是否必须 默认值 备注 其他信息

商品属性详情

基本信息

Path: /adminapi/product/attr/:id

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
id

商品->商品分类

分类列表

基本信息

Path: /adminapi/product/category

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
page 1
limit 20
is_show 1 是否显示 1-显示 0-不显示
pid 0 父级id
cate_name 产品名称

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ list object [] 非必须

item 类型: object

├─ id number 必须
├─ pid number 必须
├─ cate_name string 必须
├─ sort number 必须
├─ pic string 必须
├─ is_show number 必须
├─ add_time string 必须
├─ big_pic string 必须
├─ children object [] 必须

item 类型: object

├─ id number 必须
├─ pid number 必须
├─ cate_name string 必须
├─ sort number 必须
├─ pic string 必须
├─ is_show number 必须
├─ add_time string 必须
├─ big_pic string 必须
├─ count number 非必须

树形列表

基本信息

Path: /adminapi/product/category/tree/:type

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
type 1 0-仅顶级分类 1-所有分类

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ id string 非必须
├─ cate_name string 非必须 分类名称
├─ html string 非必须

新增表单

基本信息

Path: /adminapi/product/category/create

Method: GET

接口描述:

请求参数

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须
data object 非必须
├─ rules object [] 非必须

item 类型: object

├─ type string 非必须
├─ field string 非必须
├─ title string 非必须
├─ value string 非必须
├─ props object 非必须
├─ multiple boolean 非必须
├─ placeholder string 非必须
├─ filterable boolean 非必须
├─ options object [] 非必须

item 类型: object

├─ label string 非必须
├─ value string 非必须
├─ validate object 非必须
├─ col object 非必须
├─ title string 非必须
├─ action string 非必须
├─ method string 非必须

分类添加

基本信息

Path: /adminapi/product/category

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
cate_name text 分类名称
pid text 分类id
sort text 排序
pic text 图片
is_show text 1 是否显示

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

编辑表单

基本信息

Path: /adminapi/product/category/:id/edit

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
id 1 分类id

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须
data object 非必须
├─ rules object [] 非必须

item 类型: object

├─ type string 非必须
├─ field string 非必须
├─ title string 非必须
├─ value string 非必须
├─ props object 非必须
├─ multiple boolean 非必须
├─ placeholder string 非必须
├─ filterable boolean 非必须
├─ options object [] 非必须

item 类型: object

├─ label string 非必须
├─ value string 非必须
├─ validate object 非必须
├─ col object 非必须
├─ title string 非必须
├─ action string 非必须
├─ method string 非必须

分类编辑

基本信息

Path: /adminapi/product/category/:id

Method: PUT

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id

Body

参数名称 参数类型 是否必须 示例 备注
pid text 父级id
cate_name text 分类名称
pic text [] 图标
sort text 排序
is_show text 1 状态 1-开启 2-关闭

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

分类删除

基本信息

Path: /adminapi/product/category/:id

Method: DELETE

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 分类id

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

修改状态

基本信息

Path: /adminapi/product/category/set_show/:id/:is_show

Method: PUT

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 1 分类id
is_show 1 状态 1-开启 0-关闭

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

快捷编辑

基本信息

Path: /adminapi/product/category/set_category/:id

Method: PUT

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 1 分类id

Body

参数名称 参数类型 是否必须 示例 备注
field text cate_name 编辑的字段
value text 字段的值

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

商品->商品规格

保存新建或编辑

基本信息

Path: /adminapi/product/product/rule/:id

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 1 规则id

Body

参数名称 参数类型 是否必须 示例 备注
rule_name text 规则名称
spec text [{value: “123”, detail: [“12”, “123”, “1234”]}, {value: “234”, detail: [“23”, “234”, “345”]}] 规则值

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须

列表

基本信息

Path: /adminapi/product/product/rule

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
page 1
limit 15
rule_name 规则名称搜索

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ list object [] 非必须

item 类型: object

├─ id number 非必须
├─ rule_name string 非必须
├─ rule_value string 非必须
├─ attr_name string 非必须
├─ attr_value string [] 非必须

item 类型: string

├─ 非必须
├─ count number 非必须

删除

基本信息

Path: /adminapi/product/product/rule/delete

Method: DELETE

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
ids text 1,2,3 规则id id拼接的字符串
all text 0 0:单页1:所有加入队列执行
where text 条件

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须

规则详情

基本信息

Path: /adminapi/product/product/rule/:id

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
id 1 规则id

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ info object 非必须
├─ id number 非必须
├─ rule_name string 非必须
├─ rule_value string 非必须
├─ spec object [] 非必须

item 类型: object

├─ value string 必须
├─ detail string [] 必须

item 类型: string

├─ 非必须

商品->商品评论

商品评论列表

基本信息

Path: /adminapi/product/reply

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
page 1
limit 20
account 评论用户名
is_reply 是否回复
store_name 产品名称
data 时间选择
product_id 指定商品评论 (默认)0-表示所有商品评论

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ count number 非必须
├─ list object [] 非必须

item 类型: object

├─ id number 非必须
├─ product_id number 非必须 产品id
├─ account string 非必须 用户名名称
├─ image string 非必须 商品图片
├─ store_name string 非必须 商品名称
├─ comment string 非必须 评论内容
├─ pics string 非必须 评论图片
├─ add_time number 非必须 添加时间
├─ merchant_reply_content null 非必须 回复内容
├─ score string 非必须 评分
├─ create_time string 非必须 添加时间转换后
├─ time string 非必须 表示时间间隔

mock: 3分钟前

删除评论

基本信息

Path: /adminapi/product/reply/:id

Method: DELETE

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 1 评论id

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

回复评论

基本信息

Path: /adminapi/product/reply/set_reply/:id

Method: PUT

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

路径参数

参数名称 示例 备注
id 1 回复id

Body

参数名称 参数类型 是否必须 示例 备注
content text 回复内容

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须
msg string 非必须

虚拟评论表单

基本信息

Path: /adminapi/product/reply/fictitious_reply/:product_id

Method: GET

接口描述:

请求参数

路径参数

参数名称 示例 备注
product_id 0 默认为0在选择商品

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ rules object [] 非必须

item 类型: object

├─ type string 必须
├─ field string 必须
├─ value array,string 必须
├─ title string 必须
├─ props object 必须
├─ type string 非必须
├─ maxLength number 非必须
├─ title string 非必须
├─ src string 非必须
├─ icon string 非必须
├─ width string 非必须
├─ height string 非必须
├─ srcKey string 非必须
├─ placeholder string 非必须
├─ allowHalf boolean 非必须
├─ closeBtn boolean 非必须
├─ okBtn boolean 非必须
├─ editable boolean 非必须
├─ col object 非必须
├─ span number 非必须
├─ title string 非必须
├─ action string 非必须
├─ method string 非必须
├─ info string 非必须
├─ status boolean 非必须

添加虚拟评论

基本信息

Path: /adminapi/product/reply/save_fictitious_reply

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
product_id text 商品ID
nickname text 用户昵称
avatar text 用户头像
comment text 评论内容
pics text 评论图片,数组
product_score text 商品分数
service_score text 服务分数
add_time text 2020-12-30 评论时间:为空默认当前时间

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status string 非必须 状态
msg string 非必须 内容

订单->订单管理

批量删除订单

基本信息

Path: /adminapi/order/dels

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Query

参数名称 是否必须 示例 备注
ids

Body

参数名称 参数类型 是否必须 示例 备注
ids text [1,2,3,4,5,6,7] 订单id合集

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须

订单类型数据

基本信息

Path: /adminapi/order/chart

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
data 时间
type 1:普通订单2:拼团3:秒杀4:砍价

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ all string 非必须
├─ general string 非必须
├─ pink string 非必须
├─ seckill string 非必须
├─ bargain string 非必须
├─ statusAll string 非必须
├─ unpaid string 非必须
├─ unshipped string 非必须
├─ untake string 非必须
├─ write_off string 非必须
├─ write_offed string 非必须
├─ unevaluate string 非必须
├─ complete string 非必须
├─ refunding string 非必须
├─ refund string 非必须
├─ del string 非必须

订单列表

基本信息

Path: /adminapi/order/list

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
status ‘’ 和 8 =全部,0=未支付,1=已支付,2待收货,3=待评价,4=交易完成,5=待核销,-1=退款中,-2=已退款,-3=包含-1和-2,-4=已删除 订单状态
real_name wx157119520452732527 订单号或者用户名或者用户uid或者电话
is_del 1 或 0 是否是删除的订单
data today,week,month,year,yesterday,quarter,lately7,lately30,自定义 时间查询
pay_type 1=微信支付,2=余额支付,3=线下支付 支付类型
order a.id-desc,a.id-asc,a.order_id-desc,a.add_time-desc 排序
page 1 页码
limit 10 展示条数
type ‘’ = 全部,1=普通订单,2=拼团订单,3=秒杀订单,4=砍价订单 订单类型
field_key uid order_id real_name user_phone title 精准查询字段

返回数据

名称 类型 是否必须 默认值 备注 其他信息
status number 非必须
msg string 非必须
data object 非必须
├─ data object [] 非必须

item 类型: object

├─ id number 必须
├─ order_id string 必须
├─ trade_no string 必须
├─ uid number 必须
├─ real_name string 必须
├─ user_phone string 必须
├─ user_address string 必须
├─ cart_id string [] 必须

item 类型: string

├─ 非必须
├─ freight_price string 必须
├─ total_num number 必须
├─ total_price string 必须
├─ total_postage string 必须
├─ pay_price string 必须
├─ pay_postage string 必须
├─ deduction_price string 必须
├─ coupon_id number 必须
├─ coupon_price string 必须
├─ paid number 必须
├─ pay_time number 必须
├─ pay_type string 必须
├─ add_time string 必须
├─ status number 必须
├─ refund_status number 必须
├─ refund_reason_wap_img null,string 必须
├─ refund_reason_wap_explain null,string 必须
├─ refund_reason_time null,number 必须
├─ refund_reason_wap null,string 必须
├─ refund_reason null 必须
├─ refund_price string 必须
├─ delivery_name null,string 必须
├─ delivery_code string 必须
├─ delivery_type null,string 必须
├─ delivery_id null,string 必须
├─ fictitious_content string 必须
├─ delivery_uid number 必须
├─ gain_integral string 必须
├─ use_integral string 必须
├─ back_integral null 必须
├─ mark string 必须
├─ is_del number 必须
├─ unique string 必须
├─ remark null,string 必须
├─ mer_id number 必须
├─ is_mer_check number 必须
├─ combination_id number 必须
├─ pink_id number 必须
├─ cost string 必须
├─ seckill_id number 必须
├─ bargain_id number 必须
├─ verify_code string 必须
├─ store_id number 必须
├─ shipping_type number 必须
├─ clerk_id <

最新v4.2版本CRMEB商城API接口文档标准版后台(一)相关推荐

  1. 最新v4.2版本CRMEB商城API接口文档标准版前台(二)

    CRMEB_标准版前台 crmeb api 基础接口 apple登陆 基本信息 Path: /api/apple_login Method: POST 接口描述: 请求参数 Headers 参数名称 ...

  2. 首页DIY数据 crmeb开发api接口文档

    首页DIY数据 基本信息 Path: /api/v2/diy/get_diy/:name Method: GET 接口描述: 请求参数 路径参数 参数名称 示例 备注 name moren 模版名称 ...

  3. 智表ZCELL产品V1.4.0开发API接口文档 与 产品功能清单

    为了方便大家使用ZCELL,应网友要求,整理编写了相关文档,现与产品一起同步发布,供大家下载使用,使用过程中如有疑问,请与我QQ联系. 智表(ZCELL)V1.4.0版本  功能清单文档下载地址: 功 ...

  4. api服务器开发语言,【API编写】介绍一个国内强大的API接口文档写作网站showdoc - 最好的编程语言 - 博客园...

    这几天要写一个接口API文档,经理给我发过来一个,说要弄一个这样的接口文档,我一看,这可麻烦呀,有大纲有详细,我以为要用div+css去一个页面一个页面做呢,这工作量可不小,网站一搜索,竟然有可以直接 ...

  5. php怎么根据接口文档实现功能,CodeIgniter+swagger实现 PHP API接口文档自动生成功能...

    一.安装swagger 1.首先需要有composer,没有的自行百度安装 2.下载swagger,打开网站https://packagist.org/packages/zircote/swagger ...

  6. android api接口文档,API 接口文档

    API 接口文档 接口类说明 本文档所有接口所涉及的相关类及说明如下: 接口 说明 GsManager SDK 功能接口类,用于调用个数相关功能 GsConfig SDK 配置接口类,用于设置个数相关 ...

  7. Api 接口文档是什么?如何直接使用 ApiDoc 生成接口文档

    api接口文档 现代化开发大部分都是一种前后端分离的开发模式,前端与后端分别独立进行开发.等后续再去统一的联调.前后端分离的开发模式下,前后端沟通的成本增加,如何减少口头的交流成了关键.这时有一份高端 ...

  8. Laravel使用swagger PHP生成api接口文档

    Laravel使用swagger PHP生成api接口文档 Swagger集接口文档和测试于一体,就类比将postman和showdoc的结合体 首先要先安装基于laravel5的swagger包 地 ...

  9. Swagger3 API接口文档规范课程(Java1234)(内含教学视频+源代码)

    Swagger3 API接口文档规范课程(Java1234)(内含教学视频+源代码) 教学视频+源代码下载链接地址:https://download.csdn.net/download/weixin_ ...

最新文章

  1. BBED修复DB启动问题
  2. linux下c语言俄罗斯方块,Centos 6.2下的C语言编写俄罗斯方块游戏代码
  3. NET Core的代码安全分析工具 - Security Code Scan
  4. H5+Mui文件配置 vue-resource基本使用方法
  5. SAP云平台上的Business Partner业务合作伙伴和账户主数据服务
  6. python关闭文件的函数_python打开与关闭文档
  7. ViewPager之使用PagerTabStrip添加标题栏,实现滑动效果
  8. 数据科学 IPython 笔记本 7.4 Pandas 对象介绍
  9. 湖南科技大学计算机学院宿舍,湖南科技大学计算机科学与工程学院
  10. 计算机vf等级,全国计算机等级考试二级考试大纲(VF语言版)
  11. html 自适应 音乐播放器,mmPlayer:一款基于Vue的自适应Web在线音乐播放器
  12. c语言试题及答案解析,C语言期末考试题(卷)(含答案解析).doc
  13. 8321平台修改WIFI_ONLY总结
  14. lammps 案例in文件汇总
  15. 2022年大厂招聘Java程序员的技术标准,你有什么看法?
  16. 主题模型TopicModel:Unigram、LSA、PLSA模型
  17. 常规的体检有哪些?要做什么准备?
  18. Linux编译时如何减小so库文件的大小
  19. Prometheus 普罗米修斯
  20. [AH2017/HNOI2017]影魔(主席树+单调栈)

热门文章

  1. JavaWeb-Day01
  2. 学科实践活动感悟50字_初中学科实践活动记录50字3篇
  3. .bat文件实现一个简单的http请求工具(支持get和post请求)
  4. Win10下adobe acrobat安装字体字体教程
  5. 轻松理解MySQL的MVCC机制
  6. 神经网络中“端到端”思想
  7. 【java】莱布尼兹公式求解pi值
  8. java token 有效期_Java编程——Token 认证的来龙去脉
  9. 【无标题】6. 青蛙与蚊子
  10. 用耳机浏览器无声音的解决方法