service

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service vip service

func New

func New(c *conf.Config) (s *Service)

New new service

func (*Service) CheckBcoinData

func (s *Service) CheckBcoinData(c context.Context) (mids []int64, err error)

CheckBcoinData check bcoin data

func (*Service) CheckChangeHistory

func (s *Service) CheckChangeHistory(c context.Context) (mids []int64, err error)

CheckChangeHistory check change history data

func (*Service) CheckUserData

func (s *Service) CheckUserData(c context.Context) (diffs map[int64]string, err error)

CheckUserData check vip_user_info data.

func (*Service) ClearUserCache

func (s *Service) ClearUserCache(mid int64)

ClearUserCache clear user cache.

func (*Service) Close

func (s *Service) Close()

Close all resource.

func (*Service) CouponNotify

func (s *Service) CouponNotify(c context.Context, o *model.VipPayOrderNewMsg) (err error)

CouponNotify coupon notify.

func (*Service) EleGrantCompensate

func (s *Service) EleGrantCompensate(c context.Context) (err error)

EleGrantCompensate ele frant compensate.

func (*Service) Frozen

func (s *Service) Frozen(c context.Context, ll *model.LoginLog) (err error)

Frozen handle vip frozen logic.

func (*Service) HandlerBcoin

func (s *Service) HandlerBcoin() (err error)

HandlerBcoin handler bcoin

func (*Service) HandlerPayOrder

func (s *Service) HandlerPayOrder() (err error)

HandlerPayOrder handler pay order

func (*Service) HandlerVipChangeHistory

func (s *Service) HandlerVipChangeHistory() (err error)

HandlerVipChangeHistory handler sync change history data

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping check db live

func (*Service) SalaryVideoCouponAtOnce

func (s *Service) SalaryVideoCouponAtOnce(c context.Context, nvip *model.VipUserInfoMsg, ovip *model.VipUserInfoMsg, act string) (res int, err error)

SalaryVideoCouponAtOnce salary video coupon at once.

func (*Service) ScanSalaryLog

func (s *Service) ScanSalaryLog(c context.Context) (err error)

ScanSalaryLog scan salary log.

func (*Service) ScanSalaryVideoCoupon

func (s *Service) ScanSalaryVideoCoupon(c context.Context) (err error)

ScanSalaryVideoCoupon scan all vip user to salary video coupon.

func (*Service) ScanUserInfo

func (s *Service) ScanUserInfo(c context.Context) (err error)

ScanUserInfo scan all userinfo update status

func (*Service) SyncAllUser

func (s *Service) SyncAllUser(c context.Context)

SyncAllUser 同步旧user——info到新db. FIXME 切新db后删除.

func (*Service) SyncUserInfoByMid

func (s *Service) SyncUserInfoByMid(c context.Context, mid int64) (err error)

SyncUserInfoByMid sync user by mid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL