func {{.operateType}}{{.tableNameDynamic}}(c *gin.Context) { {{range .VarStructArray}} //{{.Description}} {{if .IsInt32}} {{.ParameterName}}:=CommonUtil.ConvertStringToInt32(c.{{.HttpType}}("{{.ParameterName}}")) {{else}} {{.ParameterName}}:=c.{{.HttpType}}("{{.ParameterName}}") {{end}} {{end}} r, err := {{.tableName}}Service.{{.interfaceName}}({{.Parameters}}) if err != nil { c.JSON(http.StatusOK, Model.Res{ Success: false, Message: "调用RPC服务失败!", }) return } c.JSON(http.StatusOK, Model.Res{ Success: r.Success, Message: r.Message, List: CommonUtil.ConvertJsonStringToMapArray(r.List), Count: r.Count, }) }