fix : Tenant API 추가
- 테넌트 목록 조회 - 테넌트 정보 조회 - 테넌트 정보 수정 - 테넌트 등록 - 테넌트 삭제 - 테넌트 복구
This commit is contained in:
@@ -48,9 +48,6 @@ public static function getMember(int $userNo)
|
||||
*/
|
||||
public static function getMyInfo()
|
||||
{
|
||||
$debug = (app()->environment('local')) ? true : false;
|
||||
if ($debug) DB::enableQueryLog(); // 쿼리 추적
|
||||
|
||||
$apiUser = app('api_user');
|
||||
|
||||
$user = User::with([
|
||||
@@ -71,8 +68,6 @@ public static function getMyInfo()
|
||||
*/
|
||||
public static function getMyUpdate($request)
|
||||
{
|
||||
$debug = app()->environment('local');
|
||||
if ($debug) DB::enableQueryLog();
|
||||
|
||||
$apiUser = app('api_user');
|
||||
|
||||
@@ -104,9 +99,6 @@ public static function getMyUpdate($request)
|
||||
*/
|
||||
public static function setMyPassword($request)
|
||||
{
|
||||
$debug = app()->environment('local');
|
||||
if ($debug) DB::enableQueryLog();
|
||||
|
||||
$apiUserId = app('api_user'); // 현재 로그인한 사용자 PK
|
||||
|
||||
// 유효성 검사 (확인 비밀번호는 선택)
|
||||
@@ -152,8 +144,6 @@ public static function setMyPassword($request)
|
||||
*/
|
||||
public static function getMyTenants()
|
||||
{
|
||||
$debug = app()->environment('local');
|
||||
if ($debug) DB::enableQueryLog();
|
||||
|
||||
$apiUser = app('api_user');
|
||||
$data = UserTenant::join('tenants', 'user_tenants.tenant_id', '=', 'tenants.id')
|
||||
@@ -174,8 +164,6 @@ public static function getMyTenants()
|
||||
*/
|
||||
public static function switchMyTenant(int $tenantId)
|
||||
{
|
||||
$debug = app()->environment('local');
|
||||
if ($debug) DB::enableQueryLog();
|
||||
|
||||
$apiUser = app('api_user');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user