Browse Source

联系处室

guhongwei 2 years ago
parent
commit
84348aff1a
1 changed files with 7 additions and 0 deletions
  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;
+  }
 }