add
wangpengfei
2023-07-07 551ab0030f602e99b3ab2dd8edbe4deec48b6afd
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:
@@ -325,10 +368,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:
@@ -379,6 +426,8 @@
        type: integer
      sales_sources_id:
        type: integer
      salesSources:
        $ref: '#/definitions/model.SalesSources'
      solutions:
        type: string
      status_id:
@@ -386,6 +435,13 @@
      threats:
        type: string
      whether_established:
        type: string
    type: object
  model.SaleStage:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SalesLeads:
@@ -747,34 +803,13 @@
        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.AddSalesLeads:
    properties:
@@ -1424,34 +1459,26 @@
      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.UpdateSalesLeads:
    properties:
@@ -1553,7 +1580,7 @@
    properties:
      list:
        items:
          $ref: '#/definitions/model.Contact'
          $ref: '#/definitions/model.ContactDetail'
        type: array
    type: object
  response.CountryResponse:
@@ -1629,6 +1656,13 @@
      list:
        items:
          $ref: '#/definitions/model.SaleChance'
        type: array
    type: object
  response.SaleStageResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SaleStage'
        type: array
    type: object
  response.SalesLeadsResponse:
@@ -2932,6 +2966,79 @@
      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/salesLeads/add:
    post:
      parameters: