mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
perf: 支持短信验证码登录
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { IAccessService } from '@certd/pipeline';
|
||||
import { AccessService } from './access-service.js';
|
||||
|
||||
export class AccessSysGetter implements IAccessService {
|
||||
accessService: AccessService;
|
||||
constructor(accessService: AccessService) {
|
||||
this.accessService = accessService;
|
||||
}
|
||||
|
||||
async getById<T = any>(id: any) {
|
||||
return await this.accessService.getAccessById(id, false);
|
||||
}
|
||||
|
||||
async getCommonById<T = any>(id: any) {
|
||||
return await this.accessService.getAccessById(id, false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user