|
|
|
|
package customerformrouter
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"appPlatform/api/version1"
|
|
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 权限矩阵PC端
|
|
|
|
|
func (a *ApiRouter) RouterGroupPc(router *gin.RouterGroup) {
|
|
|
|
|
apiRouter := router.Group("customer_form")
|
|
|
|
|
|
|
|
|
|
var methodBinding = version1.AppApiEntry.CustomerFormApi
|
|
|
|
|
{
|
|
|
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
|
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("customerFormGroupTree", methodBinding.CustomerFormGroupTree) //自定义表单分组列表树
|
|
|
|
|
apiRouter.POST("customerFormGroupList", methodBinding.CustomerFormGroupList) //自定义表单分组列表
|
|
|
|
|
apiRouter.POST("addCustomerFormGroup", methodBinding.AddCustomerFormGroup) //添加自定义表单分组
|
|
|
|
|
apiRouter.POST("editCustomerFormGroup", methodBinding.EditCustomerFormGroup) //改变自定义表单分组内容
|
|
|
|
|
apiRouter.POST("editFormGroupState", methodBinding.EditFormGroupState) //改变自定义表单分组状态
|
|
|
|
|
apiRouter.POST("delFormGroup", methodBinding.DelFormGroup) // 强制删除(慎重操作!一旦执行不可恢复!)
|
|
|
|
|
apiRouter.POST("gainFormGroupInfo", methodBinding.GainFormGroupInfo) // 查看分组详情
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("customer_form_list", methodBinding.CustomerFormList) //自定义表单列表
|
|
|
|
|
apiRouter.POST("production_mark_form", methodBinding.ProductionMarkOfCustomerForm) //生成表单基本信息
|
|
|
|
|
apiRouter.POST("save_customer_form", methodBinding.SaveCustomerForm) //保存自定义表单
|
|
|
|
|
apiRouter.POST("look_customer_form", methodBinding.LookCustomerForm) //查看自定义表单
|
|
|
|
|
apiRouter.POST("edit_customer_form_status", methodBinding.EditCustomerFormStatus) //编辑自定义表单状态
|
|
|
|
|
apiRouter.POST("save_setup_cont", methodBinding.SaveSetupCont) //编辑自定义表单设置
|
|
|
|
|
apiRouter.POST("have_customer_form_version", methodBinding.HaveCustomerFormVersion) //获取版本列表
|
|
|
|
|
apiRouter.POST("edit_customer_form_info", methodBinding.EditCustomerFormInfo) //编辑自定义表单内容
|
|
|
|
|
apiRouter.POST("save_as_new_version", methodBinding.SaveAsNewVersion) //另存为新版
|
|
|
|
|
apiRouter.POST("enable_version", methodBinding.EnableVersion) //启用版本
|
|
|
|
|
apiRouter.POST("judge_submit_cancel", methodBinding.JudgeSubmitCancel) //检测是否存在提交和返回按钮
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("have_database_table_struct", methodBinding.HaveDataBaseTableStruct) //数据库表结构(版本及数据表)
|
|
|
|
|
apiRouter.POST("have_form_tabelcont", methodBinding.HaveFormTabelCont) //获取表单结构
|
|
|
|
|
apiRouter.POST("have_form_tablelist", methodBinding.HaveFormTableList) //根据版本获取数据库表集合
|
|
|
|
|
apiRouter.POST("optimize_repair_form", methodBinding.OptimizeOrRepairFormTable) //优化/修复数据表
|
|
|
|
|
apiRouter.POST("form_field_handle", methodBinding.FormFieldHandle) //表单结构数据处理
|
|
|
|
|
apiRouter.POST("edit_form_field", methodBinding.EditFormField) //编辑数据库表字段信息
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("gainFormTableField", methodBinding.GainFormTableField) //获取表格字段
|
|
|
|
|
apiRouter.POST("gainTableField", methodBinding.GainTableField) //获取数据库表字段
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("editCustomerFormList", methodBinding.EditCustomerFormList) //编辑自定义表单列表数据
|
|
|
|
|
apiRouter.POST("gainFormListCont", methodBinding.GainFormListCont) //获取表单列表数据
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("gainFormPageListCont", methodBinding.GainFormPageListCont) //获取表单列表翻页数据
|
|
|
|
|
}
|
|
|
|
|
}
|