go-common/app/job/main/card/dao/mysql.go

21 lines
403 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
"github.com/pkg/errors"
)
const (
_updateExpireTime = "UPDATE `user_card_equip` SET `expire_time` = ? WHERE `mid` = ?;"
)
// UpdateExpireTime update expire time.
func (d *Dao) UpdateExpireTime(c context.Context, t int64, mid int64) (err error) {
if _, err = d.db.Exec(c, _updateExpireTime, t, mid); err != nil {
err = errors.WithStack(err)
return
}
return
}