feat: set interface

This commit is contained in:
monoid 2022-02-18 23:08:51 +09:00
parent b6ac7e171b
commit 0081229f86
2 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,9 @@ class KnexDocumentAccessor implements DocumentAccessor{
this.knex = knex;
this.tagController = createKnexTagController(knex);
}
async search(search_word: string): Promise<Document[]>{
throw new Error("Not implemented");
}
async addList(content_list: DocumentBody[]):Promise<number[]>{
return await this.knex.transaction(async (trx)=>{
//add tags

View File

@ -94,6 +94,10 @@ export interface DocumentAccessor{
* find deleted content
*/
findDeleted:(content_type:string)=>Promise<Document[]>;
/**
* search by in document
*/
search:(search_word:string)=>Promise<Document[]>
/**
* update document except tag.
*/