Skip to content

Commit

Permalink
feat: update operation IDs in DepartmentController for clarity and co…
Browse files Browse the repository at this point in the history
…nsistency
  • Loading branch information
zds-s committed Mar 10, 2025
1 parent 1ab2925 commit e49cfd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Http/Admin/Controller/Permission/DepartmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(

#[Get(
path: '/admin/department/list',
operationId: 'roleList',
operationId: 'departmentList',
summary: '岗位列表',
security: [['Bearer' => [], 'ApiKey' => []]],
tags: ['岗位管理'],
Expand All @@ -66,7 +66,7 @@ public function pageList(): Result

#[Post(
path: '/admin/department',
operationId: 'roleCreate',
operationId: 'departmentCreate',
summary: '创建岗位',
security: [['Bearer' => [], 'ApiKey' => []]],
tags: ['岗位管理'],
Expand All @@ -86,7 +86,7 @@ public function create(DepartmentRequest $request): Result

#[Put(
path: '/admin/department/{id}',
operationId: 'roleSave',
operationId: 'departmentSave',
summary: '保存岗位',
security: [['Bearer' => [], 'ApiKey' => []]],
tags: ['岗位管理'],
Expand All @@ -106,7 +106,7 @@ public function save(int $id, DepartmentRequest $request): Result

#[Delete(
path: '/admin/department',
operationId: 'roleDelete',
operationId: 'departmentDelete',
summary: '删除岗位',
security: [['Bearer' => [], 'ApiKey' => []]],
tags: ['岗位管理'],
Expand Down

0 comments on commit e49cfd5

Please sign in to comment.