mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix chat ui details
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -36,7 +36,7 @@ chatDatabase.version(1).stores({
|
||||
attachment: AttachmentTableColumn,
|
||||
distribution: DistributionTableColumn,
|
||||
bold:BoldTableColumn,
|
||||
userPhotoTable: UserPhotoTableColumn
|
||||
userPhoto: UserPhotoTableColumn
|
||||
});
|
||||
|
||||
chatDatabase.message.mapToClass(MessageEntity)
|
||||
|
||||
@@ -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>>
|
||||
Reference in New Issue
Block a user