- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> Ticket system list -> Ticket system create ticket -> Ticket system translation!
Showing
22 changed files
with
1,564 additions
and
1,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of MythicalClient. | ||
* Please view the LICENSE file that was distributed with this source code. | ||
* | ||
* # MythicalSystems License v2.0 | ||
* | ||
* ## Copyright (c) 2021–2025 MythicalSystems and Cassian Gherman | ||
* | ||
* Breaking any of the following rules will result in a permanent ban from the MythicalSystems community and all of its services. | ||
*/ | ||
|
||
use MythicalClient\App; | ||
use MythicalClient\Chat\Session; | ||
use MythicalClient\Chat\Tickets; | ||
use MythicalClient\Chat\columns\UserColumns; | ||
|
||
$router->get('/api/user/ticket/list', function () { | ||
App::init(); | ||
$appInstance = App::getInstance(true); | ||
$appInstance->allowOnlyGET(); | ||
$s = new Session($appInstance); | ||
|
||
$tickets = Tickets::getAllTicketsByUser($s->getInfo(UserColumns::UUID, false), 150); | ||
|
||
$appInstance->OK('Tickets', [ | ||
'tickets' => $tickets, | ||
]); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
backend/storage/migrations/2025-01-21-12.50-add-status-tickets.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE `mythicalclient_tickets` ADD `status` ENUM('open','closed','waiting','replied','inprogress') NOT NULL DEFAULT 'open' AFTER `priority`; |
Oops, something went wrong.