fix
This commit is contained in:
@@ -101,10 +101,10 @@ export class QueryMarkBase<T extends SimpleObject = SimpleObject> {
|
||||
}
|
||||
|
||||
async getMark(id: string, opts?: DataOpts) {
|
||||
return this.post<Result<Mark>>({ key: 'get', id }, opts);
|
||||
return this.post<Result<Mark>>({ key: 'get', payload: { id } }, opts);
|
||||
}
|
||||
async getVersion(id: string, opts?: DataOpts) {
|
||||
return this.post<Result<{ version: number; id: string }>>({ key: 'getVersion', id }, opts);
|
||||
return this.post<Result<{ version: number; id: string }>>({ key: 'getVersion', payload: { id } }, opts);
|
||||
}
|
||||
/**
|
||||
* 检查版本
|
||||
@@ -133,7 +133,7 @@ export class QueryMarkBase<T extends SimpleObject = SimpleObject> {
|
||||
}
|
||||
|
||||
async deleteMark(id: string, opts?: DataOpts) {
|
||||
return this.post<Result<Mark>>({ key: 'delete', id }, opts);
|
||||
return this.post<Result<Mark>>({ key: 'delete', payload: { id } }, opts);
|
||||
}
|
||||
}
|
||||
export class QueryMark extends QueryMarkBase<SimpleObject> {
|
||||
|
||||
Reference in New Issue
Block a user