mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-12 01:52:49 +00:00
cache character end point - update reply count/thread reply id
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
export * from './category';
|
||||
export * from './reply';
|
||||
export * from './thread';
|
||||
export * from './user';
|
||||
|
||||
10
client/app/model/reply.ts
Normal file
10
client/app/model/reply.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface RepyModel {
|
||||
content: string;
|
||||
edited: boolean;
|
||||
id: number;
|
||||
inserted_at: string;
|
||||
quote: boolean;
|
||||
thread_id: number;
|
||||
updated_at: string;
|
||||
user_id: number;
|
||||
}
|
||||
20
client/app/model/thread.ts
Normal file
20
client/app/model/thread.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { RepyModel } from './reply';
|
||||
|
||||
export interface ThreadModel {
|
||||
category_id: number;
|
||||
content: string;
|
||||
title: string;
|
||||
edited: boolean;
|
||||
id: number;
|
||||
inserted_at: string;
|
||||
last_reply: { id: number; battletag: string };
|
||||
last_reply_id: number;
|
||||
locked: boolean;
|
||||
replies: RepyModel[];
|
||||
reply_count: number;
|
||||
sticky: boolean;
|
||||
updated_at: string;
|
||||
user: { id: number; battletag: string };
|
||||
user_id: number;
|
||||
view_count: number;
|
||||
}
|
||||
Reference in New Issue
Block a user