소스 검색

联系处室

guhongwei 2 년 전
부모
커밋
84348aff1a
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/service/contactoffice.service.ts

+ 7 - 0
src/service/contactoffice.service.ts

@@ -8,4 +8,11 @@ type modelType = ReturnModelType<typeof Contactoffice>;
 export class ContactofficeService extends BaseService<modelType> {
   @InjectEntityModel(Contactoffice)
   model: modelType;
+
+  async query(filter, { skip, limit }) {
+    const res = []
+    const data = await this.model.findOne();
+    if (data) res.push(data)
+    return res;
+  }
 }