feat: 사원-회원 연결 기능 구현 (Phase 2 API)
- store() 수정: create_account=false면 password=NULL 허용 (사원 전용)
- revokeAccount() 추가: 시스템 계정 해제 (password=NULL, 토큰 무효화)
- POST /employees/{id}/revoke-account 라우트 추가
- ko/employee.php, en/employee.php 언어 파일 생성
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
22
lang/en/employee.php
Normal file
22
lang/en/employee.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Employee management messages
|
||||
* - Account management (create/revoke)
|
||||
* - Employee status changes
|
||||
*/
|
||||
return [
|
||||
// Account management
|
||||
'account_created' => 'System account has been created.',
|
||||
'account_revoked' => 'System account has been revoked.',
|
||||
'no_account' => 'This employee does not have a system account.',
|
||||
'already_has_account' => 'This employee already has a system account.',
|
||||
|
||||
// Employee status
|
||||
'status_changed' => 'Employee status has been changed.',
|
||||
'resigned' => 'Employee has been marked as resigned.',
|
||||
|
||||
// Employee registration
|
||||
'created_employee_only' => 'Employee registered. (No login account)',
|
||||
'created_with_account' => 'Employee registered. (System account created)',
|
||||
];
|
||||
22
lang/ko/employee.php
Normal file
22
lang/ko/employee.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 사원 관리 관련 메시지
|
||||
* - 계정 관리 (생성/해제)
|
||||
* - 사원 상태 변경
|
||||
*/
|
||||
return [
|
||||
// 계정 관리
|
||||
'account_created' => '시스템 계정이 생성되었습니다.',
|
||||
'account_revoked' => '시스템 계정이 해제되었습니다.',
|
||||
'no_account' => '시스템 계정이 없는 사원입니다.',
|
||||
'already_has_account' => '이미 시스템 계정을 보유하고 있습니다.',
|
||||
|
||||
// 사원 상태
|
||||
'status_changed' => '사원 상태가 변경되었습니다.',
|
||||
'resigned' => '퇴직 처리되었습니다.',
|
||||
|
||||
// 사원 등록
|
||||
'created_employee_only' => '사원이 등록되었습니다. (로그인 계정 없음)',
|
||||
'created_with_account' => '사원이 등록되었습니다. (시스템 계정 생성됨)',
|
||||
];
|
||||
Reference in New Issue
Block a user