123456789101112131415161718192021 |
- // Copyright 2019 getensh.com. All rights reserved.
- // Use of this source code is governed by getensh.com.
- package provider
- import (
- "context"
- "gd_management/apis"
- "gd_management/errors"
- "github.com/astaxie/beego/orm"
- )
- func ManagementDelProviderOldCount(ctx context.Context, req *apis.ManagementDelProviderOldCountReq, reply *apis.ManagementDelProviderOldCountReply) error {
- o := orm.NewOrm()
- _, err := o.Raw("delete from t_gd_thirdpart_access_count where create_time < ?", req.Date).Exec()
- if err != nil {
- return errors.DataBaseError
- }
- return nil
- }
|