2020-09-30 11:33:01 +00:00
|
|
|
import RepositoryService from 'consul-ui/services/repository';
|
|
|
|
|
|
|
|
const modelName = 'intention-permission-http-header';
|
2020-11-09 09:25:35 +00:00
|
|
|
export default class IntentionPermissionHttpHeaderService extends RepositoryService {
|
|
|
|
getModelName() {
|
2020-09-30 11:33:01 +00:00
|
|
|
return modelName;
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
create(obj = {}) {
|
2020-09-30 11:33:01 +00:00
|
|
|
return this.store.createFragment(this.getModelName(), obj);
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
persist(item) {
|
2020-09-30 11:33:01 +00:00
|
|
|
return item.execute();
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
}
|