liujiandao
2023-11-21 fb70fc08ff0a58f74d0bf45be375484617c7d7e5
销售明细添加项目id
4个文件已修改
218 ■■■■■ 已修改文件
api/v1/salesDetails.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/v1/salesDetails.go
@@ -171,6 +171,7 @@
    salesDetailsModel.QuotationId = salesDetails.QuotationId
    salesDetailsModel.Status = salesDetails.Status
    salesDetailsModel.Source = salesDetails.Source
    salesDetailsModel.ProjectId = salesDetails.ProjectId
    return ecode.OK, salesDetailsModel
}
docs/docs.go
@@ -7059,6 +7059,25 @@
                }
            }
        },
        "/api/salesDetails/getApsProjectList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "获取aps项目列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.Response"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/getProductInventoryInfo/{number}": {
            "get": {
                "produces": [
@@ -7124,6 +7143,36 @@
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/salesDetails/sendSalesDetailsToApsProject": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "推送销售明细信息到aps项目模块",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SalesDetails"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
@@ -12378,6 +12427,9 @@
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotation": {
                    "$ref": "#/definitions/model.Quotation"
                },
@@ -14513,11 +14565,17 @@
        "request.AddSalesDetails": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "address": {
                    "type": "string"
                },
                "addressee": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
@@ -14559,6 +14617,9 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotationId": {
                    "type": "integer"
@@ -16088,11 +16149,17 @@
        "request.SalesDetails": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "address": {
                    "type": "string"
                },
                "addressee": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
@@ -16134,6 +16201,9 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotationId": {
                    "type": "integer"
@@ -19347,6 +19417,18 @@
                }
            }
        },
        "response.Response": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "response.SaleChanceResponse": {
            "type": "object",
            "properties": {
docs/swagger.json
@@ -7047,6 +7047,25 @@
                }
            }
        },
        "/api/salesDetails/getApsProjectList": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "获取aps项目列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.Response"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/getProductInventoryInfo/{number}": {
            "get": {
                "produces": [
@@ -7112,6 +7131,36 @@
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/salesDetails/sendSalesDetailsToApsProject": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails"
                ],
                "summary": "推送销售明细信息到aps项目模块",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SalesDetails"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/response.ListResponse"
                        }
                    }
                }
@@ -12366,6 +12415,9 @@
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotation": {
                    "$ref": "#/definitions/model.Quotation"
                },
@@ -14501,11 +14553,17 @@
        "request.AddSalesDetails": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "address": {
                    "type": "string"
                },
                "addressee": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
@@ -14547,6 +14605,9 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotationId": {
                    "type": "integer"
@@ -16076,11 +16137,17 @@
        "request.SalesDetails": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "address": {
                    "type": "string"
                },
                "addressee": {
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
@@ -16122,6 +16189,9 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "projectId": {
                    "type": "string"
                },
                "quotationId": {
                    "type": "integer"
@@ -19335,6 +19405,18 @@
                }
            }
        },
        "response.Response": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "response.SaleChanceResponse": {
            "type": "object",
            "properties": {
docs/swagger.yaml
@@ -1482,6 +1482,8 @@
        items:
          $ref: '#/definitions/model.Product'
        type: array
      projectId:
        type: string
      quotation:
        $ref: '#/definitions/model.Quotation'
      quotationId:
@@ -2915,10 +2917,14 @@
    type: object
  request.AddSalesDetails:
    properties:
      Member:
        $ref: '#/definitions/model.User'
      address:
        type: string
      addressee:
        type: string
      client:
        $ref: '#/definitions/model.Client'
      clientId:
        type: integer
      codeStandID:
@@ -2947,6 +2953,8 @@
        items:
          $ref: '#/definitions/model.Product'
        type: array
      projectId:
        type: string
      quotationId:
        type: integer
      remark:
@@ -4017,10 +4025,14 @@
    type: object
  request.SalesDetails:
    properties:
      Member:
        $ref: '#/definitions/model.User'
      address:
        type: string
      addressee:
        type: string
      client:
        $ref: '#/definitions/model.Client'
      clientId:
        type: integer
      codeStandID:
@@ -4049,6 +4061,8 @@
        items:
          $ref: '#/definitions/model.Product'
        type: array
      projectId:
        type: string
      quotationId:
        type: integer
      remark:
@@ -6209,6 +6223,14 @@
        items:
          $ref: '#/definitions/model.Repository'
        type: array
    type: object
  response.Response:
    properties:
      code:
        type: integer
      data: {}
      msg:
        type: string
    type: object
  response.SaleChanceResponse:
    properties:
@@ -10689,6 +10711,18 @@
      summary: 删除销售明细
      tags:
      - SalesDetails
  /api/salesDetails/getApsProjectList:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/response.Response'
      summary: 获取aps项目列表
      tags:
      - SalesDetails
  /api/salesDetails/getProductInventoryInfo/{number}:
    get:
      parameters:
@@ -10731,6 +10765,25 @@
      summary: 销售明细单列表
      tags:
      - SalesDetails
  /api/salesDetails/sendSalesDetailsToApsProject:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.SalesDetails'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/response.ListResponse'
      summary: 推送销售明细信息到aps项目模块
      tags:
      - SalesDetails
  /api/salesDetails/update:
    put:
      parameters: