Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
4324ba6d
Commit
4324ba6d
authored
Oct 27, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
百化接口
parent
8a56b2eb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
114 additions
and
8 deletions
+114
-8
server/app/Http/Controllers/Swagger/Responses/Bhua/BrandsList.php
...pp/Http/Controllers/Swagger/Responses/Bhua/BrandsList.php
+59
-0
server/app/Http/Controllers/Swagger/Responses/Bhua/Properties/BrandsDetailProperty.php
...wagger/Responses/Bhua/Properties/BrandsDetailProperty.php
+47
-0
server/app/Http/Controllers/V1/Bhua/ProductsController.php
server/app/Http/Controllers/V1/Bhua/ProductsController.php
+1
-1
server/app/Http/Controllers/V1/Rhawn/OrdersController.php
server/app/Http/Controllers/V1/Rhawn/OrdersController.php
+4
-4
server/app/Http/Controllers/V1/Rhawn/ProductsController.php
server/app/Http/Controllers/V1/Rhawn/ProductsController.php
+3
-3
No files found.
server/app/Http/Controllers/Swagger/Responses/Bhua/BrandsList.php
0 → 100644
View file @
4324ba6d
<?php
/*
* This file is part of the Jiannei/lumen-api-starter.
*
* (c) Jiannei <longjian.huang@foxmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace
App\Http\Controllers\Swagger\Responses\Rhawn
;
use
Illuminate\Http\JsonResponse
;
use
OpenApi\Annotations\Schema
;
use
OpenApi\Annotations\Property
;
use
OpenApi\Annotations\Items
;
/**
* @Schema(
* title="订单列表响应内容",
* description="订单列表响应内容"
* )
*
* @package App\Http\Responses
*/
class
BrandsList
extends
JsonResponse
{
/**
* @Property(
* type="integer",
* description="总页数"
* )
*
* @var integer
*/
public
$totalPage
;
/**
* @Property(
* type="integer",
* description="当前页数"
* )
*
* @var integer
*/
public
$pageNo
;
/**
* @Property(
* type="array",
* @Items(ref="#/components/schemas/BrandsProperty")
* )
*
* @var array
*/
public
$list
=
[];
}
server/app/Http/Controllers/Swagger/Responses/Bhua/Properties/BrandsDetailProperty.php
0 → 100644
View file @
4324ba6d
<?php
namespace
App\Http\Controllers\Swagger\Responses\Rhawn\Properties
;
use
OpenApi\Annotations\Schema
;
use
OpenApi\Annotations\Property
;
/**
* @Schema(
* title="产品详情内容",
* description="产品详情内容"
* )
*/
class
BrandsDetailProperty
{
/**
* @Property(
* type="integer",
* description="品牌id"
* )
*
* @var string
*/
public
$bId
;
/**
* @Property(
* type="string",
* description="品牌中文名称"
* )
*
* @var string
*/
public
$bCnName
;
/**
* @Property(
* type="string",
* description="品牌英文名称"
* )
*
* @var string
*/
public
$bEnName
;
}
server/app/Http/Controllers/V1/Bhua/ProductsController.php
View file @
4324ba6d
...
...
@@ -63,7 +63,7 @@ class ProductsController extends Controller
* @Schema(ref="#/components/schemas/ApiResponse"),
* @Schema(
* type="object",
* @Property(property="data", ref="#/components/schemas/
OrdersDetail
")
* @Property(property="data", ref="#/components/schemas/
BrandsList
")
* )
* }
* )
...
...
server/app/Http/Controllers/V1/Rhawn/OrdersController.php
View file @
4324ba6d
...
...
@@ -37,7 +37,7 @@ class OrdersController extends Controller
/**
* @Post(
* path="/openapi/orders/getRhawnOrders",
* path="/openapi/
rhawn/
orders/getRhawnOrders",
* tags={"罗恩 - 订单相关接口"},
* summary="用户订单列表数据",
* description="订单列表",
...
...
@@ -105,7 +105,7 @@ class OrdersController extends Controller
/**
* @Post(
* path="/openapi/orders/getRhawnOrderDetail",
* path="/openapi/
rhawn/
orders/getRhawnOrderDetail",
* tags={"罗恩 - 订单相关接口"},
* summary="用户订单详情数据",
* description="订单详情",
...
...
@@ -172,7 +172,7 @@ class OrdersController extends Controller
/**
*
* @Post(
* path="/openapi/orders/createRhawnOrders",
* path="/openapi/
rhawn/
orders/createRhawnOrders",
* tags={"罗恩 - 订单相关接口"},
* summary="生成用户新订单",
* description="生成新订单",
...
...
@@ -295,7 +295,7 @@ class OrdersController extends Controller
/**
* @Post(
* path="/openapi/orders/getOrdersDispatch",
* path="/openapi/
rhawn/
orders/getOrdersDispatch",
* tags={"罗恩 - 订单相关接口"},
* summary="订单的配货单信息",
* description="配货单信息",
...
...
server/app/Http/Controllers/V1/Rhawn/ProductsController.php
View file @
4324ba6d
...
...
@@ -28,7 +28,7 @@ class ProductsController extends Controller
/**
* @Post(
* path="/openapi/products/getAllProducts",
* path="/openapi/
rhawn/
products/getAllProducts",
* tags={"罗恩 - 产品相关接口"},
* summary="获取所有产品列表数据集",
* description="产品列表",
...
...
@@ -95,7 +95,7 @@ class ProductsController extends Controller
/**
* @Post(
* path="/openapi/products/getProductDetail",
* path="/openapi/
rhawn/
products/getProductDetail",
* tags={"罗恩 - 产品相关接口"},
* summary="获取产品详情数据集",
* description="产品详情",
...
...
@@ -160,7 +160,7 @@ class ProductsController extends Controller
/**
* @Post(
* path="/openapi/products/getProductByCas",
* path="/openapi/
rhawn/
products/getProductByCas",
* tags={"罗恩 - 产品相关接口"},
* summary="根据cas号获取产品详情数据集",
* description="产品详情",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment