1234567891011121314151617181920212223242526272829303132333435 |
- package ddm
- import (
- "github.com/mritd/chinaid"
- )
- type BType uint8
- const (
- BMobile BType = iota
- BIDNo
- BName
- BBankNo
- BEmail
- BAddress
- )
- func Benchmark(bType BType) string {
- switch bType {
- case BMobile:
- return chinaid.Mobile()
- case BIDNo:
- return chinaid.IDNo()
- case BEmail:
- return chinaid.Email()
- case BAddress:
- return chinaid.Address()
- case BName:
- return chinaid.Name()
- case BBankNo:
- return chinaid.BankNo()
- default:
- return ""
- }
- }
|