Documentation
¶
Index ¶
- type Service
- func (s *Service) AccountInfo(c context.Context, mid int64) (nickname string, tel int32, level int32, regTime int64, err error)
- func (s *Service) AddAuditLog(c context.Context, tp model.BlockAction, uid int64, uname string, oids []int64, ...) error
- func (s *Service) BatchBlock(c context.Context, p *model.ParamBatchBlock) (err error)
- func (s *Service) BatchRemove(c context.Context, p *model.ParamBatchRemove) (err error)
- func (s *Service) Close()
- func (s *Service) FigureRank(c context.Context, mid int64) (rank int8, err error)
- func (s *Service) History(c context.Context, mid int64, ps, pn int, desc bool) (history *model.BlockDetail, err error)
- func (s *Service) MSGInfo(source model.BlockSource, action model.BlockAction, area model.BlockArea, ...) (code string, title, content string)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) Search(c context.Context, mids []int64) (infos []*model.BlockInfo, err error)
- func (s *Service) SpyScore(c context.Context, mid int64) (score int8, err error)
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 struct
func New ¶
func New(conf *conf.Config, dao *block.Dao, spyRPC *rpcspy.Service, figureRPC *rpcfigure.Service, accountClient account.AccountClient, accountNotifyPub *databus.Databus) (s *Service)
New init
func (*Service) AccountInfo ¶
func (s *Service) AccountInfo(c context.Context, mid int64) (nickname string, tel int32, level int32, regTime int64, err error)
AccountInfo .
func (*Service) AddAuditLog ¶
func (s *Service) AddAuditLog(c context.Context, tp model.BlockAction, uid int64, uname string, oids []int64, duration time.Duration, source model.BlockSource, area model.BlockArea, reason, comment string, notify bool, stime time.Time) error
AddAuditLog .
func (*Service) BatchBlock ¶
BatchBlock .
func (*Service) BatchRemove ¶
BatchRemove .
func (*Service) FigureRank ¶
FigureRank .
func (*Service) History ¶
func (s *Service) History(c context.Context, mid int64, ps, pn int, desc bool) (history *model.BlockDetail, err error)
History .
func (*Service) MSGInfo ¶
func (s *Service) MSGInfo(source model.BlockSource, action model.BlockAction, area model.BlockArea, reason string, days int64) (code string, title, content string)
MSGInfo get msg info
Click to show internal directories.
Click to hide internal directories.