From 3ca5fdfbf0c8fb80ba8ad2a6344f07ea57cb42dd Mon Sep 17 00:00:00 2001 From: ghkkk090 <108461408+ghkkk090@users.noreply.github.com> Date: Thu, 18 Aug 2022 21:33:32 +0700 Subject: [PATCH] add some misc --- src/modules/ghost.ts | 32 ++++++++++++++++++++++ src/modules/startup.ts | 60 +++++++++++++++++++++++++++++++++++++++++ src/modules/terminal.ts | 47 ++++++++++++++++++++++++++++++++ src/modules/users.ts | 55 +++++++++++++++++++++++++++++++++++++ 4 files changed, 194 insertions(+) diff --git a/src/modules/ghost.ts b/src/modules/ghost.ts index 82b9221..a46df45 100644 --- a/src/modules/ghost.ts +++ b/src/modules/ghost.ts @@ -636,5 +636,37 @@ export default class GhostModule extends Module { // Send the response to the client common.sendResponse(message, res); }) + + + /* + app.post('/method/lock_stamp_target', async (req, res) => { + + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.LockStampTargetResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + + + app.get('/resource/ghost_list', async (req, res) => { + + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.GhostList.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + */ } } \ No newline at end of file diff --git a/src/modules/startup.ts b/src/modules/startup.ts index 0842659..b5aea81 100644 --- a/src/modules/startup.ts +++ b/src/modules/startup.ts @@ -610,5 +610,65 @@ export default class StartupModule extends Module { // Send the response to the client common.sendResponse(message, res); }) + + + /* + app.post('/method/register_system_stats', async (req, res) => { + + // Response data + let msg = { + error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS, + } + + // Encode the response + let message = wm.wm.protobuf.RegisterSystemStatsResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + + + app.post('/method/update_event_mode_serial', async (req, res) => { + + // Response data + let msg = { + error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS, + } + + // Encode the response + let message = wm.wm.protobuf.UpdateEventModeSerialResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + + app.post('/method/submit_client_log', async (req, res) => { + + // Response data + let msg = { + error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS, + } + + // Encode the response + let message = wm.wm.protobuf.SubmitClientLogResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + + app.get('/resource/file_list', async (req, res) => { + + // Response data + let msg = { + error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS, + } + + // Encode the response + let message = wm.wm.protobuf.FileList.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + */ } } diff --git a/src/modules/terminal.ts b/src/modules/terminal.ts index b5e6bdf..b02c436 100644 --- a/src/modules/terminal.ts +++ b/src/modules/terminal.ts @@ -968,5 +968,52 @@ export default class TerminalModule extends Module { // Send the response to the client common.sendResponse(message, res); }) + + + /* + app.post('/method/load_unreceived_user_items', async (req, res) => { + + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.LockStampTargetResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + + + app.post('/method/save_screenshot', async (req, res) => { + + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.SaveScreenshotResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + + + app.post('/method/check_item_receivable_cars', async (req, res) => { + + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.CheckItemReceivableCarsResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) + */ } } \ No newline at end of file diff --git a/src/modules/users.ts b/src/modules/users.ts index cc1d020..9b5436b 100644 --- a/src/modules/users.ts +++ b/src/modules/users.ts @@ -656,25 +656,80 @@ export default class UserModule extends Module { // Start Transfer app.post('/method/start_transfer', (req, res) => { + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.StartTransferResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); }); // Grant Car Right app.post('/method/grant_car_right', (req, res) => { + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.GrantCarRightResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); }); // Ask Access Code app.post('/method/ask_access_code', (req, res) => { + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.AskAccessCodeResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); }); // Participate In Invite Friend Campaign app.post('/method/participate_in_invite_friend_campaign', (req, res) => { + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.ParticipateInInviteFriendCampaignResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); }); + + + app.post('/method/consume_user_item', async (req, res) => { + + // Response data + let msg = { + error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS, + }; + + // Encode the response + let message = wmsrv.wm.protobuf.ConsumeUserItemResponse.encode(msg); + + // Send the response to the client + common.sendResponse(message, res); + }) */ } } \ No newline at end of file