add
wangpengfei
2023-07-13 32ae12002f89b089cb96849950759d2378d1729a
docs/swagger.yaml
@@ -684,6 +684,45 @@
      name:
        type: string
    type: object
  model.ServiceContract:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      contractId:
        type: integer
      endTime:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      quotationId:
        type: integer
      remark:
        type: string
      saleChanceId:
        type: integer
      serviceTimes:
        type: integer
      signTime:
        type: string
      startTime:
        type: string
      statusId:
        type: integer
      terms:
        type: string
      typeId:
        type: integer
    type: object
  model.SubOrder:
    properties:
      clientId:
@@ -1151,6 +1190,43 @@
        type: string
    required:
    - name
    type: object
  request.AddServiceContract:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      contractId:
        type: integer
      endTime:
        type: string
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      quotationId:
        type: integer
      remark:
        type: string
      saleChanceId:
        type: integer
      serviceTimes:
        type: integer
      signTime:
        type: string
      startTime:
        type: string
      statusId:
        type: integer
      terms:
        type: string
      typeId:
        type: integer
    type: object
  request.AddStatus:
    properties:
@@ -2116,6 +2192,45 @@
          $ref: '#/definitions/request.UpdateSalesSources'
        type: array
    type: object
  request.UpdateServiceContract:
    properties:
      clientId:
        type: integer
      contactId:
        type: integer
      contractId:
        type: integer
      endTime:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      quotationId:
        type: integer
      remark:
        type: string
      saleChanceId:
        type: integer
      serviceTimes:
        type: integer
      signTime:
        type: string
      startTime:
        type: string
      statusId:
        type: integer
      terms:
        type: string
      typeId:
        type: integer
    type: object
  request.UpdateStatus:
    properties:
      id:
@@ -2358,6 +2473,13 @@
      list:
        items:
          $ref: '#/definitions/model.SalesSources'
        type: array
    type: object
  response.ServiceContractsResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.ServiceContract'
        type: array
    type: object
  response.SubOrderResponse:
@@ -4598,6 +4720,79 @@
      summary: 更新商机来源
      tags:
      - SalesSources
  /api/serviceContract/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddServiceContract'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加服务合同
      tags:
      - ServiceContract
  /api/serviceContract/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:
      - ServiceContract
  /api/serviceContract/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.ServiceContractsResponse'
              type: object
      summary: 服务合同列表
      tags:
      - ServiceContract
  /api/serviceContract/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateServiceContract'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新服务合同
      tags:
      - ServiceContract
  /api/status/add:
    post:
      parameters: