/example interface/login interface
暂无描述
interface status
In development
Interface URL
http://localhost:8888/data/user_login
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
id | star | Text | yes | account |
password | 1234567 | Text | yes | password |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/User registration interface
暂无描述
interface status
In development
Interface URL
http://localhost:8888/data/user_reg
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
id | startrr | Text | yes | account |
password | 123456 | Text | yes | password |
username | north north | Text | yes | Nick name |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/request product data
暂无描述
interface status
In development
Interface URL
http://192.168.1.104:8888/data/get_products
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
username | beibei | Text | yes | Nick name |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/test-server
暂无描述
interface status
In development
Interface URL
http://localhost:8888/data/usereg
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
id | startrr | Text | yes | 1111 |
password | 123456 | Text | yes | password |
username | north north | Text | yes | username |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/ Adding goods
javascript
// 封装的时间计算器
// 传参(时间数字,计算单位)
function GetTime(time, unit) {
if (unit == 1) {
var create_time = time * 30 * 1000 * 60;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
} else if (unit == 2) {
var create_time = time * 1000 * 60 * 60 * 24;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
}
}
// 后面是1就是分钟
// 30分钟
console.log(GetTime(30, 1));
// 后面如果为2就是天数
// 1天
console.log(GetTime(1, 2));
// 14天
console.log(GetTime(14, 2));
interface status
In development
Interface URL
http://localhost:8888/data/abc
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
title | Wild 309090 | Text | yes | product title |
ptitle | Just caught 3050 | Text | yes | Product subtitle |
messges | Hardu tools are hung with Aiye high-end located | Text | yes | Product desciption |
label | digital | Text | yes | Categories |
shop_show | 1 | Text | yes | Commodity popularity |
shop_id | beibei | Text | yes | Affiliated store |
price | 2499 | Text | yes | price |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/get cart
暂无描述
interface status
In development
Interface URL
http://localhost:8888/data/get_shopcar
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
id | startrr | Text | yes | The account parameter must be present! |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/shopping cart addition and subtraction
暂无描述
interface status
In development
Interface URL
http://localhost:8888/data/shopcar_update
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
user_id | startrr | Text | yes | user id |
goods_id | 754e01d4-eb28-4752-9723-92942eba60ab | Text | yes | commodity id |
attribute | 0 | Text | yes | Parameter 0/1, decrease and increase / automatically delete the item when the item is reduced to 0 |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/cart remove item
暂无描述
interface status
In development
Interface URL
http://localhost:8888/data/move_shopcar
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
user_id | startrr | Text | yes | user id |
goods_id | 754e01d4-eb28-4752-9723-92942eba60ab | Text | yes | commodity id |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/Add to Cart
暂无描述
interface status
In development
Interface URL
http://localhost:8888/data/add_shopcar
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
user_id | startrr | Text | yes | user id |
goods_id | 754e01d4-eb28-4752-9723-92942eba60ab | Text | yes | commodity id |
quantity | 1 | Text | yes | Add quantity |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/new interface
暂无描述
interface status
In development
Interface URL
unfilled
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
123 | 123 | Text | yes | - |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/Create item order
javascript
// 封装的时间计算器
// 传参(时间数字,计算单位)
function GetTime(time, unit) {
if (unit == 1) {
var create_time = time * 30 * 1000 * 60;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
} else if (unit == 2) {
var create_time = time * 1000 * 60 * 60 * 24;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
}
}
// 后面是1就是分钟
// 30分钟
console.log(GetTime(30, 1));
// 后面如果为2就是天数
// 1天
console.log(GetTime(1, 2));
// 14天
console.log(GetTime(14, 2));
interface status
In development
Interface URL
http://localhost:8888/data/Create_order
request method
POST
Content-Type
urlencoded
Request Body parameters
parameter name | example value | Parameter Type | Is it required? | Parameter Description |
---|---|---|---|---|
user_id | startrr | Text | yes | user id |
goods_id | 754e01d4-eb28-4752-9723-92942eba60ab | Text | yes | commodity id |
shop_id | beibei | Text | yes | Store id, used for two-factor authentication |
pre-execution script
暂无预执行脚本
After executing the script
暂无后执行脚本
/ Get the order of the specified user
interface status
In development
Interface URL
http://localhost:8888/data/Order_inquiry
请求方式
POST
Content-Type
urlencoded
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
user_id | startrr | Text | 是 | 用户id,主要是通过这个参数来找用户的订单 |
预执行脚本
暂无预执行脚本
后执行脚本
暂无后执行脚本
/删除指定的订单
javascript
// 封装的时间计算器
// 传参(时间数字,计算单位)
function GetTime(time, unit) {
if (unit == 1) {
var create_time = time * 30 * 1000 * 60;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
} else if (unit == 2) {
var create_time = time * 1000 * 60 * 60 * 24;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
}
}
// 后面是1就是分钟
// 30分钟
console.log(GetTime(30, 1));
// 后面如果为2就是天数
// 1天
console.log(GetTime(1, 2));
// 14天
console.log(GetTime(14, 2));
接口状态
开发中
接口URL
http://localhost:8888/data/Delete_order
请求方式
POST
Content-Type
urlencoded
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
user_id | startrr | Text | 是 | 用户id |
order_id | f6dc9c97-ca8c-4903-aebe-a10b5a4aff14 | Text | 是 | 订单号id配合上面的用户id来双重认证 |
预执行脚本
暂无预执行脚本
后执行脚本
暂无后执行脚本
/更新订单
javascript
// 封装的时间计算器
// 传参(时间数字,计算单位)
function GetTime(time, unit) {
if (unit == 1) {
var create_time = time * 30 * 1000 * 60;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
} else if (unit == 2) {
var create_time = time * 1000 * 60 * 60 * 24;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
}
}
// 后面是1就是分钟
// 30分钟
console.log(GetTime(30, 1));
// 后面如果为2就是天数
// 1天
console.log(GetTime(1, 2));
// 14天
console.log(GetTime(14, 2));
接口状态
开发中
接口URL
http://localhost:8888/data/Update_order
请求方式
POST
Content-Type
urlencoded
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
user_id | startrr | Text | 是 | 用户id,这个还是要的 |
order_id | 134e06e3-ad7b-450c-85ec-d4768580faae | Text | 是 | 订单号id配合上面的用户id来双重认证 |
id | 5 | Number | 是 | 这个参数必填重点验证0-5 |
预执行脚本
暂无预执行脚本
后执行脚本
暂无后执行脚本
/实现免登录模块
javascript
// 封装的时间计算器
// 传参(时间数字,计算单位)
function GetTime(time, unit) {
if (unit == 1) {
var create_time = time * 30 * 1000 * 60;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
} else if (unit == 2) {
var create_time = time * 1000 * 60 * 60 * 24;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
}
}
// 后面是1就是分钟
// 30分钟
console.log(GetTime(30, 1));
// 后面如果为2就是天数
// 1天
console.log(GetTime(1, 2));
// 14天
console.log(GetTime(14, 2));
接口状态
开发中
接口URL
http://localhost:8888/data/give_cookie
请求方式
POST
Content-Type
urlencoded
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
user_id | startrrr | Text | 是 | 用户id,这个还是要的 |
password | 1234567 | Text | 是 | 密码用于双重验证 |
预执行脚本
暂无预执行脚本
后执行脚本
暂无后执行脚本
/请求商家数据
接口状态
开发中
接口URL
http://localhost:8888/data/Get_merchants
请求方式
POST
Content-Type
urlencoded
预执行脚本
暂无预执行脚本
后执行脚本
暂无后执行脚本
/请求图片
接口状态
开发中
接口URL
http://localhost:8888/data/Get_avatar
请求方式
POST
Content-Type
urlencoded
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
id | startrr | Text | 是 | - |
attribute | headico | Text | 是 | - |
预执行脚本
暂无预执行脚本
后执行脚本
暂无后执行脚本
/上传文件
暂无描述
接口状态
开发中
接口URL
http://localhost:8888/update/img
请求方式
POST
Content-Type
form-data
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
id | fack | Text | 是 | 用户id |
property | headico | Text | 是 | 上传图片属性 |
pic | C:\Users\zhang\Desktop\1.jpg | Text | 是 | 上传的图片 |
预执行脚本
暂无预执行脚本
后执行脚本
暂无后执行脚本
成功响应示例
{
"code": 200,
"data": "headico/ab958b90-b710-4fd8-a3c0-2492ec97a3c4.jpg",
"status": 200,
"err_id": "01c91b38-5522-4d2c-941c-92e42e0a8bd9"
}
错误响应示例
{
"code": 201,
"data": "geigei你的东西太大了,弄疼我啦!",
"status": 200,
"err_id": "1e47078b-2ab8-4766-8978-f7e9c9efb6c3"
}
/登录
javascript
// 封装的时间计算器
// 传参(时间数字,计算单位)
function GetTime(time, unit) {
if (unit == 1) {
var create_time = time * 30 * 1000 * 60;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
} else if (unit == 2) {
var create_time = time * 1000 * 60 * 60 * 24;
var times = Date.parse(new Date());
var array = new Array();
times = parseInt(times);
array.create_time = times;
times += create_time;
array.end_time = times;
return array;
}
}
// 后面是1就是分钟
// 30分钟
console.log(GetTime(30, 1));
// 后面如果为2就是天数
// 1天
console.log(GetTime(1, 2));
// 14天
console.log(GetTime(14, 2));
接口状态
开发中
接口URL
http://localhost:8888/data//user_login
请求方式
POST
Content-Type
urlencoded
请求Body参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
user_id | startrrr | Text | 是 | 用户id,这个还是要的 |
password | 1234567 | Text | 是 | 密码用于双重验证 |
预执行脚本
暂无预执行脚本
后执行脚本
暂无后执行脚本