Skip to content

Commit 5dbc7df

Browse files
committed
refactor: 인터페이스 네이밍 파스칼 케이스로 수정
1 parent 680a46f commit 5dbc7df

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

server/apis/auth/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import asyncWrapper from '@utils/async-wrapper';
33
import jwtAuthenticator from '@middlewares/jwt-authenticator';
44
import * as authService from './service';
55
import { OK, CREATED } from '@constants/http-status';
6-
import { postLoginParams } from '@params/auth';
6+
import { PostLoginParams } from '@params/auth';
77

88
interface CookieOptions {
99
httpOnly: boolean;
@@ -24,7 +24,7 @@ router.get(
2424

2525
router.post(
2626
'/login',
27-
asyncWrapper(async (req: Request<postLoginParams>, res: Response) => {
27+
asyncWrapper(async (req: Request<PostLoginParams>, res: Response) => {
2828
const { code } = req.body;
2929

3030
const { user, loginToken, refreshToken } = await authService.login(code);

server/apis/user/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import express, { Request, Response } from 'express';
22
import asyncWrapper from '@utils/async-wrapper';
33
import * as userService from './service';
44
import jwtAuthenticator from '@middlewares/jwt-authenticator';
5-
import { getWorkspaceParams } from '@params/user';
5+
import { GetWorkspaceParams } from '@params/user';
66

77
const router = express.Router();
88

99
router.get(
1010
'/:id/workspace',
1111
jwtAuthenticator,
12-
asyncWrapper(async (req: Request<getWorkspaceParams>, res: Response) => {
12+
asyncWrapper(async (req: Request<GetWorkspaceParams>, res: Response) => {
1313
const { id: userId } = req.user;
1414
const { id: targetUserId } = req.params;
1515

server/apis/workspace/controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import asyncWrapper from '@utils/async-wrapper';
33
import jwtAuthenticator from '@middlewares/jwt-authenticator';
44
import * as workspaceService from './service';
55
import { CREATED } from '@constants/http-status';
6-
import { postParams, postJoinParams } from '@params/workspace';
6+
import { PostParams, PostJoinParams } from '@params/workspace';
77

88
const router = express.Router();
99

1010
router.post(
1111
'/',
12-
asyncWrapper(async (req: Request<postParams>, res: Response) => {
12+
asyncWrapper(async (req: Request<PostParams>, res: Response) => {
1313
const { name } = req.body;
1414

1515
const workspace = await workspaceService.create(name);
@@ -21,7 +21,7 @@ router.post(
2121
router.post(
2222
'/join',
2323
jwtAuthenticator,
24-
asyncWrapper(async (req: Request<postJoinParams>, res: Response) => {
24+
asyncWrapper(async (req: Request<PostJoinParams>, res: Response) => {
2525
const { code } = req.body;
2626

2727
const joinedWorkspace = await workspaceService.join(req.user.id, code);

types/params/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export interface postLoginParams {
1+
export interface PostLoginParams {
22
code: string;
33
}

types/params/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export interface getWorkspaceParams {
1+
export interface GetWorkspaceParams {
22
id: number;
33
}

types/params/workspace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export interface postParams {
1+
export interface PostParams {
22
name: string;
33
}
44

5-
export interface postJoinParams {
5+
export interface PostJoinParams {
66
code: string;
77
}

0 commit comments

Comments
 (0)