add
wangpengfei
2023-07-18 7ffcc41e597c5af4169e3e2ab809fdbf869c2154
docs/swagger.yaml
@@ -337,6 +337,13 @@
      serviceMode:
        type: integer
    type: object
  model.Department:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.EnterpriseNature:
    properties:
      id:
@@ -1092,6 +1099,13 @@
        type: integer
      serviceMode:
        type: integer
    type: object
  request.AddDepartment:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddEnterpriseNature:
    properties:
@@ -2102,6 +2116,25 @@
      serviceMode:
        type: integer
    type: object
  request.UpdateDepartment:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateDepartmentList:
    properties:
      departments:
        items:
          $ref: '#/definitions/request.UpdateDepartment'
        type: array
    required:
    - departments
    type: object
  request.UpdateEnterpriseNature:
    properties:
      id:
@@ -2788,6 +2821,13 @@
        description: 商机来源
        items:
          $ref: '#/definitions/model.SalesSources'
        type: array
    type: object
  response.DepartmentResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Department'
        type: array
    type: object
  response.EnterpriseNatureResponse:
@@ -3832,6 +3872,79 @@
      summary: 获取所有数据
      tags:
      - Data
  /api/department/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddDepartment'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加部门
      tags:
      - Department
  /api/department/delete/{id}:
    delete:
      parameters:
      - description: 部门ID
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除部门
      tags:
      - Department
  /api/department/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.DepartmentResponse'
              type: object
      summary: 部门列表
      tags:
      - Department
  /api/department/update/{id}:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateDepartmentList'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新部门
      tags:
      - Department
  /api/enterpriseNature/add:
    post:
      parameters: