mirror of
https://github.com/certd/certd.git
synced 2026-06-26 21:43:27 +08:00
perf: 支持短信验证码登录
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user