check phone repo
This commit is contained in:
@@ -1 +1,14 @@
|
||||
// TODO: define your code
|
||||
import '../../domain/auth/auth.dart';
|
||||
|
||||
extension StringExt on String {
|
||||
CheckPhoneStatus toCheckPhoneStatus() {
|
||||
switch (this) {
|
||||
case 'NO_REGISTERED':
|
||||
return CheckPhoneStatus.notRegistered;
|
||||
case 'PASSWORD_REQUIRED':
|
||||
return CheckPhoneStatus.passwordRequired;
|
||||
default:
|
||||
return CheckPhoneStatus.unknown;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
class ApiPath {
|
||||
static String checkPhone = '/api/v1/customer-auth/check-phone';
|
||||
}
|
||||
Reference in New Issue
Block a user