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
9ca798d2
Commit
9ca798d2
authored
Oct 10, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openapi 1.1
parent
bd65e4af
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
450 additions
and
1 deletion
+450
-1
server/app/Http/Controllers/Swagger/Responses/Rhawn/OrdersDetail.php
...Http/Controllers/Swagger/Responses/Rhawn/OrdersDetail.php
+330
-0
server/app/Http/Controllers/Swagger/Responses/Rhawn/Properties/OrdersDetailProperty.php
...agger/Responses/Rhawn/Properties/OrdersDetailProperty.php
+119
-0
server/app/Http/Controllers/V1/Rhawn/OrdersController.php
server/app/Http/Controllers/V1/Rhawn/OrdersController.php
+1
-1
No files found.
server/app/Http/Controllers/Swagger/Responses/Rhawn/OrdersDetail.php
0 → 100644
View file @
9ca798d2
<?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
OrdersDetail
extends
JsonResponse
{
/**
* @Property(
* type="integer",
* description="soId"
* )
*
* @var string
*/
public
$soId
;
/**
* @Property(
* type="string",
* description="订单编号"
* )
*
* @var string
*/
public
$soNo
;
/**
* @Property(
* type="number",
* description="订单金额"
* )
*
* @var string
*/
public
$soTotal
;
/**
* @Property(
* type="integer",
* description="订单审核状态"
* )
*
* @var string
*/
public
$soReviewStatus
;
/**
* @Property(
* type="integer",
* description="订单支付状态"
* )
*
* @var string
*/
public
$soPayStatus
;
/**
* @Property(
* type="string",
* description="收货人"
* )
*
* @var string
*/
public
$soCaName
;
/**
* @Property(
* type="integer",
* description="收货人手机"
* )
*
* @var string
*/
public
$soCaMobile
;
/**
* @Property(
* type="integer",
* description="收货人电话"
* )
*
* @var string
*/
public
$soCaPhone
;
/**
* @Property(
* type="string",
* description="收货地省份"
* )
*
* @var string
*/
public
$soCaProvince
;
/**
* @Property(
* type="string",
* description="收货地城市"
* )
*
* @var string
*/
public
$soCaCity
;
/**
* @Property(
* type="string",
* description="收货地区县"
* )
*
* @var string
*/
public
$soCaCounty
;
/**
* @Property(
* type="string",
* description="收货地街道"
* )
*
* @var string
*/
public
$soCaStreet
;
/**
* @Property(
* type="string",
* description="收票人"
* )
*
* @var string
*/
public
$soCiaName
;
/**
* @Property(
* type="integer",
* description="收票人手机"
* )
*
* @var string
*/
public
$soCiaMobile
;
/**
* @Property(
* type="integer",
* description="收票人电话"
* )
*
* @var string
*/
public
$soCiaPhone
;
/**
* @Property(
* type="string",
* description="收票地省份"
* )
*
* @var string
*/
public
$soCiaProvince
;
/**
* @Property(
* type="string",
* description="收票地城市"
* )
*
* @var string
*/
public
$soCiaCity
;
/**
* @Property(
* type="string",
* description="收票地区县"
* )
*
* @var string
*/
public
$soCiaCounty
;
/**
* @Property(
* type="string",
* description="收票地街道"
* )
*
* @var string
*/
public
$soCiaStreet
;
/**
* @Property(
* type="integer",
* description="开票方式"
* )
*
* @var string
*/
public
$soCiMethod
;
/**
* @Property(
* type="integer",
* description="开票类型"
* )
*
* @var string
*/
public
$soCiType
;
/**
* @Property(
* type="string",
* description="开票抬头"
* )
*
* @var string
*/
public
$soCiTitle
;
/**
* @Property(
* type="string",
* description="开户行"
* )
*
* @var string
*/
public
$soCiBank
;
/**
* @Property(
* type="string",
* description="开户行账号"
* )
*
* @var string
*/
public
$soCiBknum
;
/**
* @Property(
* type="string",
* description="注册地"
* )
*
* @var string
*/
public
$soCiAddr
;
/**
* @Property(
* type="integer",
* description="注册电话"
* )
*
* @var string
*/
public
$soCiPhone
;
/**
* @Property(
* type="string",
* description="纳税人识别号"
* )
*
* @var string
*/
public
$soCiVatno
;
/**
* @Property(
* type="string",
* description="订单备注"
* )
*
* @var string
*/
public
$soNote
;
/**
* @Property(
* type="integer",
* description="下单时间"
* )
*
* @var string
*/
public
$soCtime
;
/**
* @Property(
* type="array",
* @Items(ref="#/components/schemas/OrdersDetailProperty")
* )
*
* @var array
*/
public
$items
=
[];
}
server/app/Http/Controllers/Swagger/Responses/Rhawn/Properties/OrdersDetailProperty.php
0 → 100644
View file @
9ca798d2
<?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\Properties
;
use
Illuminate\Http\JsonResponse
;
use
OpenApi\Annotations\Schema
;
use
OpenApi\Annotations\Property
;
/**
* @Schema(
* title="订单详情项内容",
* description="订单详情项内容"
* )
*
* @package App\Http\Responses
*/
class
OrdersDetailProperty
{
/**
* @Property(
* type="number",
* description="产品原价"
* )
*
* @var string
*/
public
$siPrice
;
/**
* @Property(
* type="integer",
* description="产品id"
* )
*
* @var string
*/
public
$pId
;
/**
* @Property(
* type="number",
* description="折扣价"
* )
*
* @var string
*/
public
$siDiscount
;
/**
* @Property(
* type="integer",
* description="购买数量"
* )
*
* @var string
*/
public
$siNum
;
/**
* @Property(
* type="number",
* description="小计"
* )
*
* @var string
*/
public
$siAmount
;
/**
* @Property(
* type="string",
* description="产品编号"
* )
*
* @var string
*/
public
$pCode
;
/**
* @Property(
* type="string",
* description="产品中文名称"
* )
*
* @var string
*/
public
$pCnName
;
/**
* @Property(
* type="string",
* description=""
* )
*
* @var string
*/
public
$pLevel
;
/**
* @Property(
* type="string",
* description="cas号"
* )
*
* @var string
*/
public
$cCas
;
}
server/app/Http/Controllers/V1/Rhawn/OrdersController.php
View file @
9ca798d2
...
...
@@ -187,7 +187,7 @@ class OrdersController extends Controller
* @Schema(ref="#/components/schemas/ApiResponse"),
* @Schema(
* type="object",
* @Property(property="data", ref="#/components/schemas/Orders
List
")
* @Property(property="data", ref="#/components/schemas/Orders
Detail
")
* )
* }
* )
...
...
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