feat: restrict permission roles

This commit is contained in:
Frudrax Cheng
2026-06-06 13:50:56 +08:00
parent a55f515930
commit 5edb25ac4e
17 changed files with 229 additions and 175 deletions
+19 -17
View File
@@ -31,7 +31,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "支持分页、搜索、按状态/服务类型/技术员筛选",
"description": "支持分页、搜索、按状态/服务类型/工单负责人筛选",
"produces": [
"application/json"
],
@@ -72,7 +72,7 @@ const docTemplate = `{
},
{
"type": "integer",
"description": "技术员 ID",
"description": "工单负责人 ID",
"name": "technicianId",
"in": "query"
},
@@ -519,7 +519,7 @@ const docTemplate = `{
"tags": [
"售后工单"
],
"summary": "重新分配技术员",
"summary": "重新分配工单负责人",
"parameters": [
{
"type": "string",
@@ -529,7 +529,7 @@ const docTemplate = `{
"required": true
},
{
"description": "新技术员 ID",
"description": "新工单负责人 ID",
"name": "data",
"in": "body",
"required": true,
@@ -617,7 +617,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "技术员填写处理结果后提交,工单进入\"待客户确认\"状态",
"description": "工单负责人填写处理结果后提交,工单进入\"待客户确认\"状态",
"consumes": [
"application/json"
],
@@ -1558,7 +1558,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "支持分页、搜索、按状态/服务类型/技术员筛选",
"description": "支持分页、搜索、按状态/服务类型/工单负责人筛选",
"produces": [
"application/json"
],
@@ -1599,7 +1599,7 @@ const docTemplate = `{
},
{
"type": "integer",
"description": "技术员 ID",
"description": "工单负责人 ID",
"name": "technicianId",
"in": "query"
},
@@ -2046,7 +2046,7 @@ const docTemplate = `{
"tags": [
"项目工单"
],
"summary": "重新分配技术员",
"summary": "重新分配工单负责人",
"parameters": [
{
"type": "string",
@@ -2056,7 +2056,7 @@ const docTemplate = `{
"required": true
},
{
"description": "新技术员 ID",
"description": "新工单负责人 ID",
"name": "data",
"in": "body",
"required": true,
@@ -2144,7 +2144,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "技术员填写处理结果后提交,工单进入\"待完成确认\"状态",
"description": "工单负责人填写处理结果后提交,工单进入\"待完成确认\"状态",
"consumes": [
"application/json"
],
@@ -2202,7 +2202,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "用于售后工单分配选择技术员/管理员,无需分页",
"description": "用于工单分配选择可派单人员,无需分页",
"produces": [
"application/json"
],
@@ -2394,9 +2394,10 @@ const docTemplate = `{
"role": {
"type": "string",
"enum": [
"admin",
"technician",
"employee"
"software_engineer",
"hardware_engineer",
"business_manager",
"project_manager"
]
},
"username": {
@@ -2774,9 +2775,10 @@ const docTemplate = `{
"role": {
"type": "string",
"enum": [
"admin",
"technician",
"employee"
"software_engineer",
"hardware_engineer",
"business_manager",
"project_manager"
]
}
}