template

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Imports = `` /* 324-byte string literal not displayed */

	ImportsNoCache = `` /* 275-byte string literal not displayed */

)
View Source
var Delete = `` /* 702-byte string literal not displayed */
View Source
var Error = `package {{.pkg}}

import "github.com/tal-tech/go-zero/core/stores/sqlx"

var ErrNotFound = sqlx.ErrNotFound
`
View Source
var Field = `{{.name}} {{.type}} {{.tag}} {{if .hasComment}}// {{.comment}}{{end}}`
View Source
var FindOne = `` /* 998-byte string literal not displayed */

通过id查询

View Source
var FindOneByField = `` /* 1111-byte string literal not displayed */

通过指定字段查询

View Source
var FindOneByFieldExtraMethod = `` /* 426-byte string literal not displayed */
View Source
var Insert = `` /* 838-byte string literal not displayed */
View Source
var Model = `package {{.pkg}}
{{.imports}}
{{.vars}}
{{.types}}
{{.new}}
{{.insert}}
{{.find}}
{{.update}}
{{.delete}}
{{.extraMethod}}
`
View Source
var New = `` /* 291-byte string literal not displayed */
View Source
var Tag = "`db:\"{{.field}}\"`"
View Source
var Types = `` /* 192-byte string literal not displayed */
View Source
var Update = `` /* 631-byte string literal not displayed */
View Source
var Vars = `` /* 648-byte string literal not displayed */

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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