realname

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: 23 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 is

func New

func New(c *conf.Config, rsapub, rsapriv, alipub, alibilipriv string) (s *Service)

New create service instance and return.

func (*Service) AlipayApply

func (s *Service) AlipayApply(c context.Context, mid int64, param *model.ParamRealnameAlipayApply) (res *model.RealnameAlipayApply, err error)

AlipayApply 提交芝麻认证申请

func (*Service) AlipayConfirm

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

AlipayConfirm 查询芝麻认证状态

func (*Service) Apply

func (s *Service) Apply(c context.Context, mid int64, realname string, cardType int, cardNum string, countryID int, captureCode int, handIMGToken, frontIMGToken, backIMGToken string) (err error)

Apply .

func (*Service) ApplyStatus

func (s *Service) ApplyStatus(c context.Context, mid int64) (status int8, remark string, realname string, card string, err error)

ApplyStatus return realname apply status

func (*Service) CaptchaGTRefresh

func (s *Service) CaptchaGTRefresh(c context.Context, mid int64, ip, gtType string, hash string) (challenge string, gt string, success int, err error)

CaptchaGTRefresh refresh geetest

func (*Service) CaptchaGTRegister

func (s *Service) CaptchaGTRegister(c context.Context, mid int64, ip, gtType string) (urlstr string, remote int, err error)

CaptchaGTRegister register geetest

func (*Service) CaptchaGTValidate

func (s *Service) CaptchaGTValidate(c context.Context, mid int64, ip, clientType string, param *model.ParamRealnameCaptchaGTCheck) (res *model.RealnameCaptchaGTValidate, err error)

CaptchaGTValidate validate geetest

func (*Service) CardTypes

func (s *Service) CardTypes(c context.Context, platform string, mobiapp string, device string, build int) (list []*model.RealnameCardType, err error)

CardTypes .

func (*Service) CardTypesV2

func (s *Service) CardTypesV2(c context.Context) (list []*model.RealnameCardType, err error)

CardTypesV2 .

func (*Service) Channel

func (s *Service) Channel(c context.Context) (channels []*model.RealnameChannel, err error)

Channel .

func (*Service) CountryList

func (s *Service) CountryList(c context.Context) (list []*model.RealnameCountry, err error)

CountryList .

func (*Service) Preview

func (s *Service) Preview(c context.Context, mid int64, src string) (img []byte, err error)

Preview preview id card

func (*Service) Status

func (s *Service) Status(c context.Context, mid int64) (status int8, err error)

Status get status of realname

func (*Service) TelCapture

func (s *Service) TelCapture(c context.Context, mid int64) (err error)

TelCapture .

func (*Service) TelInfo

func (s *Service) TelInfo(c context.Context, mid int64) (tel string, err error)

TelInfo .

func (*Service) Upload

func (s *Service) Upload(c context.Context, mid int64, data []byte) (src string, err error)

Upload upload ID card.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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