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: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RankShire

type RankShire struct {
	Share    *model.CoolShare
	ViewMore string
	VideoArr []*model.CoolVideo
}

RankShire struct .

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) BaseQ

func (s *Service) BaseQ(c context.Context, mid int64, lang string, mobile bool) (res *model.AnsQueDetailList, err error)

BaseQ base question.

func (*Service) BaseQs

func (s *Service) BaseQs(c context.Context, mid int64, lang string, mobile bool) (rqs *model.AnsQuesList, err error)

BaseQs get base question

func (*Service) Captcha

func (s *Service) Captcha(c context.Context, mid int64, clientType string, newCaptcha int) (res *model.ProcessRes, err error)

Captcha get question captcha

func (*Service) CheckBase

func (s *Service) CheckBase(c context.Context, mid int64, ids []int64, ansHas map[int64]string, lang string) (res *model.AnsCheck, err error)

CheckBase check base question all

func (*Service) CheckBirthday

func (s *Service) CheckBirthday(c context.Context, mid int64) (ok bool)

CheckBirthday check user had birthday info

func (*Service) Close

func (s *Service) Close()

Close dao.

func (*Service) ConvertExtraQs

func (s *Service) ConvertExtraQs(c context.Context, mid int64, lang string, mobile bool) (res *model.AnsQueDetailList, err error)

ConvertExtraQs extra question.

func (*Service) ConvertProQues

func (s *Service) ConvertProQues(c context.Context, mid int64, tIds string, lang string, mobile bool) (res []*model.AnsQueDetail, err error)

ConvertProQues pro question.

func (*Service) Cool

func (s *Service) Cool(c context.Context, hid, mid int64) (cool *model.AnsCool, err error)

Cool .

func (*Service) ExtraCheck

func (s *Service) ExtraCheck(c context.Context, mid int64, ids []int64, ansHash map[int64]string, ua string, lang string, refer string, buvid string) (err error)

ExtraCheck extra check.

func (*Service) ExtraQs

func (s *Service) ExtraQs(c context.Context, mid int64, lang string, mobile bool) (rqs *model.AnsQuesList, err error)

ExtraQs extra question.

func (*Service) ExtraScore

func (s *Service) ExtraScore(c context.Context, mid int64) (res *model.ExtraScoreReply, err error)

ExtraScore .

func (*Service) PendantRec

func (s *Service) PendantRec(c context.Context, arg *model.ReqPendant) (err error)

PendantRec .

func (*Service) ProCheck

func (s *Service) ProCheck(c context.Context, mid int64, ids []int64, ansHash map[int64]string, lang string) (hid int64, err error)

ProCheck check second step questions

func (*Service) ProQues

func (s *Service) ProQues(c context.Context, mid int64, qtsStr string, lang string, mobile bool) (rqs *model.AnsQuesList, err error)

ProQues question info.

func (*Service) ProType

func (s *Service) ProType(c context.Context, mid int64, lang string) (res *model.AnsProType, err error)

ProType type.

func (*Service) Validate

func (s *Service) Validate(c context.Context, challenge, validate, seccode, clientType string, success int, mid int64,
	cookie, captchaType string, comargs map[string]string) (res *model.AnsCheck, err error)

Validate check question captcha

Jump to

Keyboard shortcuts

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