will-core
Version:
core module
58 lines (57 loc) • 1.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SchemeHandler = void 0;
const will_api_1 = require("will-api");
const VerifyError_1 = require("../models/VerifyError");
const SystemHandler_1 = require("../handlers/SystemHandler");
class SchemeHandler extends SystemHandler_1.SystemHandler {
async get(context) {
return this.callFunctional(context, { operate: "get", raw: false }, this.doGet);
}
async edit(context) {
return this.callFunctional(context, { operate: "edit", raw: false }, this.doEdit);
}
async html(context) {
return this.callFunctional(context, { operate: "html", raw: true }, this.doHtml);
}
async doEdit(context, model) {
return this.notImplementation();
}
async doGet(context, model) {
return this.notImplementation();
}
async doHtml(context, model) {
return Promise.reject(new VerifyError_1.VerifyError("Not implemented", will_api_1.HTTP.NOT_IMPLEMENTED, -16005));
}
async doClear(context, model) {
return this.notImplementation();
}
async doCreate(context, model) {
return this.notImplementation();
}
async doExecute(context, model) {
return this.notImplementation();
}
async doList(context, model) {
return this.notImplementation();
}
async doFind(context, model) {
return this.notImplementation();
}
async doInsert(context, model) {
return this.notImplementation();
}
async doRetrieve(context, model) {
return this.notImplementation();
}
async doUpdate(context, model) {
return this.notImplementation();
}
async doRemove(context, model) {
return this.notImplementation();
}
async doCollect(context, model) {
return this.notImplementation();
}
}
exports.SchemeHandler = SchemeHandler;