[feat] negodata: 회원관리 / 최고관리자(OWNER)
- OWNER 권한 신설, 최고관리자가 자기 회사 소속 직원(USER) 계정 생성·수정·삭제 관리 - 회사 사용자 API(/v1/company/user/*), 회원관리 페이지·폼 - 로그인/프로필 흐름 정비, 무인증 계정생성(/auth/create) 제거 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
7da1925365
commit
a40257ddc1
45 files changed
+1928
-150
No files matched your search
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { CompanyUserDataName } from './companyUserDataName';
|
||||
import type { CompanyUserDataEmail } from './companyUserDataEmail';
|
||||
import type { CompanyUserDataContactNumber } from './companyUserDataContactNumber';
|
||||
import type { UserStatus } from './userStatus';
|
||||
import type { UserRole } from './userRole';
|
||||
import type { CompanyUserDataLastAccessedAt } from './companyUserDataLastAccessedAt';
|
||||
import type { CompanyUserDataCreatedAt } from './companyUserDataCreatedAt';
|
||||
import type { CompanyUserDataUpdatedAt } from './companyUserDataUpdatedAt';
|
||||
|
||||
export interface CompanyUserData {
|
||||
user_id: string;
|
||||
company_id: string;
|
||||
id: string;
|
||||
name?: CompanyUserDataName;
|
||||
email?: CompanyUserDataEmail;
|
||||
contact_number?: CompanyUserDataContactNumber;
|
||||
status: UserStatus;
|
||||
role: UserRole;
|
||||
last_accessed_at?: CompanyUserDataLastAccessedAt;
|
||||
created_at?: CompanyUserDataCreatedAt;
|
||||
updated_at?: CompanyUserDataUpdatedAt;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type CompanyUserDataContactNumber = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type CompanyUserDataCreatedAt = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type CompanyUserDataEmail = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type CompanyUserDataLastAccessedAt = string | null;
|
||||
+1
-1
@@ -5,4 +5,4 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResCreateAccountMsg = string | null;
|
||||
export type CompanyUserDataName = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type CompanyUserDataUpdatedAt = string | null;
|
||||
+1
-3
@@ -5,12 +5,10 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface ReqCreateAccount {
|
||||
export interface ReqCreateCompanyUser {
|
||||
id?: string;
|
||||
password?: string;
|
||||
company_id?: string;
|
||||
name?: string;
|
||||
email?: string;
|
||||
contact_number?: string;
|
||||
role?: number;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdateCompanyUserName } from './reqUpdateCompanyUserName';
|
||||
import type { ReqUpdateCompanyUserEmail } from './reqUpdateCompanyUserEmail';
|
||||
import type { ReqUpdateCompanyUserContactNumber } from './reqUpdateCompanyUserContactNumber';
|
||||
import type { ReqUpdateCompanyUserStatus } from './reqUpdateCompanyUserStatus';
|
||||
import type { ReqUpdateCompanyUserPassword } from './reqUpdateCompanyUserPassword';
|
||||
|
||||
export interface ReqUpdateCompanyUser {
|
||||
name?: ReqUpdateCompanyUserName;
|
||||
email?: ReqUpdateCompanyUserEmail;
|
||||
contact_number?: ReqUpdateCompanyUserContactNumber;
|
||||
status?: ReqUpdateCompanyUserStatus;
|
||||
password?: ReqUpdateCompanyUserPassword;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReqUpdateCompanyUserContactNumber = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReqUpdateCompanyUserEmail = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReqUpdateCompanyUserName = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReqUpdateCompanyUserPassword = string | null;
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { UserStatus } from './userStatus';
|
||||
|
||||
export type ReqUpdateCompanyUserStatus = UserStatus | null;
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCompanyUserMsg } from './resCompanyUserMsg';
|
||||
import type { ResCompanyUserUser } from './resCompanyUserUser';
|
||||
|
||||
export interface ResCompanyUser {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResCompanyUserMsg;
|
||||
user?: ResCompanyUserUser;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCompanyUserListMsg } from './resCompanyUserListMsg';
|
||||
import type { CompanyUserData } from './companyUserData';
|
||||
|
||||
export interface ResCompanyUserList {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResCompanyUserListMsg;
|
||||
total?: number;
|
||||
page?: number;
|
||||
size?: number;
|
||||
users?: CompanyUserData[];
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResCompanyUserListMsg = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResCompanyUserMsg = string | null;
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { CompanyUserData } from './companyUserData';
|
||||
|
||||
export type ResCompanyUserUser = CompanyUserData | null;
|
||||
+3
-4
@@ -5,10 +5,9 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCreateAccountMsg } from './resCreateAccountMsg';
|
||||
import type { ResDeleteCompanyUserMsg } from './resDeleteCompanyUserMsg';
|
||||
|
||||
export interface ResCreateAccount {
|
||||
export interface ResDeleteCompanyUser {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResCreateAccountMsg;
|
||||
user_id?: string;
|
||||
msg?: ResDeleteCompanyUserMsg;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResDeleteCompanyUserMsg = string | null;
|
||||
@@ -6,7 +6,9 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* users.role 코드값.
|
||||
* users.role 코드값. negodata 유저는 전부 회사 직원(관리자측) —
|
||||
의미 있는 구분은 '직원 계정 관리 권한 유무' 하나뿐이라 2단계로 둔다.
|
||||
1=일반, 2=최고관리자(직원 계정 생성·관리).
|
||||
*/
|
||||
export type UserRole = typeof UserRole[keyof typeof UserRole];
|
||||
|
||||
@@ -14,5 +16,5 @@ export type UserRole = typeof UserRole[keyof typeof UserRole];
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const UserRole = {
|
||||
USER: 1,
|
||||
MANAGER: 2,
|
||||
OWNER: 2,
|
||||
} as const;
|
||||
Reference in new issue
Block a user