Class: DefaultReturn
default-return.dto.DefaultReturn
The default return type for requests that don't have a return value
Includes the current time and the operation performed
Constructors
constructor
• new DefaultReturn(operation, result?, time?)
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
operation | string | undefined | A string representation of the operation performed |
result | DefaultReturnResult | DefaultReturnResult.SUCCESS | The result of the operation. Optional |
time | Date | undefined | The time the operation was performed. Optional |
Defined in
gropius-login-service/backend/src/default-return.dto.ts:38
Properties
operation
• Readonly operation: string
A string representation of the operation performed
Example
"self-register"
Defined in
gropius-login-service/backend/src/default-return.dto.ts:16
result
• Readonly result: DefaultReturnResult = DefaultReturnResult.SUCCESS
The result of the operation. Defaults to "success"
Example
"success"
Defined in
gropius-login-service/backend/src/default-return.dto.ts:24
time
• Readonly time: Date
The time the operation was performed. Defaults to the current date+time