add
wangpengfei
2023-07-07 9cd9b44d7727437add866faf74ed7785ecb1d6e8
docs/swagger.yaml
@@ -356,6 +356,13 @@
      name:
        type: string
    type: object
  model.RegularCustomers:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SaleChance:
    properties:
      advantages:
@@ -740,6 +747,13 @@
        type: string
    type: object
  request.AddRegisteredCapital:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddRegularCustomers:
    properties:
      name:
        type: string
@@ -1406,6 +1420,25 @@
          $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:
      advantages:
@@ -1682,6 +1715,13 @@
      list:
        items:
          $ref: '#/definitions/model.RegisteredCapital'
        type: array
    type: object
  response.RegularCustomersResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.RegularCustomers'
        type: array
    type: object
  response.SaleChanceResponse:
@@ -2933,6 +2973,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: