dazjsx
Version:
参考nestjs,基于KOA2的一款轻量级的后端开发框架
35 lines (34 loc) • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomCode = exports.Constant = exports.HttpMethod = exports.Param = void 0;
var Param;
(function (Param) {
Param["BODY"] = "body";
Param["HEADERS"] = "headers";
Param["COOKIES"] = "cookies";
Param["QUERY"] = "query";
Param["PARAMS"] = "params";
Param["USER"] = "user";
})(Param = exports.Param || (exports.Param = {}));
var HttpMethod;
(function (HttpMethod) {
HttpMethod["GET"] = "GET";
HttpMethod["DELETE"] = "DELETE";
HttpMethod["POST"] = "POST";
HttpMethod["PATCH"] = "PATCH";
HttpMethod["PUT"] = "PUT";
})(HttpMethod = exports.HttpMethod || (exports.HttpMethod = {}));
exports.Constant = {
NL: '',
DP: '/',
CT: 'constructor',
FN: 'function',
CL: 'controller',
};
var CustomCode;
(function (CustomCode) {
CustomCode[CustomCode["SUCCESS_CODE"] = 40000] = "SUCCESS_CODE";
CustomCode[CustomCode["ERROR_CODE"] = 40001] = "ERROR_CODE";
CustomCode[CustomCode["NOT_FOUND_CODE"] = 40002] = "NOT_FOUND_CODE";
CustomCode[CustomCode["NO_AUTH"] = 40003] = "NO_AUTH";
})(CustomCode = exports.CustomCode || (exports.CustomCode = {}));