Browse Source

feat():订单页面

geek 4 years ago
parent
commit
91210b95df

+ 1 - 1
application/api/controller/Brand.php

@@ -15,7 +15,7 @@ use app\common\until\Until;
 class Brand extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Brand/index",
+     * @OA\Get(path="/api/Brand/index",
      *   tags={"品牌管理"},
      *   summary="品牌列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 1 - 1
application/api/controller/Company.php

@@ -17,7 +17,7 @@ use app\common\until\Until;
 class Company extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Company/index",
+     * @OA\Get(path="/api/Company/index",
      *   tags={"公司管理"},
      *   summary="公司列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 1 - 1
application/api/controller/Discuss.php

@@ -15,7 +15,7 @@ use app\common\until\Until;
 class Discuss extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Discuss/index",
+     * @OA\Get(path="/api/Discuss/index",
      *   tags={"评论管理"},
      *   summary="评论列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 1 - 1
application/api/controller/Group.php

@@ -14,7 +14,7 @@ use app\common\until\Until;
 class Group extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Group/index",
+     * @OA\Get(path="/api/Group/index",
      *   tags={"集团管理"},
      *   summary="集团列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 1 - 1
application/api/controller/Order.php

@@ -20,7 +20,7 @@ use think\Db;
 class Order extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Order/index",
+     * @OA\Get(path="/api/Order/index",
      *   tags={"订单管理"},
      *   summary="订单列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 1 - 1
application/api/controller/Pay.php

@@ -18,7 +18,7 @@ use app\common\until\Until;
 class Pay extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Pay/index",
+     * @OA\Get(path="/api/Pay/index",
      *   tags={"支付管理"},
      *   summary="支付配置列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 2 - 2
application/api/controller/Product.php

@@ -20,7 +20,7 @@ use think\Db;
 class Product extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Product/index",
+     * @OA\Get(path="/api/Product/index",
      *   tags={"产品管理"},
      *   summary="产品列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),
@@ -62,7 +62,7 @@ class Product extends BaseController {
     }
 
     /**
-     * @OA\Post(path="/api/Product/typeList",
+     * @OA\Get(path="/api/Product/typeList",
      *   tags={"产品管理"},
      *   summary="产品类型列表(暂时不用)",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 1 - 1
application/api/controller/Staff.php

@@ -16,7 +16,7 @@ use app\common\until\Until;
 class Staff extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Staff/index",
+     * @OA\Get(path="/api/Staff/index",
      *   tags={"职员管理"},
      *   summary="职员列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 1 - 1
application/api/controller/Store.php

@@ -17,7 +17,7 @@ use think\Db;
 class Store extends BaseController {
 
     /**
-     * @OA\Post(path="/api/Store/index",
+     * @OA\Get(path="/api/Store/index",
      *   tags={"门店管理"},
      *   summary="门店列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 2 - 2
application/api/controller/User.php

@@ -21,7 +21,7 @@ use think\facade\Session;
 class User extends BaseController {
 
     /**
-     * @OA\Post (path="/api/User",
+     * @OA\Get (path="/api/User",
      *   tags={"用户管理"},
      *   summary="用户列表",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),
@@ -138,7 +138,7 @@ class User extends BaseController {
     }
 
     /**
-     * @OA\Post(path="/api/User/read",
+     * @OA\Get(path="/api/User/read",
      *   tags={"用户管理"},
      *   summary="读取单个用户信息",
      *   @OA\Parameter(name="token", in="header", description="token", @OA\Schema(type="string")),

+ 12 - 12
public/api.yaml

@@ -245,7 +245,7 @@ paths:
         '200':
           description: 请求成功
   /api/Brand/index:
-    post:
+    get:
       tags:
         - 品牌管理
       summary: 品牌列表
@@ -380,7 +380,7 @@ paths:
         '200':
           description: 请求成功
   /api/Company/index:
-    post:
+    get:
       tags:
         - 公司管理
       summary: 公司列表
@@ -526,7 +526,7 @@ paths:
         '200':
           description: 请求成功
   /api/Discuss/index:
-    post:
+    get:
       tags:
         - 评论管理
       summary: 评论列表
@@ -635,7 +635,7 @@ paths:
         '200':
           description: 请求成功
   /api/Group/index:
-    post:
+    get:
       tags:
         - 集团管理
       summary: 集团列表
@@ -694,7 +694,7 @@ paths:
         '200':
           description: 请求成功
   /api/Order/index:
-    post:
+    get:
       tags:
         - 订单管理
       summary: 订单列表
@@ -1024,7 +1024,7 @@ paths:
         '200':
           description: 请求成功
   /api/Pay/index:
-    post:
+    get:
       tags:
         - 支付管理
       summary: 支付配置列表
@@ -1187,7 +1187,7 @@ paths:
         '200':
           description: 请求成功
   /api/Product/index:
-    post:
+    get:
       tags:
         - 产品管理
       summary: 产品列表
@@ -1243,7 +1243,7 @@ paths:
         '200':
           description: 请求成功
   /api/Product/typeList:
-    post:
+    get:
       tags:
         - 产品管理
       summary: 产品类型列表(暂时不用)
@@ -1391,7 +1391,7 @@ paths:
         '200':
           description: 请求成功
   /api/Staff/index:
-    post:
+    get:
       tags:
         - 职员管理
       summary: 职员列表
@@ -1549,7 +1549,7 @@ paths:
         '200':
           description: 请求成功
   /api/Store/index:
-    post:
+    get:
       tags:
         - 门店管理
       summary: 门店列表
@@ -1817,7 +1817,7 @@ paths:
         '200':
           description: 请求成功
   /api/User:
-    post:
+    get:
       tags:
         - 用户管理
       summary: 用户列表
@@ -1949,7 +1949,7 @@ paths:
         '200':
           description: 请求成功
   /api/User/read:
-    post:
+    get:
       tags:
         - 用户管理
       summary: 读取单个用户信息