Commit 58561313 authored by hj's avatar hj

更新提交

parent d45725ec
<?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 InvoiceOrderList extends JsonResponse
{
/**
* @Property(
* type="string",
* description="发票号"
* )
*
* @var string
*/
public $soiNo;
/**
* @Property(
* type="string",
* description="发票抬头"
* )
*
* @var string
*/
public $soiTitle;
/**
* @Property(
* type="number",
* description="不含税金额"
* )
*
* @var string
*/
public $soiAmount;
/**
* @Property(
* type="number",
* description="稅额"
* )
*
* @var string
*/
public $soiTax;
/**
* @Property(
* type="number",
* description="价税合计"
* )
*
* @var string
*/
public $soiTotal;
/**
* @Property(
* type="string",
* description="开票日期"
* )
*
* @var string
*/
public $soiDate;
/**
* @Property(
* type="string",
* description="登记日期"
* )
*
* @var string
*/
public $soiCtime;
}
......@@ -38,10 +38,10 @@ class InvoiceController extends Controller
/**
* @Post(
* path="/openapi/rhawn/invoice/getInvoiceSorderItems",
* path="/openapi/rhawn/invoice/getSorderInvoiceItems",
* tags={"罗恩 - 发票相关接口"},
* summary="发票订单列表数据",
* description="发票订单列表",
* summary="发票项详情数据",
* description="发票项详情数据",
* @RequestBody(
* @MediaType(
* mediaType="application/json",
......@@ -102,6 +102,52 @@ class InvoiceController extends Controller
}
}
/**
* @Post(
* path="/openapi/rhawn/invoice/getSorderInvoiceList",
* tags={"罗恩 - 发票相关接口"},
* summary="订单发票列表数据",
* description="订单发票列表数据",
* @RequestBody(
* @MediaType(
* mediaType="application/json",
* @Schema(
* required={"orderNumber"},
* @Property(property="orderNumber", @Schema(type="string"),description="返回数据集数量"),
* example={"orderNumber" : 0999899011}
* ),
* )
* ),
* @OA\Parameter(
* description="用户获取的token值",
* in="header",
* name="authorization",
* required=true,
* @OA\Schema(type="string"),
* @OA\Examples(example="authorization", value="bearerNWJiNDhkNzlmNjg0N2FlMmZiYjliZWM3NGVkNzIyMjNleUpsZUhCcGNtVWlPakUyTmpRMk1EazJORGNzSW1oaGMyZ2lPaUl5ZEhsc1JIQlhkWFpNUVdaWGJVRllJbjA9",summary=""),
* ),
* @AnnotationResponse(
* response="200",
* description="正常操作响应",
* @MediaType(
* mediaType="application/json",
* @Schema(
* allOf={
* @Schema(ref="#/components/schemas/ApiResponse"),
* @Schema(
* type="object",
* @Property(property="data", ref="#/components/schemas/InvoiceOrderList")
* )
* }
* )
* )
* ),
* security={
* {"bearer_token":{}}
* }
* )
*/
public function getInvoiceListByOrderNumber(Request $request)
{
$customerCode = $request->get('customer_code');
......
......@@ -29,8 +29,8 @@ $api->version('v1', function($api) {
});
$api->group(['namespace'=>'App\Http\Controllers\V1\Rhawn','middleware' => ['maintenance','throttle:60,1','apiAuth','requestlogs'], 'providers' => 'jwt'], function($api) {
$api->post('/openapi/rhawn/invoice/getInvoiceSorderItems', ['permission' => 'orders.getInvoiceSorderItems', 'uses'=>'InvoiceController@getInvoiceSorderItems']);
$api->post('/openapi/rhawn/invoice/getOrderInvoiceListByOrderNumber', ['permission' => 'orders.getOrderInvoiceListByOrderNumber', 'uses'=>'InvoiceController@getInvoiceListByOrderNumber']);
$api->post('/openapi/rhawn/invoice/getSorderInvoiceItems', ['permission' => 'orders.getInvoiceSorderItems', 'uses'=>'InvoiceController@getInvoiceSorderItems']);
$api->post('/openapi/rhawn/invoice/getSorderInvoiceList', ['permission' => 'orders.getOrderInvoiceListByOrderNumber', 'uses'=>'InvoiceController@getInvoiceListByOrderNumber']);
});
// 百化接口
......
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