文档
测试

上传产品文件API接口

POST
http://api.erp.com/admin/?menuid=14318&id=0

接口描述

上传产品文件API接口

请求参数

参数名
类型
描述
必填
temp_file
file
待上传文件
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
message
string
示例:upload successfully
必填
data
object
数据字典
必填
sn
string
示例:sn3142100071597742525
必填
status
int
示例:1
必填
file_path
string
示例:/excel_temp/2020-08-18/202008180922053840.xlsm
必填
originalName
string
示例:CUKKE美国包.xlsm
必填
created_at
object
数据字典
必填
date
string
示例:2020-08-18 09:22:05.285700
必填
timezone_type
int
示例:3
必填
timezone
string
示例:UTC
必填
user_id
int
示例:10007
必填
store_id
int
示例:1018
必填
error_msg
string
示例:
必填

说明 / 示例

{ "code": 0, "message": "upload successfully", "data": { "sn": "sn3142100071597742525", "status": 1, "file_path": "/excel_temp/2020-08-18/202008180922053840.xlsm", "originalName": "CUKKE美国包.xlsm", "created_at": { "date": "2020-08-18 09:22:05.285700", "timezone_type": 3, "timezone": "UTC" }, "user_id": 10007, "store_id": 1018, "error_msg": "" } }