个人部分后端接口文档参考

/示例接口/登录接口

暂无描述

接口状态

开发中

接口URL

http://localhost:8888/data/user_login

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
id star Text 账号
password 1234567 Text 密码

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/用户注册接口

暂无描述

接口状态

开发中

接口URL

http://localhost:8888/data/user_reg

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
id startrr Text 账号
password 123456 Text 密码
username 北北 Text 昵称

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/请求商品数据

暂无描述

接口状态

开发中

接口URL

http://192.168.1.104:8888/data/get_products

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
username beibei Text 昵称

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/测试服务器

暂无描述

接口状态

开发中

接口URL

http://localhost:8888/data/usereg

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
id startrr Text 1111
password 123456 Text 密码
username 北北 Text 用户名

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/ 添加商品

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/abc

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
title 野生的309090 Text 商品标题
ptitle 刚抓的的3050 Text 商品副标题
messges 哈都工具都挂艾叶高端位于 Text 商品介绍
label 数码 Text 商品分类
shop_show 1 Text 商品热度
shop_id beibei Text 所属店铺
price 2499 Text 价格

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/获取购物车

暂无描述

接口状态

开发中

接口URL

http://localhost:8888/data/get_shopcar

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
id startrr Text 账号这个参数必有!

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/购物车加减

暂无描述

接口状态

开发中

接口URL

http://localhost:8888/data/shopcar_update

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
user_id startrr Text 用户id
goods_id 754e01d4-eb28-4752-9723-92942eba60ab Text 商品id
attribute 0 Text 参数0/1,减少和增加/当商品减到0时自动删除商品

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/购物车移除商品

暂无描述

接口状态

开发中

接口URL

http://localhost:8888/data/move_shopcar

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
user_id startrr Text 用户id
goods_id 754e01d4-eb28-4752-9723-92942eba60ab Text 商品id

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/添加到购物车

暂无描述

接口状态

开发中

接口URL

http://localhost:8888/data/add_shopcar

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
user_id startrr Text 用户id
goods_id 754e01d4-eb28-4752-9723-92942eba60ab Text 商品id
quantity 1 Text 添加数量

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/新建接口

暂无描述

接口状态

开发中

接口URL

未填写

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
123 123 Text -

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/创建商品订单

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/Create_order

请求方式

POST

Content-Type

urlencoded

请求Body参数

参数名 示例值 参数类型 是否必填 参数描述
user_id startrr Text 用户id
goods_id 754e01d4-eb28-4752-9723-92942eba60ab Text 商品id
shop_id beibei Text 店铺id,用于双重认证

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

/获取指定用户的订单

接口状态

开发中

接口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 密码用于双重验证

预执行脚本

暂无预执行脚本

后执行脚本

暂无后执行脚本

猜你喜欢

转载自blog.csdn.net/weixin_50112395/article/details/126841629