|
|
|
|
@ -35,6 +35,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-projects",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2 获取医院列表",
|
|
|
|
|
* description="获取医院列表",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -59,6 +60,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-care-product/{project_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-获取产品详情",
|
|
|
|
|
* description="获取产品详情",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -96,6 +98,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-project-orders-count/{project_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-获取医院订单数量角标",
|
|
|
|
|
* description="获取医院订单数量角标",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -121,6 +124,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-projcet-orders/{project_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-获取订单列表",
|
|
|
|
|
* description="获取订单列表",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -177,6 +181,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-order/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-获取订单详情",
|
|
|
|
|
* description="获取订单详情",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -221,6 +226,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-order-item/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-获取子订单详情",
|
|
|
|
|
* description="获取子订单详情",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -315,6 +321,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-project-areas/{project_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-获取医院病区",
|
|
|
|
|
* description="获取医院病区",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -343,6 +350,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-area-beds/{area_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-根据病区获取病床",
|
|
|
|
|
* description="根据病区获取病床",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -370,6 +378,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-available-paramedics",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-获取可用护工列表(已基本准确,需进一步打磨)",
|
|
|
|
|
* description="获取可用护工列表",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -393,6 +402,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/create-patient",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-创建被护理人",
|
|
|
|
|
* description="创建被护理人",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -421,6 +431,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/create-order",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-创建订单",
|
|
|
|
|
* description="创建订单",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -523,6 +534,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/update-order/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-订单修改(静态修改不影响当前所有子订单)",
|
|
|
|
|
* description="订单修改",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -561,12 +573,13 @@ class OrdersController extends CommonController
|
|
|
|
|
* ),
|
|
|
|
|
* @OA\Property(
|
|
|
|
|
* property="order.*",
|
|
|
|
|
* type="array",
|
|
|
|
|
* type="string",
|
|
|
|
|
* description="订单实体"
|
|
|
|
|
* ),
|
|
|
|
|
* @OA\Property(
|
|
|
|
|
* property="affected_orders",
|
|
|
|
|
* type="array",
|
|
|
|
|
* @OA\Items(),
|
|
|
|
|
* description="特别说明:影响到的订单,如果无此字段或数组为空表示未发生订单影响。影响到的订单实体数组,实体中的change字段(many_to_one或one_to_many)表示影响的方向"
|
|
|
|
|
* )
|
|
|
|
|
* )
|
|
|
|
|
@ -654,6 +667,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/update-order-items",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-子订单修改(覆盖单条修改)",
|
|
|
|
|
* description="子订单修改",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -797,6 +811,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/checkout-order-items/{order_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-中途结算(即只依次结算子订单,并不结束订单,只需余额刚好)",
|
|
|
|
|
* description="交互流程如下:初次请求带上just_check参数,将返回to_recharge_total值;如果to_recharge_total大于0表示需要充值,充值完成之后,去除just_check参数再次提交;如果to_recharge_total <= 0,直接去除just_check参数再次提交",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -971,6 +986,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/checkout-order/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-订单结算",
|
|
|
|
|
* description="交互流程如下:初次请求带上just_check参数,将返回to_recharge_total和to_refund_total值;仅在to_recharge_total和to_refund_total都为0的情况下才可以结算成功;如果to_recharge_total大于0表示需要充值,充值完成之后,剔除just_check参数再次提交;如果to_refund_total大于0表示需要退款,根据返回的退款方式操作后,剔除just_check参数再次提交",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -1205,6 +1221,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/scan-pay/{order_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-扫用户支付码收款",
|
|
|
|
|
* description="扫用户支付码收款",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -1271,6 +1288,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/assign-order/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-派单",
|
|
|
|
|
* description="派单",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -1295,13 +1313,13 @@ class OrdersController extends CommonController
|
|
|
|
|
* ),
|
|
|
|
|
* @OA\Property(
|
|
|
|
|
* property="order.*",
|
|
|
|
|
* type="array",
|
|
|
|
|
* type="string",
|
|
|
|
|
* description="订单实体"
|
|
|
|
|
* ),
|
|
|
|
|
* @OA\Property(
|
|
|
|
|
* property="affected_orders",
|
|
|
|
|
* type="array",
|
|
|
|
|
* @OA\items(),
|
|
|
|
|
* @OA\Items(),
|
|
|
|
|
* description="特别说明:影响到的订单,如果无此字段或数组为空表示未发生订单影响。影响到的订单实体数组,实体中的change字段(many_to_one或one_to_many)表示影响的方向"
|
|
|
|
|
* )
|
|
|
|
|
* )
|
|
|
|
|
@ -1342,6 +1360,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/cancel-order/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-取消订单",
|
|
|
|
|
* description="取消订单",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -1383,6 +1402,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/get-balance/{customer_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="获取用户余额",
|
|
|
|
|
* description="获取用户余额",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -1410,6 +1430,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/recharge-for-order/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-现金或pos刷卡充值",
|
|
|
|
|
* description="现金或pos刷卡充值",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -1489,6 +1510,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\POST(
|
|
|
|
|
* path="/manager/refund-for-order/{id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-退款",
|
|
|
|
|
* description="退款",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
@ -1568,6 +1590,7 @@ class OrdersController extends CommonController
|
|
|
|
|
/**
|
|
|
|
|
* @OA\Get(
|
|
|
|
|
* path="/manager/get-project-paramedic-levels/{project_id}",
|
|
|
|
|
* tags={"管理端订单处理"},
|
|
|
|
|
* summary="V2-获取医院护工等级",
|
|
|
|
|
* description="获取医院护工等级",
|
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
|
|