mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
update image
This commit is contained in:
@@ -98,7 +98,7 @@ const UserSessionSchema = z.object({
|
||||
Inactivity: z.boolean(),
|
||||
UrlBeforeInactivity: z.string(),
|
||||
UserPermissions: z.unknown(), // Again, you can define it more explicitly if needed
|
||||
UserPhoto: z.string(),
|
||||
UserPhoto: z.string().nullable(),
|
||||
RefreshToken: z.string(),
|
||||
});
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ const UserSchema = z.object({
|
||||
wxeMail: z.string(),
|
||||
role: z.string(),
|
||||
roleId: z.number(),
|
||||
userPhoto: z.string(),
|
||||
userPhoto: z.string().nullable(),
|
||||
adUserSID: z.string(),
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { z, ZodError, ZodSchema } from 'zod';
|
||||
|
||||
const UserGetByIdInputSchema = z.object({
|
||||
username: z.string(),
|
||||
password: z.string()
|
||||
})
|
||||
|
||||
export type UserGetByIdInput = z.infer<typeof UserGetByIdInputSchema>
|
||||
|
||||
export const UserGetByIdOutputSchema = z.object({
|
||||
success: z.boolean(),
|
||||
message: z.string(),
|
||||
data: z.object({
|
||||
wxUserId: z.number(),
|
||||
wxFullName: z.string(),
|
||||
wxUser: z.string(),
|
||||
wxeMail: z.string().email(),
|
||||
role: z.string(),
|
||||
roleId: z.number(),
|
||||
userPhoto: z.string(), // base64 image string
|
||||
adUserSID: z.string().nullable(),
|
||||
organicEntityID: z.number(),
|
||||
organicEntityName: z.string(),
|
||||
managerId: z.number(),
|
||||
managerName: z.string(),
|
||||
status: z.string()
|
||||
})
|
||||
});
|
||||
|
||||
export type UserGetByIdOutput = z.infer<typeof UserGetByIdOutputSchema>
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class UserGetByIdService {
|
||||
|
||||
constructor() { }
|
||||
}
|
||||
Reference in New Issue
Block a user