Add GetMessageAddressee endpoint
This commit is contained in:
parent
5774d31cbf
commit
1d36a28cdf
1 changed files with 19 additions and 0 deletions
|
@ -26,6 +26,7 @@ router.get("/-endpoints", (req, res) => {
|
|||
"/Wiadomosc.mvc/GetTrashboxMessageDetails",
|
||||
"/Wiadomosc.mvc/GetAdresaciNiePrzeczytaliWiadomosci",
|
||||
"/Wiadomosc.mvc/GetAdresaciPrzeczytaliWiadomosc",
|
||||
"/Wiadomosc.mvc/GetMessageAddressee",
|
||||
"/Wiadomosc.mvc/DeleteInboxMessages",
|
||||
"/Wiadomosc.mvc/DeleteOutboxMessages",
|
||||
"/Wiadomosc.mvc/DeleteTrashboxMessages",
|
||||
|
@ -262,6 +263,24 @@ router.all('/Wiadomosc.mvc/GetAdresaciPrzeczytaliWiadomosc', (req, res) => {
|
|||
});
|
||||
});
|
||||
|
||||
router.all("/Wiadomosc.mvc/GetMessageAddressee", (req, res) => {
|
||||
const user = require("../../data/api/ListaUczniow")[1];
|
||||
const recipient = require("../../data/api/dictionaries/Pracownicy")[1];
|
||||
res.json({
|
||||
"success": true,
|
||||
"data": [
|
||||
{
|
||||
"Nazwa": `${recipient.Imie} ${recipient.Nazwisko} [${recipient.Kod}] - pracownik (${user.JednostkaSprawozdawczaSkrot})`,
|
||||
"Data": "2020-04-07 19:05:00",
|
||||
"Id": recipient.Id * 8, // ¯\_(ツ)_/¯
|
||||
"IdLogin": recipient.LoginId,
|
||||
"Role": 7,
|
||||
"Hash": "abcd==",
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
router.all([
|
||||
"/Wiadomosc.mvc/DeleteInboxMessages",
|
||||
"/Wiadomosc.mvc/DeleteOutboxMessages",
|
||||
|
|
Loading…
Reference in a new issue