Documentation ¶
Index ¶
- type Service
- func (s *Service) AddEvent(c context.Context, f *model.Event) (err error)
- func (s *Service) AddFactor(c context.Context, f *model.Factor) (err error)
- func (s *Service) AddGroup(c context.Context, f *model.FactorGroup) (err error)
- func (s *Service) AddLog(c context.Context, name string, m int8, v interface{}) (err error)
- func (s *Service) AddLog2(c context.Context, l *model.Log) (err error)
- func (s *Service) AddRemarkLog(refID int64, remark string) (log string)
- func (s *Service) AddService(c context.Context, f *model.Service) (err error)
- func (s *Service) ClearCount(c context.Context, mid int64, operator string) (err error)
- func (s *Service) Close()
- func (s *Service) DeleteStat(c context.Context, isdel int8, id int64, operater string) (err error)
- func (s *Service) DeleteStatLog(refID int64) (log string)
- func (s *Service) Factors(c context.Context) (fs []*model.Factors, err error)
- func (s *Service) HisoryPage(c context.Context, h *model.HisParamReq) (page *model.HistoryPage, err error)
- func (s *Service) LogList(c context.Context, refID int64, module int8) (list []*model.Log, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) RefreshBase(c context.Context, mid int64, operator string) (err error)
- func (s *Service) ReportList(c context.Context, ps, pn int) (page *model.ReportPage, err error)
- func (s *Service) ResetBase(c context.Context, mid int64, operator string) (err error)
- func (s *Service) ResetEvent(c context.Context, mid int64, operator string) (err error)
- func (s *Service) SettingList(c context.Context) (list []*model.Setting, err error)
- func (s *Service) StatPage(c context.Context, mid, id int64, t int8, pn, ps int) (page *model.StatPage, err error)
- func (s *Service) UpdateEventName(c context.Context, event *model.Event) (err error)
- func (s *Service) UpdateFactor(c context.Context, fs []*model.Factor, name string) (err error)
- func (s *Service) UpdateSetting(c context.Context, name string, property string, val string) (err error)
- func (s *Service) UpdateStatCountLog(refID int64, old int64, new int64) (log string)
- func (s *Service) UpdateStatQuantity(c context.Context, count, id int64, operater string) (err error)
- func (s *Service) UpdateState(c context.Context, state int8, id int64, operater string) (err error)
- func (s *Service) UpdateStateLog(refID int64, state string) (log string)
- func (s *Service) UserInfo(c context.Context, mid int64) (u *model.UserInfoDto, err error)
- func (s *Service) Wait()
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 biz service def.
func (*Service) AddRemarkLog ¶
AddRemarkLog add reamrk log.
func (*Service) AddService ¶
AddService add service
func (*Service) ClearCount ¶
ClearCount clear count.
func (*Service) DeleteStat ¶
DeleteStat delete stat.
func (*Service) DeleteStatLog ¶
DeleteStatLog delete log .
func (*Service) HisoryPage ¶
func (s *Service) HisoryPage(c context.Context, h *model.HisParamReq) (page *model.HistoryPage, err error)
HisoryPage history page.
func (*Service) LogList ¶
func (s *Service) LogList(c context.Context, refID int64, module int8) (list []*model.Log, err error)
LogList add log.
func (*Service) RefreshBase ¶
Refresh reset user base score.
func (*Service) ReportList ¶
ReportList report list.
func (*Service) ResetEvent ¶
ResetEvent reset user event score.
func (*Service) SettingList ¶
SettingList get all setting
func (*Service) StatPage ¶
func (s *Service) StatPage(c context.Context, mid, id int64, t int8, pn, ps int) (page *model.StatPage, err error)
StatPage get stat list.
func (*Service) UpdateEventName ¶
UpdateEventName update event name.
func (*Service) UpdateFactor ¶
UpdateFactor update factor.
func (*Service) UpdateSetting ¶
func (s *Service) UpdateSetting(c context.Context, name string, property string, val string) (err error)
UpdateSetting update setting
func (*Service) UpdateStatCountLog ¶
UpdateStatCountLog update stat count log.
func (*Service) UpdateStatQuantity ¶
func (s *Service) UpdateStatQuantity(c context.Context, count, id int64, operater string) (err error)
UpdateStatQuantity update stat quantity.
func (*Service) UpdateState ¶
UpdateState update spy state.
func (*Service) UpdateStateLog ¶
UpdateStateLog get log.
Click to show internal directories.
Click to hide internal directories.