internal

package
v0.0.0-...-0473a72 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dept

type Dept struct {
	DeptId   int    `db:"dept_id" form:"deptId" json:"deptId" label:"部门id"`
	DeptName string `db:"dept_name" form:"deptName" json:"deptName" label:"部门名字"`
	Phone    string `db:"phone" form:"phone" json:"phone" label:"电话号码"`
}

Dept

@tableName: dept
@tableId: dept_id

type DeptRepo

type DeptRepo struct {
	OpenLog bool
	// contains filtered or unexported fields
}

func (*DeptRepo) DeleteById

func (w *DeptRepo) DeleteById(input *Dept) (sql.Result, error)

func (*DeptRepo) Exec

func (w *DeptRepo) Exec(sqlcmd string, args ...interface{}) (sql.Result, error)

func (*DeptRepo) Insert

func (w *DeptRepo) Insert(u *Dept) (sql.Result, error)

func (*DeptRepo) InsertSelective

func (w *DeptRepo) InsertSelective(u *Dept) (sql.Result, error)

func (*DeptRepo) Query

func (w *DeptRepo) Query(sqlCmd string, calback func(stmt *sql.Stmt) error) error

func (*DeptRepo) QueryAll

func (w *DeptRepo) QueryAll() (res []*Dept, err error)

func (*DeptRepo) QueryById

func (w *DeptRepo) QueryById(input *Dept) (u *Dept, err error)

func (*DeptRepo) QueryCallback

func (w *DeptRepo) QueryCallback(sqlStr string, callback func(rows *sql.Rows) (*Dept, error), args ...interface{}) (res []*Dept, err error)

func (*DeptRepo) UpdateById

func (w *DeptRepo) UpdateById(u *Dept) (sql.Result, error)

func (*DeptRepo) UpdateOmitZeroValue

func (w *DeptRepo) UpdateOmitZeroValue(u *Dept, where string, args ...interface{}) (sql.Result, error)

Jump to

Keyboard shortcuts

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