Documentation ¶
Index ¶
- func New(config *model.DBConfig) (model.DB, error)
- type Count
- type DB
- func (db *DB) AddEmployee(employee model.Employee) (model.Employee, error)
- func (db *DB) DeleteEmployee(employee model.Employee) (model.Employee, error)
- func (db *DB) GenEmployeeNumber() int
- func (db *DB) ListEmployees(search string) ([]model.Employee, error)
- func (db *DB) RestoreEmployee(employee model.Employee) (model.Employee, error)
- func (db *DB) SearchEmployees(search string) ([]model.Employee, error)
- func (db *DB) UpdateEmployee(employee model.Employee) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteEmployee ¶
func (*DB) GenEmployeeNumber ¶
func (*DB) RestoreEmployee ¶
Click to show internal directories.
Click to hide internal directories.