gen

package
v1.1.45 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(datasource string, drive string, modelCode string)

Run gen gorm gen model code

Types

type CommonMethod

type CommonMethod struct {
	ID uint32
}

CommonMethod common method

func (*CommonMethod) Create

func (c *CommonMethod) Create(ctx context.Context, tx *gorm.DB) error

Create func

func (*CommonMethod) Delete

func (c *CommonMethod) Delete(ctx context.Context, tx *gorm.DB, conds ...gen.Condition) error

Delete func

func (*CommonMethod) MarshalBinary

func (c *CommonMethod) MarshalBinary() (data []byte, err error)

MarshalBinary json marshal

func (*CommonMethod) String

func (c *CommonMethod) String() string

String json string

func (*CommonMethod) UnmarshalBinary

func (c *CommonMethod) UnmarshalBinary(data []byte) error

UnmarshalBinary json unmarshal

func (*CommonMethod) Update

func (c *CommonMethod) Update(ctx context.Context, tx *gorm.DB, conds ...gen.Condition) error

Update func

Jump to

Keyboard shortcuts

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