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.
25 lines
604 B
25 lines
604 B
package service |
|
|
|
import ( |
|
"context" |
|
|
|
"go-common/library/log" |
|
) |
|
|
|
// SetLock set click lock by plat and lv |
|
func (s *Service) SetLock(c context.Context, aid int64, plat, lock, lv int8) (err error) { |
|
if _, err = s.db.UpForbid(c, aid, plat, lock, lv); err != nil { |
|
log.Error("s.db.UpForbid(%+v) error(%v)", c, err) |
|
return |
|
} |
|
return |
|
} |
|
|
|
// SetMidForbid is |
|
func (s *Service) SetMidForbid(c context.Context, mid int64, status int8) (err error) { |
|
if err = s.db.UpMidForbidStatus(c, mid, status); err != nil { |
|
log.Error("s.db.UpMidForbidStatus(%d, %d) error(%v)", mid, status, err) |
|
return |
|
} |
|
return |
|
}
|
|
|