add
wangpengfei
2023-07-12 6bb983c0766c26583493a956f255f87c742db59e
docs/swagger.yaml
@@ -182,6 +182,49 @@
        $ref: '#/definitions/model.City'
      city_id:
        type: integer
      client_id:
        type: integer
      country:
        $ref: '#/definitions/model.Country'
      country_id:
        type: integer
      desc:
        type: string
      email:
        type: string
      id:
        type: integer
      is_first:
        type: boolean
      member_id:
        type: integer
      name:
        type: string
      number:
        type: string
      phone:
        type: string
      position:
        type: string
      province:
        $ref: '#/definitions/model.Province'
      province_id:
        type: integer
      region:
        $ref: '#/definitions/model.Region'
      region_id:
        type: integer
      wechat:
        type: string
    type: object
  model.ContactDetail:
    properties:
      birthday:
        type: string
      city:
        $ref: '#/definitions/model.City'
      city_id:
        type: integer
      client:
        $ref: '#/definitions/model.Client'
      client_id:
@@ -288,6 +331,47 @@
      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:
      cities:
@@ -299,6 +383,35 @@
      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:
    properties:
      id:
@@ -307,6 +420,13 @@
        type: string
    type: object
  model.RegisteredCapital:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.RegularCustomers:
    properties:
      id:
        type: integer
@@ -325,10 +445,14 @@
        $ref: '#/definitions/model.City'
      city_id:
        type: integer
      client:
        $ref: '#/definitions/model.Client'
      client_id:
        type: integer
      competitors:
        type: string
      contact:
        $ref: '#/definitions/model.Contact'
      contact_id:
        type: integer
      country:
@@ -357,7 +481,7 @@
        type: string
      pain_points:
        type: string
      possibilities:
      possibilities_id:
        type: integer
      process:
        type: string
@@ -379,6 +503,8 @@
        type: integer
      sales_sources_id:
        type: integer
      salesSources:
        $ref: '#/definitions/model.SalesSources'
      solutions:
        type: string
      status_id:
@@ -387,6 +513,55 @@
        type: string
      whether_established:
        type: string
    type: object
  model.SaleStage:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SaleType:
    properties:
      id:
        type: integer
      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:
@@ -431,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:
@@ -664,10 +881,53 @@
    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:
        type: string
    required:
    - name
    type: object
  request.AddProvince:
    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:
@@ -677,6 +937,13 @@
        type: string
    type: object
  request.AddRegisteredCapital:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddRegularCustomers:
    properties:
      name:
        type: string
@@ -747,34 +1014,25 @@
        type: string
      whether_established:
        type: string
    type: object
  request.AddSaleStage:
    properties:
      name:
        type: string
    required:
    - advantages
    - budget
    - capital_budget
    - client_id
    - competitors
    - contact_id
    - currency
    - disadvantages
    - expected_time
    - key_factors
    - key_maker
    - member_id
    - name
    - number
    - opportunities
    - pain_points
    - possibilities
    - process
    - projected_amount
    - regular_customers_id
    - sale_stage_id
    - sale_type_id
    - sales_sources_id
    - solutions
    - status_id
    - threats
    - whether_established
    type: object
  request.AddSaleType:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddSalesDetails:
    properties:
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
    type: object
  request.AddSalesLeads:
    properties:
@@ -811,12 +1069,34 @@
        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:
        type: string
    required:
    - name
    type: object
  request.AddStatus:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddSubOrder:
    properties:
      subOrder:
        $ref: '#/definitions/request.SubOrder'
    type: object
  request.ChangePasswordReq:
    properties:
@@ -988,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:
@@ -1019,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:
@@ -1306,6 +1678,42 @@
    - 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:
        items:
          $ref: '#/definitions/request.UpdatePossibility'
        type: array
    required:
    - possibilities
    type: object
  request.UpdatePossibility:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateProvince:
    properties:
      id:
@@ -1322,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:
@@ -1356,6 +1787,25 @@
        items:
          $ref: '#/definitions/request.UpdateRegisteredCapital'
        type: array
    type: object
  request.UpdateRegularCustomers:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateRegularCustomersList:
    properties:
      regularCustomers:
        items:
          $ref: '#/definitions/request.UpdateRegularCustomers'
        type: array
    required:
    - regularCustomers
    type: object
  request.UpdateSaleChance:
    properties:
@@ -1424,34 +1874,52 @@
      whether_established:
        type: string
    required:
    - advantages
    - budget
    - capital_budget
    - client_id
    - competitors
    - contact_id
    - currency
    - disadvantages
    - expected_time
    - id
    - key_factors
    - key_maker
    - member_id
    type: object
  request.UpdateSaleStage:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    - number
    - opportunities
    - pain_points
    - possibilities
    - process
    - projected_amount
    - regular_customers_id
    - sale_stage_id
    - sale_type_id
    - sales_sources_id
    - solutions
    - status_id
    - threats
    - whether_established
    type: object
  request.UpdateSaleStages:
    properties:
      sale_stages:
        items:
          $ref: '#/definitions/request.UpdateSaleStage'
        type: array
    required:
    - sale_stages
    type: object
  request.UpdateSaleType:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateSaleTypes:
    properties:
      sale_types:
        items:
          $ref: '#/definitions/request.UpdateSaleType'
        type: array
    required:
    - sale_types
    type: object
  request.UpdateSalesDetails:
    properties:
      id:
        type: integer
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
    type: object
  request.UpdateSalesLeads:
    properties:
@@ -1490,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:
@@ -1505,6 +2003,42 @@
      sales_sourcess:
        items:
          $ref: '#/definitions/request.UpdateSalesSources'
        type: array
    type: object
  request.UpdateStatus:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateStatusList:
    properties:
      list:
        items:
          $ref: '#/definitions/request.UpdateStatus'
        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:
@@ -1553,7 +2087,7 @@
    properties:
      list:
        items:
          $ref: '#/definitions/model.Contact'
          $ref: '#/definitions/model.ContactDetail'
        type: array
    type: object
  response.CountryResponse:
@@ -1600,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: {}
@@ -1610,11 +2151,25 @@
      total:
        type: integer
    type: object
  response.PossibilityResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Possibility'
        type: array
    type: object
  response.ProvinceResponse:
    properties:
      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:
@@ -1624,11 +2179,39 @@
          $ref: '#/definitions/model.RegisteredCapital'
        type: array
    type: object
  response.RegularCustomersResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.RegularCustomers'
        type: array
    type: object
  response.SaleChanceResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SaleChance'
        type: array
    type: object
  response.SaleStageResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SaleStage'
        type: array
    type: object
  response.SaleTypeResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SaleType'
        type: array
    type: object
  response.SalesDetailsResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesDetails'
        type: array
    type: object
  response.SalesLeadsResponse:
@@ -1638,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:
@@ -2607,6 +3204,152 @@
      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:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddPossibility'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加商机可能性
      tags:
      - Possibility
  /api/possibility/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:
      - Possibility
  /api/possibility/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.PossibilityResponse'
              type: object
      summary: 商机可能性列表
      tags:
      - Possibility
  /api/possibility/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdatePossibilities'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新商机可能性
      tags:
      - Possibility
  /api/province/add:
    post:
      parameters:
@@ -2699,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:
@@ -2859,6 +3675,79 @@
      summary: 更新注册资本
      tags:
      - RegisteredCapital
  /api/regularCustomers/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddRegularCustomers'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加常客
      tags:
      - RegularCustomers
  /api/regularCustomers/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:
      - RegularCustomers
  /api/regularCustomers/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.RegularCustomersResponse'
              type: object
      summary: 常客列表
      tags:
      - RegularCustomers
  /api/regularCustomers/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateRegularCustomersList'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新常客
      tags:
      - RegularCustomers
  /api/saleChance/add:
    post:
      parameters:
@@ -2932,6 +3821,225 @@
      summary: 更新销售机会
      tags:
      - SaleChance
  /api/saleStage/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSaleStage'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售阶段
      tags:
      - SaleStage
  /api/saleStage/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:
      - SaleStage
  /api/saleStage/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SaleStageResponse'
              type: object
      summary: 获取销售阶段列表
      tags:
      - SaleStage
  /api/saleStage/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSaleStages'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售阶段
      tags:
      - SaleStage
  /api/saleType/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSaleType'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售类型
      tags:
      - SaleType
  /api/saleType/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:
      - SaleType
  /api/saleType/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SaleTypeResponse'
              type: object
      summary: 获取销售类型列表
      tags:
      - SaleType
  /api/saleType/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSaleTypes'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      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:
@@ -3005,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:
@@ -3078,6 +4327,147 @@
      summary: 更新商机来源
      tags:
      - SalesSources
  /api/status/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddStatus'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加状态
      tags:
      - Status
  /api/status/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:
      - Status
  /api/status/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 状态列表
      tags:
      - Status
  /api/status/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateStatusList'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      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: