wechat的endpoint

This commit is contained in:
Xu Chang 2023-01-19 22:48:48 +08:00
parent ef518fbdfc
commit be741a5628
6 changed files with 10 additions and 12 deletions

View File

@ -1,4 +1,4 @@
declare const _default: {
wechat: import("oak-domain/lib/types").Endpoint<import("../general-app-domain").EntityDict, import("../types/RuntimeCxt").BRC>[];
[x: string]: import("oak-domain/lib/types").Endpoint<import("../general-app-domain").EntityDict, import("../types/RuntimeCxt").BRC>;
};
export default _default;

View File

@ -2,6 +2,4 @@
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var wechat_1 = tslib_1.__importDefault(require("./wechat"));
exports.default = {
wechat: wechat_1.default,
};
exports.default = tslib_1.__assign({}, wechat_1.default);

View File

@ -1,5 +1,5 @@
import { Endpoint } from 'oak-domain/lib/types/Endpoint';
import { EntityDict } from '../general-app-domain';
import { BRC } from '../types/RuntimeCxt';
declare const endpoints: Array<Endpoint<EntityDict, BRC>>;
declare const endpoints: Record<string, Endpoint<EntityDict, BRC>>;
export default endpoints;

View File

@ -1,8 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var endpoints = [
{
var endpoints = {
wechatApi: {
name: '微信公众号回调接口',
method: 'post',
params: ['appId'],
@ -14,5 +14,5 @@ var endpoints = [
});
}); },
}
];
};
exports.default = endpoints;

View File

@ -2,5 +2,5 @@ import wechat from './wechat';
export default {
wechat,
...wechat,
};

View File

@ -2,8 +2,8 @@ import { Endpoint } from 'oak-domain/lib/types/Endpoint';
import { EntityDict } from '../general-app-domain';
import { BRC } from '../types/RuntimeCxt';
const endpoints: Array<Endpoint<EntityDict, BRC>> = [
{
const endpoints: Record<string, Endpoint<EntityDict, BRC>> = {
wechatApi: {
name: '微信公众号回调接口',
method: 'post',
params: ['appId'],
@ -12,6 +12,6 @@ const endpoints: Array<Endpoint<EntityDict, BRC>> = [
throw new Error('not implemented yet');
},
}
];
};
export default endpoints;