소스 검색

新增动态表单操作服务类

周浩 9 년 전
부모
커밋
9178b10448
1개의 변경된 파일32개의 추가작업 그리고 0개의 파일을 삭제
  1. 32 0
      hsweb-web-service-interface/src/main/java/org/hsweb/web/service/form/DynamicFormService.java

+ 32 - 0
hsweb-web-service-interface/src/main/java/org/hsweb/web/service/form/DynamicFormService.java

@@ -0,0 +1,32 @@
+package org.hsweb.web.service.form;
+
+import org.hsweb.web.bean.common.PagerResult;
+import org.hsweb.web.bean.common.QueryParam;
+import org.hsweb.web.bean.po.form.Form;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Created by zhouhao on 16-4-14.
+ */
+public interface DynamicFormService {
+
+    void deploy(Form form) throws Exception;
+
+    void unDeploy(Form form) throws Exception;
+
+    <T> PagerResult<T> selectPager(String name, QueryParam param) throws Exception;
+
+    <T> List<T> select(String name, QueryParam param) throws Exception;
+
+    int total(String name, QueryParam param) throws Exception;
+
+    int insert(String name, Map<String, Object> data) throws Exception;
+
+    int delete(String name, Map<String, Object> data) throws Exception;
+
+    int update(String name, Map<String, Object> data) throws Exception;
+
+    <T> T selectByPk(String name, Object pk) throws Exception;
+}