MCPcopy
hub / github.com/zeromicro/go-zero / FindOne

Method FindOne

tools/goctl/model/sql/test/model/usermodel.go:28–28  ·  view source on GitHub ↗
(id int64)

Source from the content-addressed store, hash-verified

26 UserModel interface {
27 Insert(data User) (sql.Result, error)
28 FindOne(id int64) (*User, error)
29 FindOneByUser(user string) (*User, error)
30 FindOneByMobile(mobile string) (*User, error)
31 FindOneByName(name string) (*User, error)

Callers 2

TestStudentModelFunction · 0.65
TestUserModelFunction · 0.65

Implementers 1

defaultUserModeltools/goctl/model/sql/test/model/userm

Calls

no outgoing calls

Tested by 2

TestStudentModelFunction · 0.52
TestUserModelFunction · 0.52