ddd
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -5,15 +5,15 @@
|
||||
<meta name="description" content="Shop电商app后端接口">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="assets/bootstrap.min.css?v=1744814761090" rel="stylesheet" media="screen">
|
||||
<link href="assets/prism.css?v=1744814761090" rel="stylesheet" />
|
||||
<link href="assets/prism-toolbar.css?v=1744814761090" rel="stylesheet" />
|
||||
<link href="assets/prism-diff-highlight.css?v=1744814761090" rel="stylesheet" />
|
||||
<link href="assets/main.css?v=1744814761090" rel="stylesheet" media="screen, print">
|
||||
<link href="assets/favicon.ico?v=1744814761090" rel="icon" type="image/x-icon">
|
||||
<link href="assets/apple-touch-icon.png?v=1744814761090" rel="apple-touch-icon" sizes="180x180">
|
||||
<link href="assets/favicon-32x32.png?v=1744814761090" rel="icon" type="image/png" sizes="32x32">
|
||||
<link href="assets/favicon-16x16.png?v=1744814761090" rel="icon" type="image/png" sizes="16x16">
|
||||
<link href="assets/bootstrap.min.css?v=1744815138253" rel="stylesheet" media="screen">
|
||||
<link href="assets/prism.css?v=1744815138253" rel="stylesheet" />
|
||||
<link href="assets/prism-toolbar.css?v=1744815138253" rel="stylesheet" />
|
||||
<link href="assets/prism-diff-highlight.css?v=1744815138253" rel="stylesheet" />
|
||||
<link href="assets/main.css?v=1744815138253" rel="stylesheet" media="screen, print">
|
||||
<link href="assets/favicon.ico?v=1744815138253" rel="icon" type="image/x-icon">
|
||||
<link href="assets/apple-touch-icon.png?v=1744815138253" rel="apple-touch-icon" sizes="180x180">
|
||||
<link href="assets/favicon-32x32.png?v=1744815138253" rel="icon" type="image/png" sizes="32x32">
|
||||
<link href="assets/favicon-16x16.png?v=1744815138253" rel="icon" type="image/png" sizes="16x16">
|
||||
</head>
|
||||
|
||||
<body class="container-fluid">
|
||||
@@ -1042,6 +1042,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="assets/main.bundle.js?v=1744814761090"></script>
|
||||
<script src="assets/main.bundle.js?v=1744815138253"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,5 +1,42 @@
|
||||
const _ = require("../import");
|
||||
|
||||
|
||||
/**
|
||||
* @api {post} /type/titleList titleList
|
||||
* @apiDescription 获取分类页面,横向分类的标题 接口
|
||||
* @apiName titleList
|
||||
* @apiGroup type
|
||||
* @apiSuccessExample {json} 请求成功的返回:
|
||||
* {
|
||||
* "status" : 200,
|
||||
* "message" : "请求成功"
|
||||
* "result" : "asjXzXxmnSp8TZGWiTSlJF8Gb...5LhYoHs86SEI2LBXrTZ9e/a4frZOWHZ"
|
||||
* }
|
||||
* @apiErrorExample {json} 请求失败的返回
|
||||
* {
|
||||
* "status": 404,
|
||||
* "message" : "请求失败"
|
||||
* "result": null
|
||||
* }
|
||||
* @apiSampleRequest http://127.0.0.1:9090/type/titleList
|
||||
* @apiVersion 1.0.0
|
||||
*/
|
||||
_.router.post('/titleList', async function (req, res, next) {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '请求成功',
|
||||
result: [
|
||||
{ id: 1, title: '小米', content: []},
|
||||
{ id: 2, title: '魅族', content: [] },
|
||||
{ id: 3, title: '华为', content: [] },
|
||||
{ id: 4, title: 'iphone', content: [] },
|
||||
{ id: 5, title: '三星', content: [] },
|
||||
{ id: 6, title: '锤子', content: [] },
|
||||
{ id: 7, title: '诺基亚', content: [] },
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* @api {post} /type/list list
|
||||
* @apiDescription 分类页面获取分类商品的接口
|
||||
|
||||
@@ -25,7 +25,14 @@
|
||||
# }
|
||||
|
||||
|
||||
POST http://127.0.0.1:9090/home/hotSales HTTP/1.1
|
||||
# POST http://127.0.0.1:9090/home/hotSales HTTP/1.1
|
||||
# content-type: application/json
|
||||
# token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjEsInVzZXJuYW1lIjoiYm15MTIzNDU2IiwiaWF0IjoxNzQ0ODEyMzg0LCJleHAiOjE3NDQ4MjMxODR9.WcCQ9Viinnqg8jCp_qJgDh4FB3pss56xdT3EV0rgeLA
|
||||
|
||||
# {
|
||||
# }
|
||||
|
||||
POST http://127.0.0.1:9090/type/titleList HTTP/1.1
|
||||
content-type: application/json
|
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjEsInVzZXJuYW1lIjoiYm15MTIzNDU2IiwiaWF0IjoxNzQ0ODEyMzg0LCJleHAiOjE3NDQ4MjMxODR9.WcCQ9Viinnqg8jCp_qJgDh4FB3pss56xdT3EV0rgeLA
|
||||
|
||||
|
||||
Reference in New Issue
Block a user