oak-general-business/es/aspects/wechatQrCode.d.ts

23 lines
989 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { EntityDict } from "../oak-app-domain";
import { QrCodeType } from '../types/Config';
import { WechatQrCodeProps } from '../oak-app-domain/WechatQrCode/Schema';
import { BRC } from '../types/RuntimeCxt';
/**
* 生成二维码优先级如下:
* 0如果在SystemConfig中指定了qrCodeType则按照qrCodeType去生成
* 1如果有服务号优先生成关注服务号的带参二维码
* 2如果有小程序优先生成小程序的二维码如果小程序中配置了qrCodePrefix其次生成小程序码
* @param options
* @param context
* @returns
*/
export declare function createWechatQrCode<ED extends EntityDict, T extends keyof ED>(options: {
entity: T;
entityId: string;
tag?: string;
permanent?: boolean;
type?: QrCodeType;
props: WechatQrCodeProps;
}, context: BRC<ED>): Promise<void>;
export declare function getMpUnlimitWxaCode<ED extends EntityDict>(wechatQrCodeId: string, context: BRC<ED>): Promise<string>;