oak-general-business/lib/aspects/token.js

26 lines
916 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loginByPassword = exports.loginMp = void 0;
async function loginMp(params, context) {
const { rowStore } = context;
throw new Error('method not implemented!');
}
exports.loginMp = loginMp;
async function loginByPassword(params, context) {
const { rowStore } = context;
const { result: [mobile] } = await rowStore.select('mobile', {
data: {
id: 1,
mobile: 1,
userId: 1,
},
}, context);
throw new Error('method not implemented!');
}
exports.loginByPassword = loginByPassword;
/* export type AspectDict<ED extends EntityDict> = {
loginMp: (params: { code: string }, context: GeneralRuntimeContext<ED>) => Promise<string>;
loginByPassword: (params: { password: string, mobile: string }, context: GeneralRuntimeContext<ED>) => Promise<string>;
};
*/