Documentation ¶
Index ¶
- type Service
- func (s *Service) AddQus(c context.Context, in *model.AddQus, answers []model.Answer) (res model.AddReturn, err error)
- func (s *Service) AddQusBank(c context.Context, in *model.ArgAddQusBank) (res model.AddReturn, err error)
- func (s *Service) CheckAnswer(c context.Context, qusID int64, qusType int8, anlist []model.Answer) (etag string, err error)
- func (s *Service) Close()
- func (s *Service) DelQus(c context.Context, qid int64) (res bool, err error)
- func (s *Service) DelQusBank(c context.Context, qbid int64, status int8) (res bool, err error)
- func (s *Service) GetAnswerList(c context.Context, qsID int64) (res []*model.Answer, err error)
- func (s *Service) GetBindItem(c context.Context, args *model.ArgGetBindItems) (resp model.RespList, err error)
- func (s *Service) GetQuestion(c context.Context, args *model.ArgGetQuestion) (q *model.GetQuestionItem, err error)
- func (s *Service) GetQuestionBankBind(c context.Context, args *model.ArgGetBankBind) (list []*model.QuestionBankBind, err error)
- func (s *Service) GetQusBankInfo(c context.Context, qbid int64) (res *model.QuestionBank, err error)
- func (s *Service) GetQusBankTotal(c context.Context, name string) (res int64, err error)
- func (s *Service) GetQusBanklist(c context.Context, pageNo int, pageSize int, name string) (res []*model.QusBankSt, err error)
- func (s *Service) GetQusInfo(c context.Context, qsID int64) (res *model.Question, err error)
- func (s *Service) GetQusTotal(c context.Context, bid int64) (res int64, err error)
- func (s *Service) GetQuslist(c context.Context, pageNo int, pageSize int, qBid int64) (res []*model.QuestionAll, err error)
- func (s *Service) GraphCheck(c context.Context, req *v1.GraphCheckRequest) (res *v1.GraphCheckResponse, err error)
- func (s *Service) GraphPrepare(c context.Context, req *v1.GraphPrepareRequest) (res *v1.GraphPrepareResponse, err error)
- func (s *Service) IPBlack(c context.Context, req *v1.IPBlackRequest) (res *v1.IPBlackResponse, err error)
- func (s *Service) IPDetail(c context.Context, req *v1.IPDetailRequest) (res *v1.IPDetailResponse, err error)
- func (s *Service) IPList(c context.Context, req *v1.IPListRequest) (res *v1.IPListResponse, err error)
- func (s *Service) PageInfo(pageNo int, pageSize int) (offset int, limit int)
- func (s *Service) PayShield(c context.Context, params *v1.RiskCheckV2Request, res *v1.RiskCheckV2Response)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) QuestionBankBind(c context.Context, args *model.ArgQuestionBankBinds) (err error)
- func (s *Service) QuestionBankUnbind(c context.Context, args *model.ArgQuestionBankUnbind) (err error)
- func (s *Service) QusBankCheck(c context.Context, in *model.ArgCheckQus) (res []*model.QuestionBank, err error)
- func (s *Service) RiskCheck(c context.Context, req *grpcv1.RiskCheckRequest) (res *grpcv1.RiskCheckResponse, err error)
- func (s *Service) RiskCheckV2(c context.Context, req *v1.RiskCheckV2Request) (res *v1.RiskCheckV2Response, err error)
- func (s *Service) Ticket2PayShield(c context.Context, req *grpcv1.RiskCheckRequest, res *grpcv1.RiskCheckResponse)
- func (s *Service) UIDBlack(c context.Context, req *v1.UIDBlackRequest) (res *v1.UIDBlackResponse, err error)
- func (s *Service) UIDDetail(c context.Context, req *v1.UIDDetailRequest) (res *v1.UIDDetailResponse, err error)
- func (s *Service) UIDList(c context.Context, req *v1.UIDListRequest) (res *v1.UIDListResponse, err error)
- func (s *Service) UpdataQusBank(c context.Context, id int64, name string, trytime int64, cdtime int64) (res bool, err error)
- func (s *Service) UpdateQus(c context.Context, in *model.ArgUpdateQus, answers []model.Answer) (res bool, err error)
- func (s *Service) UserAnswer(c context.Context, check *model.ArgCheckAnswer) (res bool, 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 of service.
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) DelQusBank ¶
DelQusBank 删除题库
func (*Service) GetAnswerList ¶
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 ¶
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 ¶
GetQusInfo 获取题目信息
func (*Service) GetQusTotal ¶
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) PayShield ¶
func (s *Service) PayShield(c context.Context, params *v1.RiskCheckV2Request, res *v1.RiskCheckV2Response)
PayShield 同步支付风控
func (*Service) QuestionBankBind ¶
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 ¶
UserAnswer 回答
Click to show internal directories.
Click to hide internal directories.