| Line 30... |
Line 30... |
| 30 |
struct Message{
|
30 |
struct Message{
|
| 31 |
1:i64 id,
|
31 |
1:i64 id,
|
| 32 |
2:string message
|
32 |
2:string message
|
| 33 |
}
|
33 |
}
|
| 34 |
|
34 |
|
| - |
|
35 |
struct DashboardUser{
|
| - |
|
36 |
1:string username,
|
| - |
|
37 |
2:string password,
|
| - |
|
38 |
3:i64 dispatchTime,
|
| - |
|
39 |
4:i64 deliveryTime
|
| - |
|
40 |
}
|
| - |
|
41 |
|
| 35 |
service HelperService{
|
42 |
service HelperService{
|
| 36 |
|
43 |
|
| 37 |
void sendMail(1:Mail mail) throws (1:HelperServiceException se),
|
44 |
void sendMail(1:Mail mail) throws (1:HelperServiceException se),
|
| 38 |
void sendText(1:TextMessage message) throws (1:HelperServiceException se),
|
45 |
void sendText(1:TextMessage message) throws (1:HelperServiceException se),
|
| 39 |
|
46 |
|
| 40 |
void addMessage(1:Message message) throws (1:HelperServiceException se),
|
47 |
void addMessage(1:Message message) throws (1:HelperServiceException se),
|
| 41 |
void updateMessage(1:i64 id, 2:string message) throws (1:HelperServiceException se),
|
48 |
void updateMessage(1:i64 id, 2:string message) throws (1:HelperServiceException se),
|
| 42 |
Message getMessage(1:i64 id) throws (1:HelperServiceException se),
|
49 |
Message getMessage(1:i64 id) throws (1:HelperServiceException se),
|
| 43 |
Message getSubstitutedMessage(1:i64 id, 2:map<string,string> params) throws (1:HelperServiceException se)
|
50 |
Message getSubstitutedMessage(1:i64 id, 2:map<string,string> params) throws (1:HelperServiceException se),
|
| - |
|
51 |
|
| - |
|
52 |
//authenticate dashboard users
|
| - |
|
53 |
bool addUser(1:string username, 2:string password, 3:i64 warehouseId) throws (1:HelperServiceException se),
|
| - |
|
54 |
bool deleteUser(1:string username) throws (1:HelperServiceException se),
|
| - |
|
55 |
i64 authenticateUser(1:string username, 2:string password) throws (1:HelperServiceException se),
|
| - |
|
56 |
bool updatePassword(1:string username, 2:string oldPassword, 3:string newPassword) throws (1:HelperServiceException se)
|
| 44 |
}
|
57 |
}
|
| 45 |
|
58 |
|