created API For Aplication Absensi
This commit is contained in:
17
app/core/resources/user.resource.js
Normal file
17
app/core/resources/user.resource.js
Normal file
@@ -0,0 +1,17 @@
|
||||
class UserResource {
|
||||
constructor(user) {
|
||||
this.id = user?.id ?? null
|
||||
this.name = user?.name ?? null
|
||||
this.email = user?.email ?? null
|
||||
this.phone = user?.phone ?? null
|
||||
//this.role = user?.role ?? null
|
||||
this.via = user?.login_via ?? null
|
||||
this.google_id = user?.google_id ?? null
|
||||
this.last_login = user?.last_login ?? null
|
||||
this.created_at = user?.created_at ?? null
|
||||
this.updated_at = user?.updated_at ?? null
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = UserResource
|
||||
Reference in New Issue
Block a user