Result->Response, actions->action
This commit is contained in:
parent
5b0047b093
commit
8cfa7d0a51
@ -23,14 +23,14 @@ Exception ActionException(message: string);
|
|||||||
*
|
*
|
||||||
* @throws ActionException
|
* @throws ActionException
|
||||||
*/
|
*/
|
||||||
handle_request (payload: Action[], user_id: Id): ActionsResult | ActionError
|
handle_request (payload: Action[], user_id: Id): ActionsResponse | ActionError
|
||||||
|
|
||||||
interface Action {
|
interface Action {
|
||||||
action: string;
|
action: string;
|
||||||
data: object[]; # An array of action specific data.
|
data: object[]; # An array of action specific data.
|
||||||
}
|
}
|
||||||
|
|
||||||
interace ActionsResult {
|
interace ActionsResponse {
|
||||||
success: true;
|
success: true;
|
||||||
message: string;
|
message: string;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user