Browse Source

联系处室

guhongwei 2 năm trước cách đây
mục cha
commit
84348aff1a
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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;
+  }
 }