Files
certd/packages/ui/certd-server/src/modules/basic/sms/api.ts
T

16 lines
441 B
TypeScript
Raw Normal View History

2024-11-28 17:36:45 +08:00
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;
};