Commit aa28d083 authored by hangjun83's avatar hangjun83

发票相关接口

parent 31d47421
<?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 InvoiceOrderItemsList extends JsonResponse
{
/**
* @Property(
* type="string",
* description="订单编号"
* )
*
* @var string
*/
public $soNo;
/**
* @Property(
* type="number",
* description="发货数量"
* )
*
* @var string
*/
public $dpdNum;
/**
* @Property(
* type="number",
* description="金额"
* )
*
* @var string
*/
public $amount;
}
...@@ -70,7 +70,7 @@ class InvoiceController extends Controller ...@@ -70,7 +70,7 @@ class InvoiceController extends Controller
* @Schema(ref="#/components/schemas/ApiResponse"), * @Schema(ref="#/components/schemas/ApiResponse"),
* @Schema( * @Schema(
* type="object", * type="object",
* @Property(property="data", ref="#/components/schemas/invoiceOrderItemsList") * @Property(property="data", ref="#/components/schemas/InvoiceOrderItemsList")
* ) * )
* } * }
* ) * )
......
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