liujiandao
2024-03-26 3aec7b6e9f10ed7ba52fb75536b31e203788d8bd
swag 提交
4个文件已修改
99 ■■■■■ 已修改文件
api/v1/purchase/purchase.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/v1/purchase/purchase.go
@@ -226,7 +226,7 @@
// @Security  ApiKeyAuth
// @accept    application/json
// @Produce   application/json
// @Param        id    path        int    true    "采购单ID"
// @Param     data  body     purchaserequest.SubmitPurchase   true  "参数"
// @Success   200   {object}  response.Response{msg=string}  "提交采购单"
// @Router    /purchase/submit [post]
func (e *PurchaseApi) Submit(c *gin.Context) {
@@ -439,7 +439,7 @@
// @Security  ApiKeyAuth
// @accept    application/json
// @Produce   application/json
// @Param        id    path        int    true    "采购单ID"                                           true  "采购单ID"
// @Param     data  body     purchaserequest.SubmitPurchase   true  "参数"
// @Success   200   {object}  response.Response{msg=string}  "新版提交"
// @Router    /purchase/newSubmit [post]
func (e *PurchaseApi) NewSubmit(c *gin.Context) {
docs/docs.go
@@ -1851,11 +1851,13 @@
                "summary": "新版提交",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "采购单ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.SubmitPurchase"
                        }
                    }
                ],
                "responses": {
@@ -2434,11 +2436,13 @@
                "summary": "提交采购单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "采购单ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.SubmitPurchase"
                        }
                    }
                ],
                "responses": {
@@ -4555,6 +4559,17 @@
                }
            }
        },
        "purchaserequest.SubmitPurchase": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "status": {
                    "$ref": "#/definitions/purchase.OrderStatus"
                }
            }
        },
        "purchaserequest.UpdatePurchase": {
            "type": "object",
            "properties": {
docs/swagger.json
@@ -1842,11 +1842,13 @@
                "summary": "新版提交",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "采购单ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.SubmitPurchase"
                        }
                    }
                ],
                "responses": {
@@ -2425,11 +2427,13 @@
                "summary": "提交采购单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "采购单ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "description": "参数",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/purchaserequest.SubmitPurchase"
                        }
                    }
                ],
                "responses": {
@@ -4546,6 +4550,17 @@
                }
            }
        },
        "purchaserequest.SubmitPurchase": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "status": {
                    "$ref": "#/definitions/purchase.OrderStatus"
                }
            }
        },
        "purchaserequest.UpdatePurchase": {
            "type": "object",
            "properties": {
docs/swagger.yaml
@@ -808,6 +808,13 @@
      status:
        type: integer
    type: object
  purchaserequest.SubmitPurchase:
    properties:
      id:
        type: integer
      status:
        $ref: '#/definitions/purchase.OrderStatus'
    type: object
  purchaserequest.UpdatePurchase:
    properties:
      productList:
@@ -2243,11 +2250,12 @@
      consumes:
      - application/json
      parameters:
      - description: 采购单ID
        in: path
        name: id
      - description: 参数
        in: body
        name: data
        required: true
        type: integer
        schema:
          $ref: '#/definitions/purchaserequest.SubmitPurchase'
      produces:
      - application/json
      responses:
@@ -2575,11 +2583,12 @@
      consumes:
      - application/json
      parameters:
      - description: 采购单ID
        in: path
        name: id
      - description: 参数
        in: body
        name: data
        required: true
        type: integer
        schema:
          $ref: '#/definitions/purchaserequest.SubmitPurchase'
      produces:
      - application/json
      responses: