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.
16 lines
314 B
16 lines
314 B
package dao |
|
|
|
import ( |
|
"context" |
|
) |
|
|
|
const ( |
|
_queryUserFansNum = "select `fan_total` from `user_statistics` where mid = ?;" |
|
) |
|
|
|
// FetchUserFansNum . |
|
func (d *Dao) FetchUserFansNum(c context.Context, mid int64) (num int, err error) { |
|
row := d.db.QueryRow(c, _queryUserFansNum, mid) |
|
err = row.Scan(&num) |
|
return |
|
}
|
|
|