Documentation ¶
Index ¶
- type AlipayAntispamValue
- type Dao
- func (d *Dao) AlipayAntispam(c context.Context, mid int64) (value *AlipayAntispamValue, err error)
- func (d *Dao) AlipayInit(c context.Context, param url.Values) (bizno string, err error)
- func (d *Dao) AlipayQuery(c context.Context, param url.Values) (pass bool, reason string, err error)
- func (d *Dao) DeleteAlipayAntispam(c context.Context, mid int64) (err error)
- func (d *Dao) RealnameCaptchaGTRegister(c context.Context, mid int64, ip, clientType string, newCaptcha int) (challenge string, err error)
- func (d *Dao) RealnameCaptchaGTRegisterValidate(c context.Context, challenge, seccode, clientType, ip, captchaID string, ...) (realSeccode string, err error)
- func (d *Dao) SetAlipayAntispam(c context.Context, mid int64, value *AlipayAntispamValue) (err error)
- func (d *Dao) TelInfo(c context.Context, mid int64) (tel string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlipayAntispamValue ¶
type AlipayAntispamValue int
AlipayAntispamValue 最低位为pass flag ,高位为计数 计数:判断用户的申请次数 flag:是否通过本次防刷验证(极验是否通过)
func (*AlipayAntispamValue) Count ¶
func (a *AlipayAntispamValue) Count() int
Count return antispam hit count
func (*AlipayAntispamValue) Flag ¶
func (a *AlipayAntispamValue) Flag() int
Flag return antispam pass flag
func (*AlipayAntispamValue) IncreaseCount ¶
func (a *AlipayAntispamValue) IncreaseCount()
IncreaseCount add antispam count
func (*AlipayAntispamValue) Pass ¶
func (a *AlipayAntispamValue) Pass() bool
Pass return is antispam passed (such as when geetest passed)
func (*AlipayAntispamValue) SetPass ¶
func (a *AlipayAntispamValue) SetPass(pass bool)
SetPass set is antispam verified (such as when geetest passed)
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao
func (*Dao) AlipayAntispam ¶
AlipayAntispam get alipay antispam count by mid
func (*Dao) AlipayInit ¶
AlipayInit .
func (*Dao) AlipayQuery ¶
func (d *Dao) AlipayQuery(c context.Context, param url.Values) (pass bool, reason string, err error)
AlipayQuery .
func (*Dao) DeleteAlipayAntispam ¶
DeleteAlipayAntispam delete alipay antispam count by mid
func (*Dao) RealnameCaptchaGTRegister ¶
func (d *Dao) RealnameCaptchaGTRegister(c context.Context, mid int64, ip, clientType string, newCaptcha int) (challenge string, err error)
RealnameCaptchaGTRegister register a geetest apply
func (*Dao) RealnameCaptchaGTRegisterValidate ¶
func (d *Dao) RealnameCaptchaGTRegisterValidate(c context.Context, challenge, seccode, clientType, ip, captchaID string, mid int64) (realSeccode string, err error)
RealnameCaptchaGTRegisterValidate recheck the challenge code and get to seccode
func (*Dao) SetAlipayAntispam ¶
func (d *Dao) SetAlipayAntispam(c context.Context, mid int64, value *AlipayAntispamValue) (err error)
SetAlipayAntispam set alipay antispam count by mid
Click to show internal directories.
Click to hide internal directories.