new Service()
- Source
Methods
add(data)
Parameters:
| Name | Type | Description |
|---|---|---|
data | * |
- Source
delete(id)
Parameters:
| Name | Type | Description |
|---|---|---|
id | * |
- Source
getAll()
- Source
getBy(where)
Parameters:
| Name | Type | Description |
|---|---|---|
where | object |
- Source
getOne(id)
Parameters:
| Name | Type | Description |
|---|---|---|
id | * |
- Source
update(id, data)
Parameters:
| Name | Type | Description |
|---|---|---|
id | * | |
data | * |
- Source