Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generate ¶ added in v1.8.3
type Generate struct {
// contains filtered or unexported fields
}
Generate .
func (*Generate) RunDsn ¶ added in v1.8.3
func (t *Generate) RunDsn() (result []ObjectContent, e error)
RunDsn .
type Method ¶ added in v1.8.3
type Method struct {
ObjectName string //结构体名称
Name string //方法名称 GoodsName
VariableType string //类型 int|string
Variable string //goodsName
Column string //列名 Column id | goods_name
}
Method .
func (obj *{{.ObjectName}}) Set{{.Name}} ({{.Variable}} {{.VariableType}}) {
obj.{{.Name}} = {{.Variable}}
obj.setChanges("{{.Column}}", {{.Variable}})
}
{{ end }}
Click to show internal directories.
Click to hide internal directories.