Documentation ¶
Index ¶
- func Close()
- func InitMysqlCfg() (err error)
- func InsertOne(reqData *models.ParamAddUser) (err error)
- func SearchAll() (interface{}, error)
- func SearchAllWithPost(reqData *models.ParamPage) (interface{}, error)
- func SearchOne() (int, error)
- func UpdateName(reqData *models.ParamUpdateName) (err error)
- type SqlUtil
- func (s *SqlUtil) Exec(db *sqlx.DB, sql string, args ...interface{}) (res sql.Result, err error)
- func (s *SqlUtil) FetchAll(db *sqlx.DB, sql string, dest interface{}, args ...interface{}) error
- func (s *SqlUtil) FetchOne(db *sqlx.DB, sql string, dest interface{}, args ...interface{}) error
- func (s *SqlUtil) NewSession() *sqlx.Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertOne ¶
func InsertOne(reqData *models.ParamAddUser) (err error)
func SearchAllWithPost ¶
func UpdateName ¶
func UpdateName(reqData *models.ParamUpdateName) (err error)
Types ¶
Click to show internal directories.
Click to hide internal directories.