mirror of
https://github.com/certd/certd.git
synced 2026-07-31 09:57:35 +08:00
16 lines
453 B
TypeScript
16 lines
453 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 } }): Promise<void>;
|
|
}
|
|
|
|
export type PluginInputs<T = any> = {
|
|
[key in keyof T]: FormItemProps;
|
|
};
|
|
|
|
export type SmsPluginCtx<T = any> = {
|
|
accessService: IAccessService;
|
|
config: T;
|
|
};
|