Compare commits
1 Commits
f12e6896a9
...
ba931f1901
| Author | SHA1 | Date | |
|---|---|---|---|
| ba931f1901 |
@@ -101,10 +101,10 @@ export class QueryMarkBase<T extends SimpleObject = SimpleObject> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getMark(id: string, opts?: DataOpts) {
|
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) {
|
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) {
|
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> {
|
export class QueryMark extends QueryMarkBase<SimpleObject> {
|
||||||
|
|||||||
Reference in New Issue
Block a user