fix chat ui details

This commit is contained in:
Peter Maquiran
2024-09-09 10:28:53 +01:00
parent e7887d4e5a
commit 96daa01f94
20 changed files with 236 additions and 108 deletions
@@ -2,9 +2,9 @@ import { EntityTable } from 'Dexie';
import { z } from 'zod';
export const UserPhotoTableSchema = z.object({
wxUserId: z.string(),
blob: z.instanceof(Blob),
attachmentId: z.string()
wxUserId: z.number(),
file: z.string(),
attachmentId: z.string().nullable()
})
export type UserPhotoTable = z.infer<typeof UserPhotoTableSchema>
+1 -1
View File
@@ -36,7 +36,7 @@ chatDatabase.version(1).stores({
attachment: AttachmentTableColumn,
distribution: DistributionTableColumn,
bold:BoldTableColumn,
userPhotoTable: UserPhotoTableColumn
userPhoto: UserPhotoTableColumn
});
chatDatabase.message.mapToClass(MessageEntity)
+4 -1
View File
@@ -1,4 +1,5 @@
import { HttpHeaders, HttpParams } from '@angular/common/http';
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
import { Result } from 'neverthrow';
export interface Options {
headers?: HttpHeaders
@@ -12,3 +13,5 @@ export interface HttpResult<T> {
url: string;
method: string
}
export type IHttPReturn<T> = Promise<Result<HttpResult<T>, HttpErrorResponse>>