feat: restrict permission roles
This commit is contained in:
+19
-17
@@ -110,9 +110,10 @@ definitions:
|
||||
type: string
|
||||
role:
|
||||
enum:
|
||||
- admin
|
||||
- technician
|
||||
- employee
|
||||
- software_engineer
|
||||
- hardware_engineer
|
||||
- business_manager
|
||||
- project_manager
|
||||
type: string
|
||||
username:
|
||||
type: string
|
||||
@@ -368,9 +369,10 @@ definitions:
|
||||
type: string
|
||||
role:
|
||||
enum:
|
||||
- admin
|
||||
- technician
|
||||
- employee
|
||||
- software_engineer
|
||||
- hardware_engineer
|
||||
- business_manager
|
||||
- project_manager
|
||||
type: string
|
||||
type: object
|
||||
models.User:
|
||||
@@ -441,7 +443,7 @@ info:
|
||||
paths:
|
||||
/aftersales:
|
||||
get:
|
||||
description: 支持分页、搜索、按状态/服务类型/技术员筛选
|
||||
description: 支持分页、搜索、按状态/服务类型/工单负责人筛选
|
||||
parameters:
|
||||
- description: 页码
|
||||
in: query
|
||||
@@ -463,7 +465,7 @@ paths:
|
||||
in: query
|
||||
name: serviceType
|
||||
type: string
|
||||
- description: 技术员 ID
|
||||
- description: 工单负责人 ID
|
||||
in: query
|
||||
name: technicianId
|
||||
type: integer
|
||||
@@ -754,7 +756,7 @@ paths:
|
||||
name: serialNumber
|
||||
required: true
|
||||
type: string
|
||||
- description: 新技术员 ID
|
||||
- description: 新工单负责人 ID
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
@@ -777,7 +779,7 @@ paths:
|
||||
$ref: '#/definitions/models.ErrorResponse'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 重新分配技术员
|
||||
summary: 重新分配工单负责人
|
||||
tags:
|
||||
- 售后工单
|
||||
/aftersales/{serialNumber}/site-images:
|
||||
@@ -817,7 +819,7 @@ paths:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 技术员填写处理结果后提交,工单进入"待客户确认"状态
|
||||
description: 工单负责人填写处理结果后提交,工单进入"待客户确认"状态
|
||||
parameters:
|
||||
- description: 工单号
|
||||
in: path
|
||||
@@ -1412,7 +1414,7 @@ paths:
|
||||
- 员工管理
|
||||
/project-orders:
|
||||
get:
|
||||
description: 支持分页、搜索、按状态/服务类型/技术员筛选
|
||||
description: 支持分页、搜索、按状态/服务类型/工单负责人筛选
|
||||
parameters:
|
||||
- description: 页码
|
||||
in: query
|
||||
@@ -1434,7 +1436,7 @@ paths:
|
||||
in: query
|
||||
name: serviceType
|
||||
type: string
|
||||
- description: 技术员 ID
|
||||
- description: 工单负责人 ID
|
||||
in: query
|
||||
name: technicianId
|
||||
type: integer
|
||||
@@ -1725,7 +1727,7 @@ paths:
|
||||
name: serialNumber
|
||||
required: true
|
||||
type: string
|
||||
- description: 新技术员 ID
|
||||
- description: 新工单负责人 ID
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
@@ -1748,7 +1750,7 @@ paths:
|
||||
$ref: '#/definitions/models.ErrorResponse'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 重新分配技术员
|
||||
summary: 重新分配工单负责人
|
||||
tags:
|
||||
- 项目工单
|
||||
/project-orders/{serialNumber}/site-images:
|
||||
@@ -1788,7 +1790,7 @@ paths:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 技术员填写处理结果后提交,工单进入"待完成确认"状态
|
||||
description: 工单负责人填写处理结果后提交,工单进入"待完成确认"状态
|
||||
parameters:
|
||||
- description: 工单号
|
||||
in: path
|
||||
@@ -1823,7 +1825,7 @@ paths:
|
||||
- 项目工单
|
||||
/users/assignable:
|
||||
get:
|
||||
description: 用于售后工单分配选择技术员/管理员,无需分页
|
||||
description: 用于工单分配选择可派单人员,无需分页
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user