初始提交
This commit is contained in:
14
bin/service/TokenService.dart
Normal file
14
bin/service/TokenService.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:EasyDartModule/EasyDartModule.dart';
|
||||
|
||||
import '../repository/AreaRepository.dart';
|
||||
|
||||
class TokenService {
|
||||
final AreaRepository areaRepository = AreaRepository();
|
||||
|
||||
TokenService();
|
||||
|
||||
// 获取token信息
|
||||
Future<String?> getToken(String oid) async {
|
||||
return await EasyDartModule.redis.get("oid_token_"+oid);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user