Commit 4324ba6d authored by hangjun83's avatar hangjun83

百化接口

parent 8a56b2eb
<?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 = [];
}
<?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;
}
...@@ -63,7 +63,7 @@ class ProductsController extends Controller ...@@ -63,7 +63,7 @@ class ProductsController extends Controller
* @Schema(ref="#/components/schemas/ApiResponse"), * @Schema(ref="#/components/schemas/ApiResponse"),
* @Schema( * @Schema(
* type="object", * type="object",
* @Property(property="data", ref="#/components/schemas/OrdersDetail") * @Property(property="data", ref="#/components/schemas/BrandsList")
* ) * )
* } * }
* ) * )
......
...@@ -37,7 +37,7 @@ class OrdersController extends Controller ...@@ -37,7 +37,7 @@ class OrdersController extends Controller
/** /**
* @Post( * @Post(
* path="/openapi/orders/getRhawnOrders", * path="/openapi/rhawn/orders/getRhawnOrders",
* tags={"罗恩 - 订单相关接口"}, * tags={"罗恩 - 订单相关接口"},
* summary="用户订单列表数据", * summary="用户订单列表数据",
* description="订单列表", * description="订单列表",
...@@ -105,7 +105,7 @@ class OrdersController extends Controller ...@@ -105,7 +105,7 @@ class OrdersController extends Controller
/** /**
* @Post( * @Post(
* path="/openapi/orders/getRhawnOrderDetail", * path="/openapi/rhawn/orders/getRhawnOrderDetail",
* tags={"罗恩 - 订单相关接口"}, * tags={"罗恩 - 订单相关接口"},
* summary="用户订单详情数据", * summary="用户订单详情数据",
* description="订单详情", * description="订单详情",
...@@ -172,7 +172,7 @@ class OrdersController extends Controller ...@@ -172,7 +172,7 @@ class OrdersController extends Controller
/** /**
* *
* @Post( * @Post(
* path="/openapi/orders/createRhawnOrders", * path="/openapi/rhawn/orders/createRhawnOrders",
* tags={"罗恩 - 订单相关接口"}, * tags={"罗恩 - 订单相关接口"},
* summary="生成用户新订单", * summary="生成用户新订单",
* description="生成新订单", * description="生成新订单",
...@@ -295,7 +295,7 @@ class OrdersController extends Controller ...@@ -295,7 +295,7 @@ class OrdersController extends Controller
/** /**
* @Post( * @Post(
* path="/openapi/orders/getOrdersDispatch", * path="/openapi/rhawn/orders/getOrdersDispatch",
* tags={"罗恩 - 订单相关接口"}, * tags={"罗恩 - 订单相关接口"},
* summary="订单的配货单信息", * summary="订单的配货单信息",
* description="配货单信息", * description="配货单信息",
......
...@@ -28,7 +28,7 @@ class ProductsController extends Controller ...@@ -28,7 +28,7 @@ class ProductsController extends Controller
/** /**
* @Post( * @Post(
* path="/openapi/products/getAllProducts", * path="/openapi/rhawn/products/getAllProducts",
* tags={"罗恩 - 产品相关接口"}, * tags={"罗恩 - 产品相关接口"},
* summary="获取所有产品列表数据集", * summary="获取所有产品列表数据集",
* description="产品列表", * description="产品列表",
...@@ -95,7 +95,7 @@ class ProductsController extends Controller ...@@ -95,7 +95,7 @@ class ProductsController extends Controller
/** /**
* @Post( * @Post(
* path="/openapi/products/getProductDetail", * path="/openapi/rhawn/products/getProductDetail",
* tags={"罗恩 - 产品相关接口"}, * tags={"罗恩 - 产品相关接口"},
* summary="获取产品详情数据集", * summary="获取产品详情数据集",
* description="产品详情", * description="产品详情",
...@@ -160,7 +160,7 @@ class ProductsController extends Controller ...@@ -160,7 +160,7 @@ class ProductsController extends Controller
/** /**
* @Post( * @Post(
* path="/openapi/products/getProductByCas", * path="/openapi/rhawn/products/getProductByCas",
* tags={"罗恩 - 产品相关接口"}, * tags={"罗恩 - 产品相关接口"},
* summary="根据cas号获取产品详情数据集", * summary="根据cas号获取产品详情数据集",
* description="产品详情", * description="产品详情",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment