| | |
| | | serviceMode: |
| | | type: integer |
| | | type: object |
| | | model.Department: |
| | | properties: |
| | | id: |
| | | type: integer |
| | | name: |
| | | type: string |
| | | type: object |
| | | model.EnterpriseNature: |
| | | properties: |
| | | id: |
| | |
| | | type: integer |
| | | serviceMode: |
| | | type: integer |
| | | type: object |
| | | request.AddDepartment: |
| | | properties: |
| | | name: |
| | | type: string |
| | | required: |
| | | - name |
| | | type: object |
| | | request.AddEnterpriseNature: |
| | | properties: |
| | |
| | | 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: |
| | |
| | | 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: |
| | |
| | | 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: |