定制每日抽奖
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

db.go 260 B

2 years ago
123456789
  1. package db
  2. import "xorm.io/xorm"
  3. // QueryNativeString 查询原生sql
  4. func QueryNativeStringSess(sess *xorm.Session, sql string, args ...interface{}) ([]map[string]string, error) {
  5. results, err := sess.SQL(sql, args...).QueryString()
  6. return results, err
  7. }