Compare commits

..

No commits in common. "3ebc5ea5571abec8f95cc7acc8828ea006230cd4" and "669717f656b8daa0050a4cf0b85c2bb33a8f5d6b" have entirely different histories.

1 changed files with 7 additions and 8 deletions

View File

@ -1,15 +1,14 @@
// 공차중계 운전자 컨트롤러
import { Response } from "express";
import { Request, Response } from "express";
import { query } from "../database/db";
import { logger } from "../utils/logger";
import { AuthenticatedRequest } from "../types/auth";
export class DriverController {
/**
* GET /api/driver/profile
*
*/
static async getProfile(req: AuthenticatedRequest, res: Response): Promise<void> {
static async getProfile(req: Request, res: Response): Promise<void> {
try {
const userId = req.user?.userId;
@ -86,7 +85,7 @@ export class DriverController {
* PUT /api/driver/profile
* (, , , , )
*/
static async updateProfile(req: AuthenticatedRequest, res: Response): Promise<void> {
static async updateProfile(req: Request, res: Response): Promise<void> {
try {
const userId = req.user?.userId;
@ -184,7 +183,7 @@ export class DriverController {
* PUT /api/driver/status
* (/ )
*/
static async updateStatus(req: AuthenticatedRequest, res: Response): Promise<void> {
static async updateStatus(req: Request, res: Response): Promise<void> {
try {
const userId = req.user?.userId;
@ -247,7 +246,7 @@ export class DriverController {
* DELETE /api/driver/vehicle
* (user_id = NULL , )
*/
static async deleteVehicle(req: AuthenticatedRequest, res: Response): Promise<void> {
static async deleteVehicle(req: Request, res: Response): Promise<void> {
try {
const userId = req.user?.userId;
@ -304,7 +303,7 @@ export class DriverController {
* POST /api/driver/vehicle
*
*/
static async registerVehicle(req: AuthenticatedRequest, res: Response): Promise<void> {
static async registerVehicle(req: Request, res: Response): Promise<void> {
try {
const userId = req.user?.userId;
const companyCode = req.user?.companyCode;
@ -401,7 +400,7 @@ export class DriverController {
* DELETE /api/driver/account
* ( )
*/
static async deleteAccount(req: AuthenticatedRequest, res: Response): Promise<void> {
static async deleteAccount(req: Request, res: Response): Promise<void> {
try {
const userId = req.user?.userId;