mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2024-12-01 02:27:22 +01:00
¯\_(ツ)_/¯
This commit is contained in:
parent
cf5410f1b2
commit
4434a84a32
@ -918,9 +918,12 @@ export default class GhostModule extends Module {
|
||||
})
|
||||
|
||||
|
||||
// idk what this is this for
|
||||
// Lock Crown
|
||||
app.post('/method/lock_crown', (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wmsrv.wm.protobuf.LockCrownRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
|
@ -157,8 +157,6 @@ export default class StartupModule extends Module {
|
||||
// Ping
|
||||
app.post('/method/ping', (req, res) => {
|
||||
|
||||
console.log('ping');
|
||||
|
||||
let body = wm.wm.protobuf.PingRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
|
@ -998,13 +998,16 @@ export default class TerminalModule extends Module {
|
||||
/*
|
||||
app.post('/method/load_unreceived_user_items', async (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.LoadUnreceivedUserItemsRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
};
|
||||
|
||||
// Encode the response
|
||||
let message = wmsrv.wm.protobuf.LockStampTargetResponse.encode(msg);
|
||||
let message = wmsrv.wm.protobuf.LoadUnreceivedUserItemsResponse.encode(msg);
|
||||
|
||||
// Send the response to the client
|
||||
common.sendResponse(message, res);
|
||||
@ -1013,6 +1016,9 @@ export default class TerminalModule extends Module {
|
||||
|
||||
app.post('/method/save_screenshot', async (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.SaveScreenshotRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
@ -1028,6 +1034,9 @@ export default class TerminalModule extends Module {
|
||||
|
||||
app.post('/method/check_item_receivable_cars', async (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.CheckItemReceivableCarsRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
|
@ -666,6 +666,9 @@ export default class UserModule extends Module {
|
||||
// Start Transfer
|
||||
app.post('/method/start_transfer', (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.StartTransferRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
@ -682,6 +685,9 @@ export default class UserModule extends Module {
|
||||
// Grant Car Right
|
||||
app.post('/method/grant_car_right', (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.GrantCarRightRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
@ -698,6 +704,9 @@ export default class UserModule extends Module {
|
||||
// Ask Access Code
|
||||
app.post('/method/ask_access_code', (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.AskAccessCodeRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
@ -714,6 +723,9 @@ export default class UserModule extends Module {
|
||||
// Participate In Invite Friend Campaign
|
||||
app.post('/method/participate_in_invite_friend_campaign', (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.ParticipateInInviteFriendCampaignRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
@ -729,6 +741,9 @@ export default class UserModule extends Module {
|
||||
|
||||
app.post('/method/consume_user_item', async (req, res) => {
|
||||
|
||||
// Get the information from the request
|
||||
let body = wm.wm.protobuf.ConsumeUserItemRequest.decode(req.body);
|
||||
|
||||
// Response data
|
||||
let msg = {
|
||||
error: wmsrv.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||
|
Loading…
Reference in New Issue
Block a user