location has been enabled in addition to sending the domain
This commit is contained in:
@@ -5,9 +5,15 @@ class AttendanceLoginRequest {
|
||||
final File faceImage;
|
||||
final bool localAuth;
|
||||
|
||||
// ✅ NEW
|
||||
final double? latitude;
|
||||
final double? longitude;
|
||||
|
||||
AttendanceLoginRequest({
|
||||
required this.employeeId,
|
||||
required this.faceImage,
|
||||
this.localAuth = false,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -5,9 +5,15 @@ class AttendanceLogoutRequest {
|
||||
final File faceImage;
|
||||
final bool localAuth;
|
||||
|
||||
// ✅ NEW
|
||||
final double? latitude;
|
||||
final double? longitude;
|
||||
|
||||
AttendanceLogoutRequest({
|
||||
required this.employeeId,
|
||||
required this.faceImage,
|
||||
this.localAuth = false,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
});
|
||||
}
|
||||
|
||||
8
lib/domain/models/location_payload.dart
Normal file
8
lib/domain/models/location_payload.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
class LocationPayload {
|
||||
final double lat;
|
||||
final double lng;
|
||||
|
||||
const LocationPayload({required this.lat, required this.lng});
|
||||
|
||||
Map<String, dynamic> toJson() => {'latitude': lat, 'longitude': lng};
|
||||
}
|
||||
@@ -1,6 +1,11 @@
|
||||
class ThemeModel {
|
||||
final String name;
|
||||
final String logo; // filename or url
|
||||
final String logo;
|
||||
final String logoUrl;
|
||||
|
||||
const ThemeModel({required this.name, required this.logo});
|
||||
const ThemeModel({
|
||||
required this.name,
|
||||
required this.logo,
|
||||
required this.logoUrl,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user