You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.6 KiB
72 lines
2.6 KiB
package apishiyan
|
|
|
|
import (
|
|
"appPlatform/api/shiyan"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
//实验
|
|
|
|
func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) {
|
|
apiRouter := router.Group("shiyan")
|
|
|
|
var methodBinding = shiyan.AppApiEntry.MapToStructApi
|
|
{
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
|
|
apiRouter.POST("charparking", methodBinding.CharParking) //获取车场车位信息
|
|
apiRouter.POST("testpage", methodBinding.TestPage) //获取车场车位信息
|
|
|
|
apiRouter.POST("canshu", methodBinding.Canshu) //获取车场车位信息
|
|
|
|
apiRouter.POST("create_table", methodBinding.CreateTable) //模拟创建表单
|
|
|
|
apiRouter.POST("qianyi_version", methodBinding.QianyiVersion) //改革自定义表单列表
|
|
apiRouter.POST("LookTableStruct", methodBinding.LookTableStruct) //查询表结构
|
|
|
|
apiRouter.POST("hzzpy", methodBinding.HanZiZhuanPinYin) //汉字转拼音
|
|
|
|
apiRouter.POST("test_table", methodBinding.TestTable) //测试表格字段类型
|
|
|
|
apiRouter.GET("jia_mi", methodBinding.JiaMiShiYan) //加密实验
|
|
|
|
apiRouter.POST("genJuIdNumber", methodBinding.GenJuIdNumber) //根据身份证号获取生日和年龄
|
|
|
|
apiRouter.POST("createFlowChart", methodBinding.CreateFlowChart) //实验流程图生成
|
|
|
|
apiRouter.POST("getAllOrgSun", methodBinding.GetAllOrgSun) //获取行政组织所有子类
|
|
apiRouter.POST("gainDateCenter", methodBinding.GainDateCenter) //获取行政组织所有子类
|
|
|
|
}
|
|
}
|
|
func (a *ApiRouter) RouterGroupVerify(router *gin.RouterGroup) {
|
|
apiRouter := router.Group("v_shiyan")
|
|
|
|
var methodBinding = shiyan.AppApiEntry.MapToStructApi
|
|
{
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
|
|
apiRouter.POST("charparking", methodBinding.CharParking) //获取车场车位信息
|
|
apiRouter.POST("testpage", methodBinding.TestPage) //获取车场车位信息
|
|
|
|
apiRouter.POST("canshu", methodBinding.Canshu) //获取车场车位信息
|
|
|
|
apiRouter.POST("create_table", methodBinding.CreateTable) //模拟创建表单
|
|
|
|
apiRouter.POST("qianyi_version", methodBinding.QianyiVersion) //改革自定义表单列表
|
|
apiRouter.POST("LookTableStruct", methodBinding.LookTableStruct) //查询表结构
|
|
|
|
apiRouter.POST("hzzpy", methodBinding.HanZiZhuanPinYin) //汉字转拼音
|
|
|
|
apiRouter.POST("test_table", methodBinding.TestTable) //测试表格字段类型
|
|
|
|
apiRouter.GET("jia_mi", methodBinding.JiaMiShiYan) //加密实验
|
|
|
|
apiRouter.POST("genJuIdNumber", methodBinding.GenJuIdNumber) //根据身份证号获取生日和年龄
|
|
|
|
apiRouter.POST("createFlowCharts", methodBinding.CreateFlowChart) //实验流程图生成
|
|
}
|
|
}
|
|
|