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
58561313
Commit
58561313
authored
Oct 10, 2024
by
hj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新提交
parent
d45725ec
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
152 additions
and
5 deletions
+152
-5
server/app/Http/Controllers/Swagger/Responses/Rhawn/InvoiceOrderList.php
.../Controllers/Swagger/Responses/Rhawn/InvoiceOrderList.php
+101
-0
server/app/Http/Controllers/V1/Rhawn/InvoiceController.php
server/app/Http/Controllers/V1/Rhawn/InvoiceController.php
+49
-3
server/routes/api/rhawn.php
server/routes/api/rhawn.php
+2
-2
No files found.
server/app/Http/Controllers/Swagger/Responses/Rhawn/InvoiceOrderList.php
0 → 100644
View file @
58561313
<?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
;
}
server/app/Http/Controllers/V1/Rhawn/InvoiceController.php
View file @
58561313
...
@@ -38,10 +38,10 @@ class InvoiceController extends Controller
...
@@ -38,10 +38,10 @@ class InvoiceController extends Controller
/**
/**
* @Post(
* @Post(
* path="/openapi/rhawn/invoice/get
InvoiceSorder
Items",
* path="/openapi/rhawn/invoice/get
SorderInvoice
Items",
* tags={"罗恩 - 发票相关接口"},
* tags={"罗恩 - 发票相关接口"},
* summary="发票
订单列表
数据",
* summary="发票
项详情
数据",
* description="发票
订单列表
",
* description="发票
项详情数据
",
* @RequestBody(
* @RequestBody(
* @MediaType(
* @MediaType(
* mediaType="application/json",
* mediaType="application/json",
...
@@ -102,6 +102,52 @@ class InvoiceController extends Controller
...
@@ -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
)
public
function
getInvoiceListByOrderNumber
(
Request
$request
)
{
{
$customerCode
=
$request
->
get
(
'customer_code'
);
$customerCode
=
$request
->
get
(
'customer_code'
);
...
...
server/routes/api/rhawn.php
View file @
58561313
...
@@ -29,8 +29,8 @@ $api->version('v1', function($api) {
...
@@ -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
->
group
([
'namespace'
=>
'App\Http\Controllers\V1\Rhawn'
,
'middleware'
=>
[
'maintenance'
,
'throttle:60,1'
,
'apiAuth'
,
'requestlogs'
],
'providers'
=>
'jwt'
],
function
(
$api
)
{
$api
->
post
(
'/openapi/rhawn/invoice/get
InvoiceSorder
Items'
,
[
'permission'
=>
'orders.getInvoiceSorderItems'
,
'uses'
=>
'InvoiceController@getInvoiceSorderItems'
]);
$api
->
post
(
'/openapi/rhawn/invoice/get
SorderInvoice
Items'
,
[
'permission'
=>
'orders.getInvoiceSorderItems'
,
'uses'
=>
'InvoiceController@getInvoiceSorderItems'
]);
$api
->
post
(
'/openapi/rhawn/invoice/get
OrderInvoiceListByOrderNumber
'
,
[
'permission'
=>
'orders.getOrderInvoiceListByOrderNumber'
,
'uses'
=>
'InvoiceController@getInvoiceListByOrderNumber'
]);
$api
->
post
(
'/openapi/rhawn/invoice/get
SorderInvoiceList
'
,
[
'permission'
=>
'orders.getOrderInvoiceListByOrderNumber'
,
'uses'
=>
'InvoiceController@getInvoiceListByOrderNumber'
]);
});
});
// 百化接口
// 百化接口
...
...
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