add
wangpengfei
2023-07-12 a32c022b30a30982358464ba0f68aab0b2a103c2
docs/swagger.yaml
@@ -266,6 +266,23 @@
      wechat:
        type: string
    type: object
  model.Contract:
    properties:
      clientId:
        type: integer
      file:
        type: string
      id:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      quotationId:
        type: integer
      statusId:
        type: integer
    type: object
  model.Country:
    properties:
      id:
@@ -846,6 +863,21 @@
      wechat:
        description: 微信号
        type: string
    type: object
  request.AddContract:
    properties:
      client_id:
        type: integer
      file:
        type: string
      member_id:
        type: integer
      number:
        type: string
      quotation_id:
        type: integer
      status_id:
        type: integer
    type: object
  request.AddCountry:
    properties:
@@ -1607,6 +1639,23 @@
        description: 微信号
        type: string
    type: object
  request.UpdateContract:
    properties:
      client_id:
        type: integer
      file:
        type: string
      id:
        type: integer
      member_id:
        type: integer
      number:
        type: string
      quotation_id:
        type: integer
      status_id:
        type: integer
    type: object
  request.UpdateCountry:
    properties:
      id:
@@ -2088,6 +2137,13 @@
      list:
        items:
          $ref: '#/definitions/model.ContactDetail'
        type: array
    type: object
  response.ContractResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Contract'
        type: array
    type: object
  response.CountryResponse:
@@ -2821,6 +2877,79 @@
      summary: 更新联系人
      tags:
      - Contact
  /api/contract/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddContract'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加合同
      tags:
      - Contract
  /api/contract/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:
      - Contract
  /api/contract/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.ContractResponse'
              type: object
      summary: 获取合同列表
      tags:
      - Contract
  /api/contract/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateContract'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新合同
      tags:
      - Contract
  /api/country/add:
    post:
      parameters: