adjust serializer for foreign object and id
This commit is contained in:
1 parent
1bc2068e7b
commit
c266894f87
7 files changed
+39
-14
No files matched your search
@@ -50,7 +50,9 @@ export interface IApi {
|
||||
introduction?: string;
|
||||
tags?: string[];
|
||||
request: IRequest;
|
||||
request_id: string;
|
||||
responses: IResponse[];
|
||||
response_ids: string[];
|
||||
is_free?: boolean;
|
||||
service?: string;
|
||||
created_at?: string;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { IService } from '../service';
|
||||
|
||||
export interface IApplication {
|
||||
id?: string;
|
||||
service: string;
|
||||
service: IService;
|
||||
service_id: string;
|
||||
api_key?: string;
|
||||
user_id?: string;
|
||||
remaining_count?: number;
|
||||
|
||||
@@ -8,6 +8,7 @@ export interface IDocument {
|
||||
content?: string;
|
||||
rank?: number;
|
||||
api?: IApi;
|
||||
api_id?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { IApi } from '../api/models';
|
||||
|
||||
export interface IService {
|
||||
id: string;
|
||||
title: string;
|
||||
@@ -6,8 +8,10 @@ export interface IService {
|
||||
thumbnail?: string;
|
||||
icon?: string;
|
||||
price?: number;
|
||||
applied_count: number;
|
||||
introduction: string;
|
||||
applied_count?: number;
|
||||
introduction?: string;
|
||||
api_ids?: string[];
|
||||
apis?: IApi[];
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user