mirror of
https://github.com/certd/certd.git
synced 2026-06-26 21:43:27 +08:00
16 lines
441 B
TypeScript
16 lines
441 B
TypeScript
|
|
import { FormItemProps, IAccessService } from '@certd/pipeline';
|
||
|
|
|
||
|
|
export interface ISmsService {
|
||
|
|
sendSmsCode(opts: { mobile: string; code: string; phoneCode: string }): Promise<void>;
|
||
|
|
setCtx(ctx: { accessService: IAccessService; config: { [key: string]: any } }): void;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type PluginInputs<T = any> = {
|
||
|
|
[key in keyof T]: FormItemProps;
|
||
|
|
};
|
||
|
|
|
||
|
|
export type SmsPluginCtx<T = any> = {
|
||
|
|
accessService: IAccessService;
|
||
|
|
config: T;
|
||
|
|
};
|