add
wangpengfei
2023-07-12 6bb983c0766c26583493a956f255f87c742db59e
docs/swagger.yaml
@@ -331,12 +331,46 @@
      name:
        type: string
    type: object
  model.MasterOrder:
    properties:
      client_id:
        type: integer
      end_time:
        type: string
      id:
        type: integer
      member_id:
        type: integer
      money:
        type: number
      number:
        type: string
      start_time:
        type: string
    type: object
  model.Possibility:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.Product:
    properties:
      amount:
        type: integer
      desc:
        type: string
      id:
        type: integer
      name:
        type: string
      number:
        type: string
      price:
        type: number
      total:
        type: number
    type: object
  model.Province:
    properties:
@@ -347,6 +381,35 @@
      id:
        type: integer
      name:
        type: string
    type: object
  model.Quotation:
    properties:
      client:
        $ref: '#/definitions/model.Client'
      client_id:
        type: integer
      conditions:
        type: string
      contact:
        $ref: '#/definitions/model.Contact'
      contact_id:
        type: integer
      file:
        type: string
      id:
        type: integer
      member_id:
        type: integer
      number:
        type: string
      quotation_status_id:
        type: integer
      sale_chance:
        $ref: '#/definitions/model.SaleChance'
      sale_chance_id:
        type: integer
      validity_date:
        type: string
    type: object
  model.Region:
@@ -465,6 +528,41 @@
      name:
        type: string
    type: object
  model.SalesDetails:
    properties:
      address:
        type: string
      addressee:
        type: string
      clientId:
        type: integer
      conditions:
        type: string
      deliveryDate:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      phone:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      remark:
        type: string
      saleChanceId:
        type: integer
      saleType:
        type: integer
      signTime:
        type: string
      wechatOrderStatus:
        type: integer
    type: object
  model.SalesLeads:
    properties:
      city:
@@ -508,12 +606,54 @@
      sales_status:
        $ref: '#/definitions/constvar.SalesStatus'
    type: object
  model.SalesRefund:
    properties:
      accountId:
        type: integer
      clientId:
        type: integer
      id:
        type: integer
      isInvoice:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
    type: object
  model.SalesSources:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SubOrder:
    properties:
      clientId:
        type: integer
      id:
        type: integer
      masterOrderId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
    type: object
  model.User:
    properties:
@@ -741,6 +881,21 @@
    required:
    - name
    type: object
  request.AddMasterOrder:
    properties:
      client_id:
        type: integer
      end_time:
        type: string
      member_id:
        type: integer
      money:
        type: string
      number:
        type: string
      start_time:
        type: string
    type: object
  request.AddPossibility:
    properties:
      name:
@@ -752,6 +907,27 @@
    properties:
      name:
        description: 省份名称
        type: string
    type: object
  request.AddQuotation:
    properties:
      client_id:
        type: integer
      conditions:
        type: string
      contact_id:
        type: integer
      file:
        type: string
      member_id:
        type: integer
      number:
        type: string
      quotation_status_id:
        type: integer
      sale_chance_id:
        type: integer
      validity_date:
        type: string
    type: object
  request.AddRegion:
@@ -853,6 +1029,11 @@
    required:
    - name
    type: object
  request.AddSalesDetails:
    properties:
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
    type: object
  request.AddSalesLeads:
    properties:
      city_id:
@@ -888,6 +1069,16 @@
        description: 商机来源ID
        type: integer
    type: object
  request.AddSalesRefundRequest:
    properties:
      salesRefund:
        $ref: '#/definitions/request.SalesRefund'
    type: object
  request.AddSalesReturnRequest:
    properties:
      salesReturn:
        $ref: '#/definitions/request.SalesReturn'
    type: object
  request.AddSalesSources:
    properties:
      name:
@@ -901,6 +1092,11 @@
        type: string
    required:
    - name
    type: object
  request.AddSubOrder:
    properties:
      subOrder:
        $ref: '#/definitions/request.SubOrder'
    type: object
  request.ChangePasswordReq:
    properties:
@@ -1072,6 +1268,83 @@
        example: 用户名
        type: string
    type: object
  request.SalesDetails:
    properties:
      address:
        type: string
      addressee:
        type: string
      clientId:
        type: integer
      conditions:
        type: string
      deliveryDate:
        type: string
      memberId:
        type: integer
      number:
        type: string
      phone:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      remark:
        type: string
      saleChanceId:
        type: integer
      saleType:
        type: integer
      signTime:
        type: string
      wechatOrderStatus:
        type: integer
    type: object
  request.SalesRefund:
    properties:
      accountId:
        type: integer
      clientId:
        type: integer
      isInvoice:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
    type: object
  request.SalesReturn:
    properties:
      clientId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      repository:
        type: string
      returnDate:
        type: string
      status:
        type: integer
    type: object
  request.SetCity:
    properties:
      city_ids:
@@ -1103,6 +1376,21 @@
        description: 地区ID列表
        items:
          type: integer
        type: array
    type: object
  request.SubOrder:
    properties:
      clientId:
        type: integer
      masterOrderId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      product:
        items:
          $ref: '#/definitions/model.Product'
        type: array
    type: object
  request.UpdateCities:
@@ -1390,6 +1678,23 @@
    - id
    - name
    type: object
  request.UpdateMasterOrder:
    properties:
      client_id:
        type: integer
      end_time:
        type: string
      id:
        type: integer
      member_id:
        type: integer
      money:
        type: string
      number:
        type: string
      start_time:
        type: string
    type: object
  request.UpdatePossibilities:
    properties:
      possibilities:
@@ -1425,6 +1730,29 @@
        items:
          $ref: '#/definitions/request.UpdateProvince'
        type: array
    type: object
  request.UpdateQuotation:
    properties:
      client_id:
        type: integer
      conditions:
        type: string
      contact_id:
        type: integer
      file:
        type: string
      id:
        type: integer
      member_id:
        type: integer
      number:
        type: string
      quotation_status_id:
        type: integer
      sale_chance_id:
        type: integer
      validity_date:
        type: string
    type: object
  request.UpdateRegion:
    properties:
@@ -1586,6 +1914,13 @@
    required:
    - sale_types
    type: object
  request.UpdateSalesDetails:
    properties:
      id:
        type: integer
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
    type: object
  request.UpdateSalesLeads:
    properties:
      city_id:
@@ -1623,6 +1958,36 @@
        description: 商机来源ID
        type: integer
    type: object
  request.UpdateSalesRefundRequest:
    properties:
      id:
        type: integer
      salesRefund:
        $ref: '#/definitions/request.SalesRefund'
    type: object
  request.UpdateSalesReturnRequest:
    properties:
      clientId:
        type: integer
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      repository:
        type: string
      returnDate:
        type: string
      status:
        type: integer
    type: object
  request.UpdateSalesSources:
    properties:
      id:
@@ -1658,6 +2023,23 @@
        type: array
    required:
    - list
    type: object
  request.UpdateSubOrder:
    properties:
      clientId:
        type: integer
      id:
        type: integer
      masterOrderId:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      product:
        items:
          $ref: '#/definitions/model.Product'
        type: array
    type: object
  response.CityResponse:
    properties:
@@ -1752,6 +2134,13 @@
      user:
        $ref: '#/definitions/model.User'
    type: object
  response.MasterOrderResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.MasterOrder'
        type: array
    type: object
  response.PageResult:
    properties:
      list: {}
@@ -1774,6 +2163,13 @@
      list:
        items:
          $ref: '#/definitions/model.Province'
        type: array
    type: object
  response.QuotationResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Quotation'
        type: array
    type: object
  response.RegisteredCapitalResponse:
@@ -1811,6 +2207,13 @@
          $ref: '#/definitions/model.SaleType'
        type: array
    type: object
  response.SalesDetailsResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesDetails'
        type: array
    type: object
  response.SalesLeadsResponse:
    properties:
      list:
@@ -1818,11 +2221,25 @@
          $ref: '#/definitions/model.SalesLeads'
        type: array
    type: object
  response.SalesRefundResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesRefund'
        type: array
    type: object
  response.SalesSourceResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesSources'
        type: array
    type: object
  response.SubOrderResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SubOrder'
        type: array
    type: object
  response.UserResponse:
@@ -2787,6 +3204,79 @@
      summary: 更新行业
      tags:
      - Industry
  /api/masterOrder/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddMasterOrder'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加主订单
      tags:
      - MasterOrder
  /api/masterOrder/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:
      - MasterOrder
  /api/masterOrder/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.MasterOrderResponse'
              type: object
      summary: 主订单列表
      tags:
      - MasterOrder
  /api/masterOrder/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateMasterOrder'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新主订单
      tags:
      - MasterOrder
  /api/possibility/add:
    post:
      parameters:
@@ -2952,6 +3442,79 @@
      summary: 更新省份
      tags:
      - Province
  /api/quotation/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddQuotation'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加报价单
      tags:
      - Quotation
  /api/quotation/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:
      - Quotation
  /api/quotation/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.QuotationResponse'
              type: object
      summary: 报价单列表
      tags:
      - Quotation
  /api/quotation/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateQuotation'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新报价单
      tags:
      - Quotation
  /api/region/add:
    post:
      parameters:
@@ -3404,6 +3967,79 @@
      summary: 更新销售类型
      tags:
      - SaleType
  /api/salesDetails/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesDetails'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售明细
      tags:
      - SalesDetails
  /api/salesDetails/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:
      - SalesDetails
  /api/salesDetails/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesDetailsResponse'
              type: object
      summary: 获取销售明细列表
      tags:
      - SalesDetails
  /api/salesDetails/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesDetails'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售明细
      tags:
      - SalesDetails
  /api/salesLeads/add:
    post:
      parameters:
@@ -3477,6 +4113,147 @@
      summary: 更新销售线索
      tags:
      - SalesLeads
  /api/salesRefund/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesRefundRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售退款
      tags:
      - SalesRefund
  /api/salesRefund/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:
      - SalesRefund
  /api/salesRefund/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesRefundResponse'
              type: object
      summary: 销售退款列表
      tags:
      - SalesRefund
  /api/salesRefund/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesRefundRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售退款
      tags:
      - SalesRefund
  /api/salesReturn/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesReturnRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售退货
      tags:
      - SalesReturn
  /api/salesReturn/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:
      - SalesReturn
  /api/salesReturn/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 获取销售退货列表
      tags:
      - SalesReturn
  /api/salesReturn/update/{id}:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesReturnRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售退货
      tags:
      - SalesReturn
  /api/salesSources/add:
    post:
      parameters:
@@ -3618,6 +4395,79 @@
      summary: 更新状态
      tags:
      - Status
  /api/subOrder/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSubOrder'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加子订单
      tags:
      - SubOrder
  /api/subOrder/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:
      - SubOrder
  /api/subOrder/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SubOrderResponse'
              type: object
      summary: 获取子订单列表
      tags:
      - SubOrder
  /api/subOrder/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSubOrder'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新子订单
      tags:
      - SubOrder
  /api/user/changePassword:
    post:
      parameters: