service

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

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(c *conf.Config) (s *Service)

New init

func (*Service) AddMailch

func (s *Service) AddMailch(f func())

AddMailch .

func (*Service) BatchJudge

func (s *Service) BatchJudge(c context.Context, req *model.BatchJudgeReq) (err error)

BatchJudge is reject or agree more operation.

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) CommitInfo

func (s *Service) CommitInfo(c context.Context, uinfo *model.UserInfoReq) (err error)

CommitInfo is commit appeal info

func (*Service) CompareInfo

func (s *Service) CompareInfo(c context.Context, rid int64) (err error)

CompareInfo compare user_info with sys_info

func (*Service) GameList

func (s *Service) GameList(c context.Context, mids string) (res []*model.GameListRes, err error)

GameList GameList.

func (*Service) GetCaptchaMail

func (s *Service) GetCaptchaMail(c context.Context, req *model.CaptchaMailReq) (state int64, err error)

GetCaptchaMail send captcha mail.

func (*Service) InsertRecoveryAddit

func (s *Service) InsertRecoveryAddit(c context.Context, rid int64, Files []string, BusinessMap map[string]string) (err error)

InsertRecoveryAddit insert addit for commit info

func (*Service) Judge

func (s *Service) Judge(c context.Context, req *model.JudgeReq) (err error)

Judge is reject or agree one operation

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping Service

func (*Service) QueryAccount

func (s *Service) QueryAccount(c context.Context, req *model.QueryInfoReq) (res *model.QueryInfoResp, err error)

QueryAccount is verify account is exist

func (*Service) QueryCon

func (s *Service) QueryCon(c context.Context, aq *model.QueryRecoveryInfoReq) (res *model.MultiQueryRes, err error)

QueryCon is Multi conditional combinatorial query

func (*Service) QueryRecoveryAddit

func (s *Service) QueryRecoveryAddit(c context.Context, rids []int64) (map[int64]*model.RecoveryAddit, error)

QueryRecoveryAddit query recovery addit

func (*Service) SendMail

func (s *Service) SendMail(c context.Context, req *model.SendMailReq) (err error)

SendMail reject more.

func (*Service) SendMailLog

func (s *Service) SendMailLog(c context.Context, mid int64, mailType int, linkMail string, params ...string) (err error)

SendMailLog send mailLog

func (*Service) SendMailM

func (s *Service) SendMailM(c context.Context, mailType int, linkMail string, params ...string) (err error)

SendMailM send more type mail

func (*Service) SendMailMany

func (s *Service) SendMailMany(c context.Context, mailType int, batchRes []*model.BatchAppeal, userMap map[string]*model.User) (err error)

SendMailMany send more type mail

func (*Service) Verify

func (s *Service) Verify(c context.Context, token, code string) (err error)

Verify verify captcha

func (*Service) WebToken

func (s *Service) WebToken(c context.Context) (token *model.Token, err error)

WebToken get captcha token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL