feat: set interface
This commit is contained in:
parent
b6ac7e171b
commit
0081229f86
@ -15,6 +15,9 @@ class KnexDocumentAccessor implements DocumentAccessor{
|
|||||||
this.knex = knex;
|
this.knex = knex;
|
||||||
this.tagController = createKnexTagController(knex);
|
this.tagController = createKnexTagController(knex);
|
||||||
}
|
}
|
||||||
|
async search(search_word: string): Promise<Document[]>{
|
||||||
|
throw new Error("Not implemented");
|
||||||
|
}
|
||||||
async addList(content_list: DocumentBody[]):Promise<number[]>{
|
async addList(content_list: DocumentBody[]):Promise<number[]>{
|
||||||
return await this.knex.transaction(async (trx)=>{
|
return await this.knex.transaction(async (trx)=>{
|
||||||
//add tags
|
//add tags
|
||||||
|
@ -94,6 +94,10 @@ export interface DocumentAccessor{
|
|||||||
* find deleted content
|
* find deleted content
|
||||||
*/
|
*/
|
||||||
findDeleted:(content_type:string)=>Promise<Document[]>;
|
findDeleted:(content_type:string)=>Promise<Document[]>;
|
||||||
|
/**
|
||||||
|
* search by in document
|
||||||
|
*/
|
||||||
|
search:(search_word:string)=>Promise<Document[]>
|
||||||
/**
|
/**
|
||||||
* update document except tag.
|
* update document except tag.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user