瀏覽代碼

联系处室

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;
+  }
 }