| | |
| | | msg: |
| | | type: string |
| | | type: object |
| | | model.Authority: |
| | | properties: |
| | | authorityName: |
| | | description: 角色名 |
| | | type: string |
| | | defaultRouter: |
| | | description: 默认菜单(默认dashboard) |
| | | type: string |
| | | id: |
| | | description: 角色ID |
| | | type: integer |
| | | menus: |
| | | items: |
| | | $ref: '#/definitions/model.Menu' |
| | | type: array |
| | | type: object |
| | | model.City: |
| | | properties: |
| | | id: |
| | |
| | | $ref: '#/definitions/model.City' |
| | | city_id: |
| | | type: integer |
| | | client_level: |
| | | $ref: '#/definitions/model.ClientLevel' |
| | | client_level_id: |
| | | type: integer |
| | | client_origin: |
| | | $ref: '#/definitions/model.ClientOrigin' |
| | | client_origin_id: |
| | | type: integer |
| | | client_status: |
| | | $ref: '#/definitions/model.ClientStatus' |
| | | client_status_id: |
| | | type: integer |
| | | client_type: |
| | | $ref: '#/definitions/model.ClientType' |
| | | client_type_id: |
| | | type: integer |
| | | contacts: |
| | |
| | | serviceMode: |
| | | type: integer |
| | | type: object |
| | | model.Department: |
| | | properties: |
| | | id: |
| | | type: integer |
| | | name: |
| | | type: string |
| | | type: object |
| | | model.EnterpriseNature: |
| | | properties: |
| | | id: |
| | |
| | | type: object |
| | | model.FollowRecord: |
| | | properties: |
| | | client: |
| | | $ref: '#/definitions/model.Client' |
| | | client_id: |
| | | type: integer |
| | | client_status_id: |
| | | type: integer |
| | | contact: |
| | | $ref: '#/definitions/model.Contact' |
| | | contact_id: |
| | | type: integer |
| | | contact_information_id: |
| | |
| | | type: integer |
| | | currency: |
| | | $ref: '#/definitions/constvar.CurrencyType' |
| | | detail_address: |
| | | type: string |
| | | disadvantages: |
| | | type: string |
| | | expected_time: |
| | |
| | | type: integer |
| | | regular_customers_id: |
| | | type: integer |
| | | remark: |
| | | type: string |
| | | sale_stage_id: |
| | | type: integer |
| | | sale_type_id: |
| | |
| | | refundMethod: |
| | | type: string |
| | | type: object |
| | | model.SalesReturn: |
| | | properties: |
| | | clientId: |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | memberId: |
| | | type: integer |
| | | number: |
| | | type: string |
| | | products: |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | reason: |
| | | type: string |
| | | repository: |
| | | type: string |
| | | returnDate: |
| | | type: string |
| | | status: |
| | | type: integer |
| | | type: object |
| | | model.SalesSources: |
| | | properties: |
| | | id: |
| | |
| | | type: object |
| | | model.User: |
| | | properties: |
| | | companyName: |
| | | type: string |
| | | createAt: |
| | | description: 创建时间 |
| | | type: string |
| | | authority: |
| | | $ref: '#/definitions/model.Authority' |
| | | authorityId: |
| | | description: 用户角色ID |
| | | type: integer |
| | | departmentId: |
| | | type: integer |
| | | email: |
| | | type: string |
| | | enable: |
| | | type: boolean |
| | | headerImg: |
| | | type: string |
| | | id: |
| | | type: string |
| | | ip: |
| | | type: string |
| | | type: integer |
| | | menuIds: |
| | | description: 菜单ID列表 |
| | | items: |
| | |
| | | type: array |
| | | nickName: |
| | | type: string |
| | | parentId: |
| | | type: string |
| | | parentName: |
| | | type: string |
| | | phone: |
| | | type: string |
| | | port: |
| | | type: string |
| | | pos: |
| | | type: string |
| | | status: |
| | | type: integer |
| | | updateAt: |
| | | description: 更新时间 |
| | | realName: |
| | | type: string |
| | | userType: |
| | | $ref: '#/definitions/constvar.UserType' |
| | | username: |
| | | type: string |
| | | uuid: |
| | | type: string |
| | | type: object |
| | | request.AddAuthority: |
| | | properties: |
| | | authorityName: |
| | | type: string |
| | | casbinInfos: |
| | | items: |
| | | $ref: '#/definitions/request.CasbinInfo' |
| | | type: array |
| | | type: object |
| | | request.AddCity: |
| | | properties: |
| | |
| | | serviceMode: |
| | | type: integer |
| | | type: object |
| | | request.AddDepartment: |
| | | properties: |
| | | name: |
| | | type: string |
| | | required: |
| | | - name |
| | | type: object |
| | | request.AddEnterpriseNature: |
| | | properties: |
| | | name: |
| | |
| | | type: integer |
| | | currency: |
| | | type: integer |
| | | detail_address: |
| | | type: string |
| | | disadvantages: |
| | | type: string |
| | | expected_time: |
| | |
| | | type: integer |
| | | regular_customers_id: |
| | | type: integer |
| | | remark: |
| | | type: string |
| | | sale_stage_id: |
| | | type: integer |
| | | sale_type_id: |
| | |
| | | type: object |
| | | request.AddSubOrder: |
| | | properties: |
| | | subOrder: |
| | | $ref: '#/definitions/request.SubOrder' |
| | | clientId: |
| | | type: integer |
| | | masterOrderId: |
| | | type: integer |
| | | memberId: |
| | | type: integer |
| | | number: |
| | | type: string |
| | | product: |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | type: object |
| | | request.AddVetting: |
| | | properties: |
| | | opinion: |
| | | type: string |
| | | status: |
| | | type: integer |
| | | userId: |
| | | type: integer |
| | | vettingId: |
| | | type: integer |
| | | vettingType: |
| | | type: integer |
| | | required: |
| | | - opinion |
| | | - status |
| | | - userId |
| | | - vettingId |
| | | - vettingType |
| | | type: object |
| | | request.CasbinInfo: |
| | | properties: |
| | | method: |
| | | description: 方法 |
| | | type: string |
| | | path: |
| | | description: 路径 |
| | | type: string |
| | | type: object |
| | | request.ChangePasswordReq: |
| | | properties: |
| | |
| | | type: object |
| | | request.Register: |
| | | properties: |
| | | authorityId: |
| | | description: 用户角色ID |
| | | type: integer |
| | | departmentId: |
| | | type: integer |
| | | email: |
| | | example: 电子邮箱 |
| | | type: string |
| | | headerImg: |
| | | example: 头像链接 |
| | | type: string |
| | | id: |
| | | type: string |
| | | nickName: |
| | | example: 昵称 |
| | | type: string |
| | | passWord: |
| | | example: 密码 |
| | | password: |
| | | type: string |
| | | phone: |
| | | example: 电话号码 |
| | | type: string |
| | | userName: |
| | | example: 用户名 |
| | | pos: |
| | | type: string |
| | | rePassword: |
| | | description: 确认密码 |
| | | type: string |
| | | realName: |
| | | type: string |
| | | userType: |
| | | $ref: '#/definitions/constvar.UserType' |
| | | username: |
| | | type: string |
| | | type: object |
| | | request.SalesDetails: |
| | |
| | | status: |
| | | type: integer |
| | | type: object |
| | | request.SetAuthorityMenu: |
| | | properties: |
| | | authorityId: |
| | | type: integer |
| | | menus: |
| | | items: |
| | | type: integer |
| | | type: array |
| | | type: object |
| | | request.SetCity: |
| | | properties: |
| | | city_ids: |
| | |
| | | description: 地区ID列表 |
| | | items: |
| | | type: integer |
| | | type: array |
| | | type: object |
| | | request.SubOrder: |
| | | properties: |
| | | clientId: |
| | | type: integer |
| | | masterOrderId: |
| | | type: integer |
| | | memberId: |
| | | type: integer |
| | | number: |
| | | type: string |
| | | product: |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | type: object |
| | | request.UpdateCities: |
| | |
| | | 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: |
| | |
| | | type: integer |
| | | currency: |
| | | type: integer |
| | | detail_address: |
| | | type: string |
| | | disadvantages: |
| | | type: string |
| | | expected_time: |
| | |
| | | type: integer |
| | | regular_customers_id: |
| | | type: integer |
| | | remark: |
| | | type: string |
| | | sale_stage_id: |
| | | type: integer |
| | | sale_type_id: |
| | |
| | | $ref: '#/definitions/model.Country' |
| | | type: array |
| | | type: object |
| | | response.DataResponse: |
| | | properties: |
| | | city: |
| | | description: 城市数据 |
| | | items: |
| | | $ref: '#/definitions/model.City' |
| | | type: array |
| | | client_level: |
| | | description: 客户等级 |
| | | items: |
| | | $ref: '#/definitions/model.ClientLevel' |
| | | type: array |
| | | client_origin: |
| | | description: 客户来源 |
| | | items: |
| | | $ref: '#/definitions/model.ClientOrigin' |
| | | type: array |
| | | client_status: |
| | | description: 客户状态 |
| | | items: |
| | | $ref: '#/definitions/model.ClientStatus' |
| | | type: array |
| | | client_type: |
| | | description: 客户类型 |
| | | items: |
| | | $ref: '#/definitions/model.ClientType' |
| | | type: array |
| | | country: |
| | | description: 国家数据 |
| | | items: |
| | | $ref: '#/definitions/model.Country' |
| | | type: array |
| | | department: |
| | | description: 部门 |
| | | items: |
| | | $ref: '#/definitions/model.Department' |
| | | type: array |
| | | enterprise_nature: |
| | | description: 企业性质 |
| | | items: |
| | | $ref: '#/definitions/model.EnterpriseNature' |
| | | type: array |
| | | enterprise_scale: |
| | | description: 企业规模 |
| | | items: |
| | | $ref: '#/definitions/model.EnterpriseScale' |
| | | type: array |
| | | industry: |
| | | description: 行业 |
| | | items: |
| | | $ref: '#/definitions/model.Industry' |
| | | type: array |
| | | member: |
| | | description: Member |
| | | items: |
| | | $ref: '#/definitions/model.User' |
| | | type: array |
| | | province: |
| | | description: 省份数据 |
| | | items: |
| | | $ref: '#/definitions/model.Province' |
| | | type: array |
| | | region: |
| | | description: 区域数据 |
| | | items: |
| | | $ref: '#/definitions/model.Region' |
| | | type: array |
| | | registered_capital: |
| | | description: 注册资金 |
| | | items: |
| | | $ref: '#/definitions/model.RegisteredCapital' |
| | | type: array |
| | | regular_customers: |
| | | description: 老客户营销 |
| | | items: |
| | | $ref: '#/definitions/model.RegularCustomers' |
| | | type: array |
| | | sale_stage: |
| | | description: 销售阶段 |
| | | items: |
| | | $ref: '#/definitions/model.SaleStage' |
| | | type: array |
| | | sale_type: |
| | | description: 销售类型 |
| | | items: |
| | | $ref: '#/definitions/model.SaleType' |
| | | type: array |
| | | sales_source: |
| | | 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: |
| | | properties: |
| | | list: |
| | |
| | | $ref: '#/definitions/model.SalesRefund' |
| | | type: array |
| | | type: object |
| | | response.SalesReturnResponse: |
| | | properties: |
| | | list: |
| | | items: |
| | | $ref: '#/definitions/model.SalesReturn' |
| | | type: array |
| | | type: object |
| | | response.SalesSourceResponse: |
| | | properties: |
| | | list: |
| | |
| | | security: |
| | | - ApiKeyAuth: [] |
| | | summary: 创建角色 |
| | | tags: |
| | | - Authority |
| | | /api/authority/setMenuAuthority: |
| | | post: |
| | | consumes: |
| | | - application/json |
| | | parameters: |
| | | - description: 设置角色资源权限 |
| | | in: body |
| | | name: data |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.SetAuthorityMenu' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | security: |
| | | - ApiKeyAuth: [] |
| | | summary: 设置角色菜单 |
| | | tags: |
| | | - Authority |
| | | /api/base/captcha: |
| | |
| | | - City |
| | | /api/city/list: |
| | | get: |
| | | parameters: |
| | | - description: 省份ID |
| | | in: query |
| | | name: province_id |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | tags: |
| | | - Client |
| | | /api/client/update: |
| | | post: |
| | | put: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | |
| | | summary: 更新客服单 |
| | | tags: |
| | | - CustomerServiceSheet |
| | | /api/data/getAllData: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.DataResponse' |
| | | type: object |
| | | 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: |
| | |
| | | - MasterOrder |
| | | /api/menu/getMenu: |
| | | get: |
| | | parameters: |
| | | - description: Authorization |
| | | in: header |
| | | name: Authorization |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | data: |
| | | $ref: '#/definitions/response.MenuTreeResponse' |
| | | type: object |
| | | security: |
| | | - ApiKeyAuth: [] |
| | | summary: 获取菜单树 |
| | | tags: |
| | | - Menu |
| | |
| | | - Province |
| | | /api/province/list: |
| | | get: |
| | | parameters: |
| | | - description: 国家ID |
| | | in: query |
| | | name: country_id |
| | | required: true |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | - Region |
| | | /api/region/list: |
| | | get: |
| | | parameters: |
| | | - description: 城市ID |
| | | in: query |
| | | name: city_id |
| | | required: true |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.SalesReturnResponse' |
| | | type: object |
| | | summary: 获取销售退货列表 |
| | | tags: |
| | | - SalesReturn |
| | |
| | | summary: 设置用户信息 |
| | | tags: |
| | | - User |
| | | /authority/setDataAuthority: |
| | | /api/vetting/add: |
| | | post: |
| | | consumes: |
| | | - application/json |
| | | parameters: |
| | | - description: 设置角色资源权限 |
| | | - description: 查询参数 |
| | | in: body |
| | | name: data |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddAuthority' |
| | | $ref: '#/definitions/request.AddVetting' |
| | | produces: |
| | | - application/json |
| | | responses: {} |
| | | security: |
| | | - ApiKeyAuth: [] |
| | | summary: 设置角色资源权限 |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 添加审批 |
| | | tags: |
| | | - Authority |
| | | - Vetting |
| | | swagger: "2.0" |