zhangqian
2023-08-05 a5ccc6b321a3127ca064b935e42db44428c41305
docs/swagger.yaml
@@ -1,4 +1,16 @@
definitions:
  constvar.FaqKeywordType:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - FaqKeywordCustomerName
  constvar.FaqQueryClass:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - FaqQueryClassExpireLessThen60Days
  constvar.SalesStatus:
    enum:
    - 1
@@ -987,6 +999,44 @@
      name:
        type: string
    type: object
  model.ServiceCollectionPlan:
    properties:
      amount:
        description: 金额
        type: number
      collectionDate:
        description: 计划收款日期
        type: string
      collectionType:
        description: 类型(1 计划收款日期 2 项目状态)
        type: integer
      fileId:
        description: 附件id
        type: integer
      id:
        type: integer
      moneyType:
        description: 币种
        type: string
      percent:
        description: 比例
        type: number
      principal:
        description: 收款负责人ID
        type: integer
      remark:
        description: 备注
        type: string
      serviceContractId:
        description: 服务合同id
        type: integer
      status:
        description: 状态(1未收2已收)
        type: integer
      term:
        description: 期次
        type: integer
    type: object
  model.ServiceContract:
    properties:
      clientId:
@@ -1085,6 +1135,8 @@
        type: integer
      serviceId:
        type: integer
      serviceOrder:
        $ref: '#/definitions/model.ServiceOrder'
      solveRateId:
        type: integer
      timelyRateId:
@@ -1849,6 +1901,13 @@
    required:
    - name
    type: object
  request.AddServiceCollectionPlan:
    properties:
      list:
        items:
          $ref: '#/definitions/model.ServiceCollectionPlan'
        type: array
    type: object
  request.AddServiceContract:
    properties:
      clientId:
@@ -2339,6 +2398,21 @@
      pageSize:
        description: 每页大小
        type: integer
    type: object
  request.GetFaqList:
    properties:
      keyword:
        type: string
      keywordType:
        $ref: '#/definitions/constvar.FaqKeywordType'
      page:
        description: 页码
        type: integer
      pageSize:
        description: 每页大小
        type: integer
      queryClass:
        $ref: '#/definitions/constvar.FaqQueryClass'
    type: object
  request.GetFollowRecordList:
    properties:
@@ -3618,6 +3692,44 @@
        type: array
    required:
    - satisfactions
    type: object
  request.UpdateServiceCollectionPlan:
    properties:
      amount:
        description: 金额
        type: number
      collectionDate:
        description: 计划收款日期
        type: string
      collectionType:
        description: 类型(1 计划收款日期 2 项目状态)
        type: integer
      fileId:
        description: 附件id
        type: integer
      id:
        type: integer
      moneyType:
        description: 币种
        type: string
      percent:
        description: 比例
        type: number
      principal:
        description: 收款负责人ID
        type: integer
      remark:
        description: 备注
        type: string
      serviceContractId:
        description: 服务合同id
        type: integer
      status:
        description: 状态(1未收2已收)
        type: integer
      term:
        description: 期次
        type: integer
    type: object
  request.UpdateServiceContract:
    properties:
@@ -5887,6 +5999,13 @@
      - 常见问题管理
  /api/faq/list:
    get:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.GetFaqList'
      produces:
      - application/json
      responses:
@@ -8274,6 +8393,86 @@
      summary: 更新满意度
      tags:
      - Satisfaction
  /api/serviceCollectionPlan/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddServiceCollectionPlan'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加服务合同收款计划
      tags:
      - 服务合同收款计划管理
  /api/serviceCollectionPlan/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:
      - 服务合同收款计划管理
  /api/serviceCollectionPlan/list:
    get:
      parameters:
      - description: 服务合同id
        in: query
        name: serviceContractId
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/response.ListResponse'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/model.ServiceCollectionPlan'
                  type: array
              type: object
      summary: 获取服务合同收款计划列表
      tags:
      - 服务合同收款计划管理
  /api/serviceCollectionPlan/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateServiceCollectionPlan'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新服务合同收款计划
      tags:
      - 服务合同收款计划管理
  /api/serviceContract/add:
    post:
      parameters: