Documentation ¶
Index ¶
- type Dept
- type DeptRepo
- func (w *DeptRepo) DeleteById(input *Dept) (sql.Result, error)
- func (w *DeptRepo) Exec(sqlcmd string, args ...interface{}) (sql.Result, error)
- func (w *DeptRepo) Insert(u *Dept) (sql.Result, error)
- func (w *DeptRepo) InsertSelective(u *Dept) (sql.Result, error)
- func (w *DeptRepo) Query(sqlCmd string, calback func(stmt *sql.Stmt) error) error
- func (w *DeptRepo) QueryAll() (res []*Dept, err error)
- func (w *DeptRepo) QueryById(input *Dept) (u *Dept, err error)
- func (w *DeptRepo) QueryCallback(sqlStr string, callback func(rows *sql.Rows) (*Dept, error), ...) (res []*Dept, err error)
- func (w *DeptRepo) UpdateById(u *Dept) (sql.Result, error)
- func (w *DeptRepo) UpdateOmitZeroValue(u *Dept, where string, args ...interface{}) (sql.Result, error)
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
Click to show internal directories.
Click to hide internal directories.