add package support
This commit is contained in:
1 parent
9bd46bbccb
commit
e66cb2196b
20 files changed
+277
-21
No files matched your search
@@ -44,6 +44,12 @@ export interface IResponse {
|
||||
headers: ISchema;
|
||||
}
|
||||
|
||||
export interface IPackage {
|
||||
id: string;
|
||||
amount: number;
|
||||
price: number;
|
||||
}
|
||||
|
||||
export interface IApi {
|
||||
id: string;
|
||||
path: string;
|
||||
@@ -62,6 +68,7 @@ export interface IApi {
|
||||
document?: IDocument;
|
||||
document_id?: string;
|
||||
service?: IService;
|
||||
packages?: IPackage[];
|
||||
service_id?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
|
||||
@@ -20,7 +20,6 @@ class DocumentOperator {
|
||||
}
|
||||
|
||||
async get(id: string, config?: AxiosRequestConfig): Promise<AxiosResponse<IDocumentDetailResponse>> {
|
||||
console.log('sss', config);
|
||||
return await httpClient.get(`/${this.key}/${id}`, config);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import { IOrder, IOrderDetailResponse, IOrderListResponse } from './models';
|
||||
|
||||
export interface IOrderQuery {
|
||||
user_id?: string;
|
||||
package_id?: string;
|
||||
offset?: number;
|
||||
limit?: number;
|
||||
ordering: string;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { IPackage } from '../api';
|
||||
import { IDocument } from '../document';
|
||||
import { IService } from '../service';
|
||||
|
||||
@@ -15,6 +16,7 @@ export interface IProxy {
|
||||
document?: IDocument;
|
||||
document_id?: string;
|
||||
service?: IService;
|
||||
packages?: IPackage[];
|
||||
service_id?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
|
||||
Reference in new issue
Block a user