Kaynağa Gözat

联系处室

guhongwei 2 yıl önce
ebeveyn
işleme
84348aff1a
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  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;
+  }
 }