Explorar o código

新增动态表单操作服务类

周浩 %!s(int64=9) %!d(string=hai) anos
pai
achega
9178b10448

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