Documentation ¶
Index ¶
- Constants
- type GeneratorData
- func (g *GeneratorData) GeneratorAddress() (ret string)
- func (g *GeneratorData) GeneratorBankID() (ret string)
- func (g *GeneratorData) GeneratorDate() time.Time
- func (g *GeneratorData) GeneratorEmail() (ret string)
- func (g *GeneratorData) GeneratorIDCart() (ret string, issueOrg, birthday_, validPeriod, addr_ string)
- func (g *GeneratorData) GeneratorName() (ret string)
- func (g *GeneratorData) GeneratorPhone() (ret string)
- func (g *GeneratorData) GeneratorProvinceAdnCityRand() (ret string)
- func (g *GeneratorData) VerifyCode(cardId string) string
Constants ¶
View Source
const ( ProvinceCityLength = len(metadata.ProvinceCity) CardBinsLength = len(metadata.CardBins) DomainSuffixLength = len(metadata.DomainSuffix) AreaCodeLength = len(metadata.AreaCode) CityNameLength = len(metadata.CityName) MobilePrefix = len(metadata.MobilePrefix) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneratorData ¶
type GeneratorData struct { Name string `json:"name"` Email string `json:"email"` Address string `json:"address"` // 目前地址 BankID string `json:"bank_id"` PhoneNum string `json:"phone_num"` // 手机号码 // TODO 身份证 IDCard string `json:"id_card"` // 身份证号 IssueOrg string `json:"issue_org"` // 身份证发证机关 Birthday string `json:"birthday"` // 出生日期 ValidPeriod string `json:"valid_period"` // 有效时期 IDCardAddr string `json:"id_card_addr"` // 身份证地址 // contains filtered or unexported fields }
GeneratorData 数据
func (*GeneratorData) GeneratorAddress ¶
func (g *GeneratorData) GeneratorAddress() (ret string)
GetAddress 获取地址
func (*GeneratorData) GeneratorBankID ¶
func (g *GeneratorData) GeneratorBankID() (ret string)
GetBankID 获取银行卡号
func (*GeneratorData) GeneratorDate ¶ added in v1.0.1
func (g *GeneratorData) GeneratorDate() time.Time
func (*GeneratorData) GeneratorEmail ¶
func (g *GeneratorData) GeneratorEmail() (ret string)
GeneratorEmail 生成邮箱
func (*GeneratorData) GeneratorIDCart ¶
func (g *GeneratorData) GeneratorIDCart() (ret string, issueOrg, birthday_, validPeriod, addr_ string)
GeneratorIDCart 生成身份证信息
func (*GeneratorData) GeneratorName ¶
func (g *GeneratorData) GeneratorName() (ret string)
GeneratorName 生成姓名
func (*GeneratorData) GeneratorPhone ¶
func (g *GeneratorData) GeneratorPhone() (ret string)
GeneratorPhone 生成手机号码
func (*GeneratorData) GeneratorProvinceAdnCityRand ¶
func (g *GeneratorData) GeneratorProvinceAdnCityRand() (ret string)
GeneratorProvinceAdnCityRand 随机获取城市和地址
func (*GeneratorData) VerifyCode ¶
func (g *GeneratorData) VerifyCode(cardId string) string
获取 VerifyCode
Click to show internal directories.
Click to hide internal directories.