common

package
v0.0.0-...-91a91da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

功能:pongo2模板数据库访问函数 日期:2017.01.06

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimpleData

func SimpleData(modelId, sqlId string, mp string) *pongo2.Value
tpl
  {% for o in SimpleData("biz/demo","selecttpl","{`para`:`我是sql参数值`}") %}
      <p>名称:{{ o.cnname }}</p>
  {% endfor %}

单个查询 参数 map[string]interface{} 返回 []map[string]interface{}

func SimpleData2

func SimpleData2(modelId, sqlId string, mp string) []map[string]interface{}

单个查询 参数 map[string]interface{} 返回 []map[string]interface{}

func Test

func Test(str1, str2, str3 string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL