This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2022-07-21 16:56:31 +00:00
|
|
|
import AbstractService from './abstractService'
|
2022-09-06 09:36:01 +00:00
|
|
|
import TaskRelationModel from '@/models/taskRelation'
|
|
|
|
import type {ITaskRelation} from '@/modelTypes/ITaskRelation'
|
2022-07-21 16:56:31 +00:00
|
|
|
|
|
|
|
export default class TaskRelationService extends AbstractService<ITaskRelation> {
|
2019-10-28 21:45:37 +00:00
|
|
|
constructor() {
|
|
|
|
super({
|
2020-04-12 21:54:46 +00:00
|
|
|
create: '/tasks/{taskId}/relations',
|
2021-02-18 22:36:06 +00:00
|
|
|
delete: '/tasks/{taskId}/relations/{relationKind}/{otherTaskId}',
|
2019-10-28 21:45:37 +00:00
|
|
|
})
|
|
|
|
}
|
2020-02-08 13:16:06 +00:00
|
|
|
|
2019-10-28 21:45:37 +00:00
|
|
|
modelFactory(data) {
|
|
|
|
return new TaskRelationModel(data)
|
|
|
|
}
|
|
|
|
}
|