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: 19 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 of service.

func New

func New(c *conf.Config) (s *Service)

New create service instance and return.

func (*Service) AddQus

func (s *Service) AddQus(c context.Context, in *model.AddQus, answers []model.Answer) (res model.AddReturn, err error)

AddQus 添加题目

func (*Service) AddQusBank

func (s *Service) AddQusBank(c context.Context, in *model.ArgAddQusBank) (res model.AddReturn, err error)

AddQusBank 添加题库

func (*Service) CheckAnswer

func (s *Service) CheckAnswer(c context.Context, qusID int64, qusType int8, anlist []model.Answer) (etag string, err error)

CheckAnswer 检查答案

func (*Service) Close

func (s *Service) Close()

Close dao.

func (*Service) DelQus

func (s *Service) DelQus(c context.Context, qid int64) (res bool, err error)

DelQus 删除题目

func (*Service) DelQusBank

func (s *Service) DelQusBank(c context.Context, qbid int64, status int8) (res bool, err error)

DelQusBank 删除题库

func (*Service) GetAnswerList

func (s *Service) GetAnswerList(c context.Context, qsID int64) (res []*model.Answer, err error)

GetAnswerList 答案列表

func (*Service) GetBindItem

func (s *Service) GetBindItem(c context.Context, args *model.ArgGetBindItems) (resp model.RespList, err error)

GetBindItem 绑定题目查询

func (*Service) GetQuestion

func (s *Service) GetQuestion(c context.Context, args *model.ArgGetQuestion) (q *model.GetQuestionItem, err error)

GetQuestion 获取题目

func (*Service) GetQuestionBankBind

func (s *Service) GetQuestionBankBind(c context.Context, args *model.ArgGetBankBind) (list []*model.QuestionBankBind, err error)

GetQuestionBankBind 获取绑定信息

func (*Service) GetQusBankInfo

func (s *Service) GetQusBankInfo(c context.Context, qbid int64) (res *model.QuestionBank, err error)

GetQusBankInfo 获取题库信息

func (*Service) GetQusBankTotal

func (s *Service) GetQusBankTotal(c context.Context, name string) (res int64, err error)

GetQusBankTotal 获取题库数量

func (*Service) GetQusBanklist

func (s *Service) GetQusBanklist(c context.Context, pageNo int, pageSize int, name string) (res []*model.QusBankSt, err error)

GetQusBanklist 获取题库列表

func (*Service) GetQusInfo

func (s *Service) GetQusInfo(c context.Context, qsID int64) (res *model.Question, err error)

GetQusInfo 获取题目信息

func (*Service) GetQusTotal

func (s *Service) GetQusTotal(c context.Context, bid int64) (res int64, err error)

GetQusTotal 题目列表

func (*Service) GetQuslist

func (s *Service) GetQuslist(c context.Context, pageNo int, pageSize int, qBid int64) (res []*model.QuestionAll, err error)

GetQuslist 题目列表

func (*Service) GraphCheck

func (s *Service) GraphCheck(c context.Context, req *v1.GraphCheckRequest) (res *v1.GraphCheckResponse, err error)

GraphCheck 图形验证

func (*Service) GraphPrepare

func (s *Service) GraphPrepare(c context.Context, req *v1.GraphPrepareRequest) (res *v1.GraphPrepareResponse, err error)

GraphPrepare 拉起图片验证

func (*Service) IPBlack

func (s *Service) IPBlack(c context.Context, req *v1.IPBlackRequest) (res *v1.IPBlackResponse, err error)

IPBlack 设置ip黑名单

func (*Service) IPDetail

func (s *Service) IPDetail(c context.Context, req *v1.IPDetailRequest) (res *v1.IPDetailResponse, err error)

IPDetail ip详情列表

func (*Service) IPList

func (s *Service) IPList(c context.Context, req *v1.IPListRequest) (res *v1.IPListResponse, err error)

IPList ip列表

func (*Service) PageInfo

func (s *Service) PageInfo(pageNo int, pageSize int) (offset int, limit int)

PageInfo 分页

func (*Service) PayShield

func (s *Service) PayShield(c context.Context, params *v1.RiskCheckV2Request, res *v1.RiskCheckV2Response)

PayShield 同步支付风控

func (*Service) Ping

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

Ping check server ok.

func (*Service) QuestionBankBind

func (s *Service) QuestionBankBind(c context.Context, args *model.ArgQuestionBankBinds) (err error)

QuestionBankBind 绑定题库

func (*Service) QuestionBankUnbind

func (s *Service) QuestionBankUnbind(c context.Context, args *model.ArgQuestionBankUnbind) (err error)

QuestionBankUnbind 解绑

func (*Service) QusBankCheck

func (s *Service) QusBankCheck(c context.Context, in *model.ArgCheckQus) (res []*model.QuestionBank, err error)

QusBankCheck 获取total数量小于cnt题库列表

func (*Service) RiskCheck

func (s *Service) RiskCheck(c context.Context, req *grpcv1.RiskCheckRequest) (res *grpcv1.RiskCheckResponse, err error)

RiskCheck 风险检测

func (*Service) RiskCheckV2

func (s *Service) RiskCheckV2(c context.Context, req *v1.RiskCheckV2Request) (res *v1.RiskCheckV2Response, err error)

RiskCheckV2 风险检测

func (*Service) Ticket2PayShield

func (s *Service) Ticket2PayShield(c context.Context, req *grpcv1.RiskCheckRequest, res *grpcv1.RiskCheckResponse)

Ticket2PayShield .

func (*Service) UIDBlack

func (s *Service) UIDBlack(c context.Context, req *v1.UIDBlackRequest) (res *v1.UIDBlackResponse, err error)

UIDBlack 设置uid黑名单

func (*Service) UIDDetail

func (s *Service) UIDDetail(c context.Context, req *v1.UIDDetailRequest) (res *v1.UIDDetailResponse, err error)

UIDDetail uid详情列表

func (*Service) UIDList

func (s *Service) UIDList(c context.Context, req *v1.UIDListRequest) (res *v1.UIDListResponse, err error)

UIDList uid列表

func (*Service) UpdataQusBank

func (s *Service) UpdataQusBank(c context.Context, id int64, name string, trytime int64, cdtime int64) (res bool, err error)

UpdataQusBank 更新题库

func (*Service) UpdateQus

func (s *Service) UpdateQus(c context.Context, in *model.ArgUpdateQus, answers []model.Answer) (res bool, err error)

UpdateQus 更新题库

func (*Service) UserAnswer

func (s *Service) UserAnswer(c context.Context, check *model.ArgCheckAnswer) (res bool, err error)

UserAnswer 回答

Jump to

Keyboard shortcuts

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