Documentation ¶ Index ¶ func Apply(g *gen.Generator) type IdQueryInterface Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Apply ¶ func Apply(g *gen.Generator) Apply 应用sql接口 Types ¶ type IdQueryInterface ¶ type IdQueryInterface interface { // SELECT * FROM @@table WHERE id = @id GetById(id string) (*gen.T, error) // DELETE FROM @@table WHERE id = @id DeleteById(id string) (gen.RowsAffected, error) } Source Files ¶ View all Source files apply.go common_query.go Click to show internal directories. Click to hide internal directories.