template

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

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

)
View Source
var Delete = `` /* 709-byte string literal not displayed */
View Source
var DeleteMethod = `Delete({{.lowerStartCamelPrimaryKey}} {{.dataType}}) error`
View Source
var Error = `package {{.pkg}}

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

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

通过id查询

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

通过指定字段查询

View Source
var FindOneByFieldExtraMethod = `` /* 440-byte string literal not displayed */
View Source
var FindOneByFieldMethod = `FindOneBy{{.upperField}}({{.in}}) (*{{.upperStartCamelObject}}, error) `
View Source
var FindOneMethod = `FindOne({{.lowerStartCamelPrimaryKey}} {{.dataType}}) (*{{.upperStartCamelObject}}, error)`
View Source
var Insert = `` /* 845-byte string literal not displayed */
View Source
var InsertMethod = `Insert(data {{.upperStartCamelObject}}) (sql.Result,error)`
View Source
var Model = `package {{.pkg}}
{{.imports}}
{{.vars}}
{{.types}}
{{.new}}
{{.insert}}
{{.find}}
{{.update}}
{{.delete}}
{{.extraMethod}}
`
View Source
var New = `` /* 297-byte string literal not displayed */
View Source
var Tag = "`db:\"{{.field}}\"`"
View Source
var Types = `` /* 261-byte string literal not displayed */
View Source
var Update = `` /* 638-byte string literal not displayed */
View Source
var UpdateMethod = `Update(data {{.upperStartCamelObject}}) error`
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