Documentation ¶
Index ¶
- type Dao
- func (d *Dao) ArchiveChargeRatio(c context.Context, id int64, limit int64) (m map[int]map[int64]*model.ArchiveChargeRatio, last int64, err error)
- func (d *Dao) AvChargeStatis(c context.Context, id int64, limit int) (data []*model.AvChargeStatis, err error)
- func (d *Dao) AvDailyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)
- func (d *Dao) AvIncomeStat(c context.Context, id int64, limit int64) (m map[int64]*model.AvIncomeStat, last int64, err error)
- func (d *Dao) AvMonthlyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)
- func (d *Dao) AvWeeklyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)
- func (d *Dao) BeginTran(c context.Context) (tx *sql.Tx, err error)
- func (d *Dao) BgmIncomeStat(c context.Context, id int64, limit int64) (m map[int64]*model.BgmIncomeStat, last int64, err error)
- func (d *Dao) Blacklist(c context.Context, id int64, limit int64) (m map[int][]int64, last int64, err error)
- func (d *Dao) BusinessOrders(c context.Context, offset, limit int64) (last int64, m map[int64]bool, err error)
- func (d *Dao) Close()
- func (d *Dao) ColumnDailyCharge(c context.Context, date time.Time, id int64, limit int) (columns []*model.ColumnCharge, err error)
- func (d *Dao) ColumnIncomeStat(c context.Context, id int64, limit int64) (m map[int64]*model.ColumnIncomeStat, last int64, err error)
- func (d *Dao) DelBGM(c context.Context, limit int64) (rows int64, err error)
- func (d *Dao) DelIncomeStatisTable(c context.Context, table, date string) (rows int64, err error)
- func (d *Dao) Exec(c context.Context, sql string) (err error)
- func (d *Dao) FixInsertUpIncome(c context.Context, values string) (rows int64, err error)
- func (d *Dao) FixInsertUpIncomeStat(c context.Context, values string) (rows int64, err error)
- func (d *Dao) GetArchiveByDate(c context.Context, aid, table, date string, id int64, limit int) (archives []*model.ArchiveIncome, err error)
- func (d *Dao) GetAvCharge(c context.Context, sql string, date string, id int64, limit int) (data []*model.AvCharge, err error)
- func (d *Dao) GetBGM(c context.Context, id int64, limit int64) (bs []*model.BGM, last int64, err error)
- func (d *Dao) GetBgmIncomeByDate(c context.Context, date string, id int64, limit int) (archives []*model.ArchiveIncome, err error)
- func (d *Dao) GetBubbleMeta(c context.Context, id int64, limit int64) (data map[int64][]int, last int64, err error)
- func (d *Dao) GetUpCharges(c context.Context, table string, date string, offset, limit int64) (last int64, charges map[int64]*model.UpCharge, err error)
- func (d *Dao) GetUpIncomeTable(c context.Context, table, date string, id int64, limit int) (ups []*model.UpIncome, err error)
- func (d *Dao) InsertAvChargeStatisBatch(c context.Context, vals string) (count int64, err error)
- func (d *Dao) InsertAvChargeTable(c context.Context, vals, table string) (rows int64, err error)
- func (d *Dao) InsertAvIncome(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertAvIncomeStat(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertBGM(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertBgmIncome(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertBgmIncomeStat(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertColumnChargeTable(c context.Context, vals, table string) (rows int64, err error)
- func (d *Dao) InsertColumnIncome(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertColumnIncomeStat(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertIncomeStatisTable(c context.Context, table, vals string) (rows int64, err error)
- func (d *Dao) InsertUpAccount(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertUpCharge(c context.Context, table string, values string) (rows int64, err error)
- func (d *Dao) InsertUpIncome(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertUpIncomeDailyStatis(c context.Context, table string, vals string) (rows int64, err error)
- func (d *Dao) InsertUpIncomeStat(c context.Context, values string) (rows int64, err error)
- func (d *Dao) InsertUpIncomeTable(c context.Context, table, values string) (rows int64, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Query(c context.Context, sql string) (rows *sql.Rows, err error)
- func (d *Dao) QueryRow(c context.Context, sql string) (rows *sql.Row)
- func (d *Dao) UpAccount(c context.Context, mid int64) (a *model.UpAccount, err error)
- func (d *Dao) UpAccounts(c context.Context, id int64, limit int64) (m map[int64]*model.UpAccount, last int64, err error)
- func (d *Dao) UpChargeRatio(c context.Context, id int64, limit int64) (m map[int]map[int64]*model.UpChargeRatio, last int64, err error)
- func (d *Dao) UpIncomeStat(c context.Context, id int64, limit int64) (m map[int64]*model.UpIncomeStat, last int64, err error)
- func (d *Dao) UpIncomes(c context.Context, id int64, limit int64) (last int64, us []*model.UpIncome, err error)
- func (d *Dao) UpdateUpAccount(c context.Context, mid, ver, totalIncome, totalUnwithdrawIncome int64) (rows int64, err error)
- func (d *Dao) Ups(c context.Context, business string, offset int64, limit int64) (last int64, ups map[int64]*model.Signed, err error)
- type IAvCharge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
Dao dao
func (*Dao) ArchiveChargeRatio ¶
func (d *Dao) ArchiveChargeRatio(c context.Context, id int64, limit int64) (m map[int]map[int64]*model.ArchiveChargeRatio, last int64, err error)
ArchiveChargeRatio map[ctype]map[archive_id]*archiveChargeRatio
func (*Dao) AvChargeStatis ¶
func (d *Dao) AvChargeStatis(c context.Context, id int64, limit int) (data []*model.AvChargeStatis, err error)
AvChargeStatis get av_charge_statis
func (*Dao) AvDailyCharge ¶
func (d *Dao) AvDailyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)
AvDailyCharge get av daily charge by date
func (*Dao) AvIncomeStat ¶
func (d *Dao) AvIncomeStat(c context.Context, id int64, limit int64) (m map[int64]*model.AvIncomeStat, last int64, err error)
AvIncomeStat key: av_id
func (*Dao) AvMonthlyCharge ¶
func (d *Dao) AvMonthlyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)
AvMonthlyCharge get av monthly charge
func (*Dao) AvWeeklyCharge ¶
func (d *Dao) AvWeeklyCharge(c context.Context, date time.Time, id int64, limit int) (data []*model.AvCharge, err error)
AvWeeklyCharge get av weekly charge
func (*Dao) BgmIncomeStat ¶
func (d *Dao) BgmIncomeStat(c context.Context, id int64, limit int64) (m map[int64]*model.BgmIncomeStat, last int64, err error)
BgmIncomeStat key: sid
func (*Dao) Blacklist ¶
func (d *Dao) Blacklist(c context.Context, id int64, limit int64) (m map[int][]int64, last int64, err error)
Blacklist map[ctype][]id
func (*Dao) BusinessOrders ¶
func (d *Dao) BusinessOrders(c context.Context, offset, limit int64) (last int64, m map[int64]bool, err error)
BusinessOrders get business order
func (*Dao) ColumnDailyCharge ¶
func (d *Dao) ColumnDailyCharge(c context.Context, date time.Time, id int64, limit int) (columns []*model.ColumnCharge, err error)
ColumnDailyCharge get column daily charge by date
func (*Dao) ColumnIncomeStat ¶
func (d *Dao) ColumnIncomeStat(c context.Context, id int64, limit int64) (m map[int64]*model.ColumnIncomeStat, last int64, err error)
ColumnIncomeStat key: av_id
func (*Dao) DelIncomeStatisTable ¶
DelIncomeStatisTable del income statis by table
func (*Dao) FixInsertUpIncome ¶
FixInsertUpIncome batch insert up income
func (*Dao) FixInsertUpIncomeStat ¶
FixInsertUpIncomeStat fix insert up income stat
func (*Dao) GetArchiveByDate ¶
func (d *Dao) GetArchiveByDate(c context.Context, aid, table, date string, id int64, limit int) (archives []*model.ArchiveIncome, err error)
GetArchiveByDate get archive by date
func (*Dao) GetAvCharge ¶
func (d *Dao) GetAvCharge(c context.Context, sql string, date string, id int64, limit int) (data []*model.AvCharge, err error)
GetAvCharge get av charge by sql required
func (*Dao) GetBGM ¶
func (d *Dao) GetBGM(c context.Context, id int64, limit int64) (bs []*model.BGM, last int64, err error)
GetBGM get bgms
func (*Dao) GetBgmIncomeByDate ¶
func (d *Dao) GetBgmIncomeByDate(c context.Context, date string, id int64, limit int) (archives []*model.ArchiveIncome, err error)
GetBgmIncomeByDate get bgm income by date
func (*Dao) GetBubbleMeta ¶
func (d *Dao) GetBubbleMeta(c context.Context, id int64, limit int64) (data map[int64][]int, last int64, err error)
GetBubbleMeta get bubble meta
func (*Dao) GetUpCharges ¶
func (d *Dao) GetUpCharges(c context.Context, table string, date string, offset, limit int64) (last int64, charges map[int64]*model.UpCharge, err error)
GetUpCharges get up charges
func (*Dao) GetUpIncomeTable ¶
func (d *Dao) GetUpIncomeTable(c context.Context, table, date string, id int64, limit int) (ups []*model.UpIncome, err error)
GetUpIncomeTable get up_income up_income_weekly up_income_monthly
func (*Dao) InsertAvChargeStatisBatch ¶
InsertAvChargeStatisBatch add av charge statis batch
func (*Dao) InsertAvChargeTable ¶
InsertAvChargeTable add av charge batch
func (*Dao) InsertAvIncome ¶
InsertAvIncome batch insert av income
func (*Dao) InsertAvIncomeStat ¶
InsertAvIncomeStat batch insert av income stat
func (*Dao) InsertBgmIncome ¶
InsertBgmIncome batch insert bgm income
func (*Dao) InsertBgmIncomeStat ¶
InsertBgmIncomeStat batch insert bgm income stat
func (*Dao) InsertColumnChargeTable ¶
func (d *Dao) InsertColumnChargeTable(c context.Context, vals, table string) (rows int64, err error)
InsertColumnChargeTable add av charge batch
func (*Dao) InsertColumnIncome ¶
InsertColumnIncome batch insert column income
func (*Dao) InsertColumnIncomeStat ¶
InsertColumnIncomeStat batch insert column income stat
func (*Dao) InsertIncomeStatisTable ¶
func (d *Dao) InsertIncomeStatisTable(c context.Context, table, vals string) (rows int64, err error)
InsertIncomeStatisTable add av_income_date_statis batch
func (*Dao) InsertUpAccount ¶
InsertUpAccount batch insert up account
func (*Dao) InsertUpCharge ¶
func (d *Dao) InsertUpCharge(c context.Context, table string, values string) (rows int64, err error)
InsertUpCharge batch insert up charge
func (*Dao) InsertUpIncome ¶
InsertUpIncome batch insert up income
func (*Dao) InsertUpIncomeDailyStatis ¶
func (d *Dao) InsertUpIncomeDailyStatis(c context.Context, table string, vals string) (rows int64, err error)
InsertUpIncomeDailyStatis add up_income_daily_statis batch
func (*Dao) InsertUpIncomeStat ¶
InsertUpIncomeStat batch insert up income stat
func (*Dao) InsertUpIncomeTable ¶
InsertUpIncomeTable insert up_income up_income_weekly up_income_monthly
func (*Dao) UpAccounts ¶
func (d *Dao) UpAccounts(c context.Context, id int64, limit int64) (m map[int64]*model.UpAccount, last int64, err error)
UpAccounts batch read up account
func (*Dao) UpChargeRatio ¶
func (d *Dao) UpChargeRatio(c context.Context, id int64, limit int64) (m map[int]map[int64]*model.UpChargeRatio, last int64, err error)
UpChargeRatio get every day up charge ratio
func (*Dao) UpIncomeStat ¶
func (d *Dao) UpIncomeStat(c context.Context, id int64, limit int64) (m map[int64]*model.UpIncomeStat, last int64, err error)
UpIncomeStat return m key: mid, value: total_income
func (*Dao) UpIncomes ¶
func (d *Dao) UpIncomes(c context.Context, id int64, limit int64) (last int64, us []*model.UpIncome, err error)
UpIncomes up incomes
Source Files ¶
- archive.go
- av_charge.go
- av_charge_statis.go
- av_income.go
- av_income_stat.go
- bgm.go
- bgm_income.go
- bgm_income_stat.go
- blacklist.go
- business_order.go
- charge_ratio.go
- column_charge.go
- column_income.go
- column_income_stat.go
- dao.go
- income_date_statis.go
- lottery.go
- up_account.go
- up_charge.go
- up_income.go
- up_income_date.go
- up_income_stat.go
- up_info_video.go