Documentation
¶
Index ¶
- type Dao
- func (d *Dao) AccInfo(c context.Context, mid int64) (ai *accmdl.Info, err error)
- func (d *Dao) AddEvent(c context.Context, f *model.Event) (ret int64, err error)
- func (d *Dao) AddFactor(c context.Context, f *model.Factor) (ret int64, err error)
- func (d *Dao) AddGroup(c context.Context, f *model.FactorGroup) (ret int64, err error)
- func (d *Dao) AddLog(c context.Context, l *model.Log) (affected int64, err error)
- func (d *Dao) AddService(c context.Context, f *model.Service) (ret int64, err error)
- func (d *Dao) AllEvent(c context.Context) (list []*model.Event, err error)
- func (d *Dao) ClearCount(c context.Context, mid int64, operator string) (err error)
- func (d *Dao) Close()
- func (d *Dao) DeleteStat(c context.Context, isdel int8, id int64) (affected int64, err error)
- func (d *Dao) Event(ctx context.Context, eventName string) (event *model.Event, err error)
- func (d *Dao) Factors(c context.Context, gid int64) (res []*model.Factor, err error)
- func (d *Dao) Groups(c context.Context) (res []*model.FactorGroup, err error)
- func (d *Dao) HistoryPage(c context.Context, h *model.HisParamReq) (hs []*model.EventHistoryDto, err error)
- func (d *Dao) HistoryPageTotalC(c context.Context, h *model.HisParamReq) (totalCount int, err error)
- func (d *Dao) Info(c context.Context, mid int64) (res *model.UserInfo, err error)
- func (d *Dao) LogList(c context.Context, refID int64, module int8) (list []*model.Log, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) RefreshBase(c context.Context, mid int64, operator string) (err error)
- func (d *Dao) ReportCount(c context.Context) (totalCount int, err error)
- func (d *Dao) ReportList(c context.Context, ps, pn int) (list []*model.ReportDto, err error)
- func (d *Dao) ResetBase(c context.Context, mid int64, operator string) (err error)
- func (d *Dao) ResetEvent(c context.Context, mid int64, operator string) (err error)
- func (d *Dao) SettingList(c context.Context) (list []*model.Setting, err error)
- func (d *Dao) StatCountByID(c context.Context, id int64, t int8) (totalCount int64, err error)
- func (d *Dao) StatCountByMid(c context.Context, mid int64) (totalCount int64, err error)
- func (d *Dao) StatListByID(c context.Context, id int64, t int8, pn, ps int) (list []*model.Statistics, err error)
- func (d *Dao) StatListByMid(c context.Context, mid int64, pn, ps int) (list []*model.Statistics, err error)
- func (d *Dao) Statistics(c context.Context, id int64) (stat *model.Statistics, err error)
- func (d *Dao) UpdateEventName(c context.Context, e *model.Event) (affected int64, err error)
- func (d *Dao) UpdateFactor(c context.Context, factorVal float32, id int64) (affected int64, err error)
- func (d *Dao) UpdateSetting(c context.Context, property string, val string) (affected int64, err error)
- func (d *Dao) UpdateStatQuantity(c context.Context, count int64, id int64) (affected int64, err error)
- func (d *Dao) UpdateStatState(c context.Context, state int8, id int64) (affected int64, err error)
- func (d *Dao) UserScore(c context.Context, mid int64) (userScore *spymdl.UserScore, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao struct user of Dao.
func (*Dao) AddService ¶
AddService add service.
func (*Dao) ClearCount ¶
ClearCount clear count.
func (*Dao) DeleteStat ¶
DeleteStat delete stat.
func (*Dao) HistoryPage ¶
func (d *Dao) HistoryPage(c context.Context, h *model.HisParamReq) (hs []*model.EventHistoryDto, err error)
HistoryPage user event history.
func (*Dao) HistoryPageTotalC ¶
func (d *Dao) HistoryPageTotalC(c context.Context, h *model.HisParamReq) (totalCount int, err error)
HistoryPageTotalC user ecent history page.
func (*Dao) RefreshBase ¶
RefreshBase reset user base score.
func (*Dao) ReportCount ¶
ReportCount get repoet total count.
func (*Dao) ReportList ¶
ReportList report list.
func (*Dao) ResetEvent ¶
ResetEvent reset user event score.
func (*Dao) SettingList ¶
SettingList get all setting list
func (*Dao) StatCountByID ¶
StatCountByID count by id.
func (*Dao) StatCountByMid ¶
StatCountByMid count by mid.
func (*Dao) StatListByID ¶
func (d *Dao) StatListByID(c context.Context, id int64, t int8, pn, ps int) (list []*model.Statistics, err error)
StatListByID stat list by id.
func (*Dao) StatListByMid ¶
func (d *Dao) StatListByMid(c context.Context, mid int64, pn, ps int) (list []*model.Statistics, err error)
StatListByMid stat list by mid.
func (*Dao) Statistics ¶
Statistics get stat info by id from db.
func (*Dao) UpdateEventName ¶
UpdateEventName update event name.
func (*Dao) UpdateFactor ¶
func (d *Dao) UpdateFactor(c context.Context, factorVal float32, id int64) (affected int64, err error)
UpdateFactor update factor.
func (*Dao) UpdateSetting ¶
func (d *Dao) UpdateSetting(c context.Context, property string, val string) (affected int64, err error)
UpdateSetting update setting
func (*Dao) UpdateStatQuantity ¶
func (d *Dao) UpdateStatQuantity(c context.Context, count int64, id int64) (affected int64, err error)
UpdateStatQuantity update stat quantity
func (*Dao) UpdateStatState ¶
UpdateStatState update stat state.