Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) ArchiveBreach(c context.Context, mid int64, typ, page, size, all int) (data interface{}, err error)
- func (s *Service) ArchiveDetail(c context.Context, typ int, archiveID int64) (data interface{}, err error)
- func (s *Service) ArchiveIncome(c context.Context, mid int64, typ, page, size, all int) (data map[string]interface{}, err error)
- func (s *Service) ArchiveSummary(c context.Context, typ int, mid int64) (data interface{}, err error)
- func (s *Service) AwardDetail(c context.Context, awardID int64) (data map[string]interface{}, err error)
- func (s *Service) AwardList(c context.Context) (as []*model.SimpleSpecialAward, err error)
- func (s *Service) Close()
- func (s *Service) GetAwardUpStatus(c context.Context, awardID, mid int64) (status *model.AwardUpStatus, err error)
- func (s *Service) GetBanner(c context.Context) (b *model.Banner, err error)
- func (s *Service) GetNotices(c context.Context, typ int, platform int, offset, limit int) (notices []*model.Notice, total int64, err error)
- func (s *Service) GetUpCharge(c context.Context, mid int64, t time.Time) (total int, err error)
- func (s *Service) GetUpStatus(c context.Context, mid int64, ip string) (status *model.UpStatus, err error)
- func (s *Service) GetWinningPoster(c context.Context, mid int64, awardID, prizeID int64) (poster *model.Poster, err error)
- func (s *Service) GetWinningRecord(c context.Context, mid int64) (rs []*model.WinningRecord, err error)
- func (s *Service) GetWithdraw(c context.Context, dateVersion string, from, limit int) (count int, withdrawVos []*model.WithdrawVo, err error)
- func (s *Service) GoodsBuy(c context.Context, mid int64, productID string, goodsType int, price int64) (err error)
- func (s *Service) GoodsRecord(c context.Context, mid int64, page, size int) (monthOrder map[string][]*model.GoodsOrder, count int, err error)
- func (s *Service) GoodsShow(c context.Context, mid int64) (goods []*model.GoodsInfo, err error)
- func (s *Service) GoodsState(c context.Context) (data interface{}, err error)
- func (s *Service) InsertUpWithdrawRecord(c context.Context, upIncomeWithdraw *model.UpIncomeWithdraw) (err error)
- func (s *Service) JoinAv(c context.Context, accountType int, mid int64, signType int) (err error)
- func (s *Service) JoinAward(c context.Context, mid int64, awardID int64) (err error)
- func (s *Service) JoinBgm(c context.Context, mid int64, accountType, signType int) (err error)
- func (s *Service) JoinColumn(c context.Context, mid int64, accountType, signType int) (err error)
- func (s *Service) LatestNotice(c context.Context, platform int) (notice *model.Notice, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Quit(c context.Context, mid int64, reason string) (err error)
- func (s *Service) ShowActivity(c context.Context, mid, activityID int64) (ac *model.CActivity, err error)
- func (s *Service) SignUpActivity(c context.Context, mid, activityID int64) (err error)
- func (s *Service) SpecialAwardInfo(c context.Context, mid int64) (data map[string]interface{}, err error)
- func (s *Service) UpBill(c context.Context, mid int64) (data interface{}, err error)
- func (s *Service) UpIncomeStat(c context.Context, typ int, mid int64, date time.Time) (data interface{}, err error)
- func (s *Service) UpSummary(c context.Context, mid int64) (data interface{}, err error)
- func (s *Service) UpWithdraw(c context.Context, dateVersion string, from, limit int) (count int, upAccounts []*model.UpAccount, err error)
- func (s *Service) UpYear(c context.Context, mid int64) (data interface{}, err error)
- func (s *Service) Winners(c context.Context, awardID int64) (as []*model.Account, err error)
- func (s *Service) WithdrawDetail(c context.Context, mid int64) (upWithdraws []*model.UpIncomeWithdraw, err error)
- func (s *Service) WithdrawSuccess(c context.Context, orderNo int64, tradeStatus int) (err error)
- type SnowFlake
Constants ¶
const ( // MaxSequence max sequence in one time MaxSequence = 1000 // WorkerBit worker bit WorkerBit = 10 // SequenceBit sequence bit SequenceBit = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is growup service
func (*Service) ArchiveBreach ¶
func (s *Service) ArchiveBreach(c context.Context, mid int64, typ, page, size, all int) (data interface{}, err error)
ArchiveBreach get av_breach_record
func (*Service) ArchiveDetail ¶
func (s *Service) ArchiveDetail(c context.Context, typ int, archiveID int64) (data interface{}, err error)
ArchiveDetail cal archive detail
func (*Service) ArchiveIncome ¶
func (s *Service) ArchiveIncome(c context.Context, mid int64, typ, page, size, all int) (data map[string]interface{}, err error)
ArchiveIncome get archive income by mid
func (*Service) ArchiveSummary ¶
func (s *Service) ArchiveSummary(c context.Context, typ int, mid int64) (data interface{}, err error)
ArchiveSummary get archive summary
func (*Service) AwardDetail ¶
func (s *Service) AwardDetail(c context.Context, awardID int64) (data map[string]interface{}, err error)
AwardDetail get award detail include schedule & resource
func (*Service) GetAwardUpStatus ¶
func (s *Service) GetAwardUpStatus(c context.Context, awardID, mid int64) (status *model.AwardUpStatus, err error)
GetAwardUpStatus get award up status
func (*Service) GetNotices ¶
func (s *Service) GetNotices(c context.Context, typ int, platform int, offset, limit int) (notices []*model.Notice, total int64, err error)
GetNotices get notice
func (*Service) GetUpCharge ¶
GetUpCharge get up daily sum(charge) last 30 days
func (*Service) GetUpStatus ¶
func (s *Service) GetUpStatus(c context.Context, mid int64, ip string) (status *model.UpStatus, err error)
GetUpStatus status of user in growup plan by mid
func (*Service) GetWinningPoster ¶
func (s *Service) GetWinningPoster(c context.Context, mid int64, awardID, prizeID int64) (poster *model.Poster, err error)
GetWinningPoster get prize winning poster
func (*Service) GetWinningRecord ¶
func (s *Service) GetWinningRecord(c context.Context, mid int64) (rs []*model.WinningRecord, err error)
GetWinningRecord get winning record
func (*Service) GetWithdraw ¶
func (s *Service) GetWithdraw(c context.Context, dateVersion string, from, limit int) (count int, withdrawVos []*model.WithdrawVo, err error)
GetWithdraw get up withdraw
func (*Service) GoodsBuy ¶
func (s *Service) GoodsBuy(c context.Context, mid int64, productID string, goodsType int, price int64) (err error)
GoodsBuy buy goods from creative
func (*Service) GoodsRecord ¶
func (s *Service) GoodsRecord(c context.Context, mid int64, page, size int) (monthOrder map[string][]*model.GoodsOrder, count int, err error)
GoodsRecord get goods record
func (*Service) GoodsState ¶
GoodsState get goods new state
func (*Service) InsertUpWithdrawRecord ¶
func (s *Service) InsertUpWithdrawRecord(c context.Context, upIncomeWithdraw *model.UpIncomeWithdraw) (err error)
InsertUpWithdrawRecord insert up_withdraw_income record
func (*Service) JoinColumn ¶
JoinColumn join up to creative column
func (*Service) LatestNotice ¶
LatestNotice latest notice
func (*Service) ShowActivity ¶
func (s *Service) ShowActivity(c context.Context, mid, activityID int64) (ac *model.CActivity, err error)
ShowActivity show creative_activity
func (*Service) SignUpActivity ¶
SignUpActivity up sign up activity
func (*Service) SpecialAwardInfo ¶
func (s *Service) SpecialAwardInfo(c context.Context, mid int64) (data map[string]interface{}, err error)
SpecialAwardInfo special award info
func (*Service) UpIncomeStat ¶
func (s *Service) UpIncomeStat(c context.Context, typ int, mid int64, date time.Time) (data interface{}, err error)
UpIncomeStat get up income stat by month
func (*Service) UpWithdraw ¶
func (s *Service) UpWithdraw(c context.Context, dateVersion string, from, limit int) (count int, upAccounts []*model.UpAccount, err error)
UpWithdraw get up withdraw
func (*Service) WithdrawDetail ¶
func (s *Service) WithdrawDetail(c context.Context, mid int64) (upWithdraws []*model.UpIncomeWithdraw, err error)
WithdrawDetail get withdraw detail