feat: restrict permission roles
This commit is contained in:
+19
-17
@@ -25,7 +25,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "支持分页、搜索、按状态/服务类型/技术员筛选",
|
||||
"description": "支持分页、搜索、按状态/服务类型/工单负责人筛选",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -66,7 +66,7 @@
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "技术员 ID",
|
||||
"description": "工单负责人 ID",
|
||||
"name": "technicianId",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -513,7 +513,7 @@
|
||||
"tags": [
|
||||
"售后工单"
|
||||
],
|
||||
"summary": "重新分配技术员",
|
||||
"summary": "重新分配工单负责人",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -523,7 +523,7 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "新技术员 ID",
|
||||
"description": "新工单负责人 ID",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -611,7 +611,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "技术员填写处理结果后提交,工单进入\"待客户确认\"状态",
|
||||
"description": "工单负责人填写处理结果后提交,工单进入\"待客户确认\"状态",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1552,7 +1552,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "支持分页、搜索、按状态/服务类型/技术员筛选",
|
||||
"description": "支持分页、搜索、按状态/服务类型/工单负责人筛选",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -1593,7 +1593,7 @@
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "技术员 ID",
|
||||
"description": "工单负责人 ID",
|
||||
"name": "technicianId",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -2040,7 +2040,7 @@
|
||||
"tags": [
|
||||
"项目工单"
|
||||
],
|
||||
"summary": "重新分配技术员",
|
||||
"summary": "重新分配工单负责人",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -2050,7 +2050,7 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "新技术员 ID",
|
||||
"description": "新工单负责人 ID",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
@@ -2138,7 +2138,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "技术员填写处理结果后提交,工单进入\"待完成确认\"状态",
|
||||
"description": "工单负责人填写处理结果后提交,工单进入\"待完成确认\"状态",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -2196,7 +2196,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "用于售后工单分配选择技术员/管理员,无需分页",
|
||||
"description": "用于工单分配选择可派单人员,无需分页",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -2388,9 +2388,10 @@
|
||||
"role": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"admin",
|
||||
"technician",
|
||||
"employee"
|
||||
"software_engineer",
|
||||
"hardware_engineer",
|
||||
"business_manager",
|
||||
"project_manager"
|
||||
]
|
||||
},
|
||||
"username": {
|
||||
@@ -2768,9 +2769,10 @@
|
||||
"role": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"admin",
|
||||
"technician",
|
||||
"employee"
|
||||
"software_engineer",
|
||||
"hardware_engineer",
|
||||
"business_manager",
|
||||
"project_manager"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user