add
wangpengfei
2023-07-21 b932538cd4d2090ae82c790441002ad44b0da46a
docs/swagger.yaml
@@ -558,6 +558,13 @@
      validity_date:
        type: string
    type: object
  model.QuotationStatus:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.RefundMethod:
    properties:
      id:
@@ -587,6 +594,13 @@
        type: string
    type: object
  model.ReportSource:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.Repository:
    properties:
      id:
        type: integer
@@ -817,8 +831,15 @@
        type: string
      returnDate:
        type: string
      status:
      salesReturnStatus:
        type: integer
    type: object
  model.SalesReturnStatus:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SalesSources:
    properties:
@@ -1334,6 +1355,13 @@
      validity_date:
        type: string
    type: object
  request.AddQuotationStatus:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddRefundMethod:
    properties:
      name:
@@ -1362,6 +1390,13 @@
    - name
    type: object
  request.AddReportSource:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddRepository:
    properties:
      name:
        type: string
@@ -1500,6 +1535,13 @@
    properties:
      salesReturn:
        $ref: '#/definitions/request.SalesReturn'
    type: object
  request.AddSalesReturnStatus:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddSalesSources:
    properties:
@@ -2571,6 +2613,25 @@
      validity_date:
        type: string
    type: object
  request.UpdateQuotationStatus:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateQuotationStatuss:
    properties:
      quotation_status:
        items:
          $ref: '#/definitions/request.UpdateQuotationStatus'
        type: array
    required:
    - quotation_status
    type: object
  request.UpdateRefundMethod:
    properties:
      id:
@@ -2661,6 +2722,25 @@
        type: array
    required:
    - report_source
    type: object
  request.UpdateRepository:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateRepositorys:
    properties:
      repository:
        items:
          $ref: '#/definitions/request.UpdateRepository'
        type: array
    required:
    - repository
    type: object
  request.UpdateSaleChance:
    properties:
@@ -2830,6 +2910,25 @@
        type: integer
      salesReturn:
        $ref: '#/definitions/request.SalesReturn'
    type: object
  request.UpdateSalesReturnStatus:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateSalesReturnStatuss:
    properties:
      sales_return_status:
        items:
          $ref: '#/definitions/request.UpdateSalesReturnStatus'
        type: array
    required:
    - sales_return_status
    type: object
  request.UpdateSalesSources:
    properties:
@@ -3275,6 +3374,11 @@
        items:
          $ref: '#/definitions/model.Province'
        type: array
      quotationStatus:
        description: 报价单状态
        items:
          $ref: '#/definitions/model.QuotationStatus'
        type: array
      refundMethod:
        description: 退款方式
        items:
@@ -3300,6 +3404,11 @@
        items:
          $ref: '#/definitions/model.ReportSource'
        type: array
      repository:
        description: 退货仓库
        items:
          $ref: '#/definitions/model.Repository'
        type: array
      sale_stage:
        description: 销售阶段
        items:
@@ -3314,6 +3423,11 @@
        description: 商机来源
        items:
          $ref: '#/definitions/model.SalesSources'
        type: array
      salesReturnStatus:
        description: 退货单状态
        items:
          $ref: '#/definitions/model.SalesReturnStatus'
        type: array
      satisfaction:
        description: 满意度
@@ -3458,6 +3572,13 @@
          $ref: '#/definitions/model.Quotation'
        type: array
    type: object
  response.QuotationStatusResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.QuotationStatus'
        type: array
    type: object
  response.RefundMethodResponse:
    properties:
      list:
@@ -3484,6 +3605,13 @@
      list:
        items:
          $ref: '#/definitions/model.ReportSource'
        type: array
    type: object
  response.RepositoryResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Repository'
        type: array
    type: object
  response.SaleChanceResponse:
@@ -3533,6 +3661,13 @@
      list:
        items:
          $ref: '#/definitions/model.SalesReturn'
        type: array
    type: object
  response.SalesReturnStatusResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesReturnStatus'
        type: array
    type: object
  response.SalesSourceResponse:
@@ -5624,6 +5759,79 @@
      summary: 更新报价单
      tags:
      - Quotation
  /api/quotationStatus/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddQuotationStatus'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加报价单状态
      tags:
      - QuotationStatus
  /api/quotationStatus/delete/{id}:
    delete:
      parameters:
      - description: 查询参数
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除报价单状态
      tags:
      - QuotationStatus
  /api/quotationStatus/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.QuotationStatusResponse'
              type: object
      summary: 获取报价单状态列表
      tags:
      - QuotationStatus
  /api/quotationStatus/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateQuotationStatuss'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新报价单状态
      tags:
      - QuotationStatus
  /api/refundMethod/add:
    post:
      parameters:
@@ -6009,6 +6217,79 @@
      summary: 更新报表来源
      tags:
      - ReportSource
  /api/repository/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddRepository'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加退货仓库
      tags:
      - Repository
  /api/repository/delete/{id}:
    delete:
      parameters:
      - description: 查询参数
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除退货仓库
      tags:
      - Repository
  /api/repository/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.RepositoryResponse'
              type: object
      summary: 获取退货仓库列表
      tags:
      - Repository
  /api/repository/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateRepositorys'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新退货仓库
      tags:
      - Repository
  /api/saleChance/add:
    post:
      parameters:
@@ -6520,6 +6801,79 @@
      summary: 更新销售退货
      tags:
      - SalesReturn
  /api/salesReturnStatus/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesReturnStatus'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加退货单状态
      tags:
      - SalesReturnStatus
  /api/salesReturnStatus/delete/{id}:
    delete:
      parameters:
      - description: 查询参数
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除退货单状态
      tags:
      - SalesReturnStatus
  /api/salesReturnStatus/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesReturnStatusResponse'
              type: object
      summary: 获取退货单状态列表
      tags:
      - SalesReturnStatus
  /api/salesReturnStatus/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesReturnStatuss'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新退货单状态
      tags:
      - SalesReturnStatus
  /api/salesSources/add:
    post:
      parameters:
@@ -7122,7 +7476,7 @@
            $ref: '#/definitions/contextx.Response'
      summary: 添加状态
      tags:
      - Status
      - SalesReturnStatus
  /api/status/delete/{id}:
    delete:
      parameters:
@@ -7140,7 +7494,7 @@
            $ref: '#/definitions/contextx.Response'
      summary: 删除状态
      tags:
      - Status
      - SalesReturnStatus
  /api/status/list:
    get:
      produces:
@@ -7152,7 +7506,7 @@
            $ref: '#/definitions/contextx.Response'
      summary: 状态列表
      tags:
      - Status
      - SalesReturnStatus
  /api/status/update:
    put:
      parameters:
@@ -7171,7 +7525,7 @@
            $ref: '#/definitions/contextx.Response'
      summary: 更新状态
      tags:
      - Status
      - SalesReturnStatus
  /api/subOrder/add:
    post:
      parameters: