Documentation ¶
Overview ¶
*
- Copyright 2015 @ at3.net.
- name : sso.go
- author : jarryliu
- date : 2016-11-25 13:02
- description :
- history :
*
- Copyright 2015 @ at3.net.
- name : module.go
- author : jarryliu
- date : 2016-11-25 13:02
- description :
- history :
*
- Copyright 2015 @ at3.net.
- name : sso.go
- author : jarryliu
- date : 2016-11-25 13:02
- description :
- history :
Index ¶
- Variables
- func Register(name string, m Module) error
- type Bank4E
- func (b *Bank4E) Check(realName, idCard, phone, bankAccount string) map[string]string
- func (b *Bank4E) GetBasicInfo(memberId int64) map[string]string
- func (b *Bank4E) Init()
- func (b *Bank4E) SetApp(app gof.App)
- func (b *Bank4E) UpdateInfo(memberId int64, realName, idCard, phone, bankAccount string) error
- type ExpressModule
- type MemberModule
- func (m *MemberModule) CheckToken(memberId int64, token string) bool
- func (m *MemberModule) GetToken(memberId int64) string
- func (m *MemberModule) Init()
- func (m *MemberModule) RemoveToken(memberId int64)
- func (m *MemberModule) ResetToken(memberId int64, pwd string) string
- func (m *MemberModule) SetApp(app gof.App)
- type Module
- type PaymentModule
- func (p *PaymentModule) CheckAndPayment(userId int64, data map[string]string) error
- func (p *PaymentModule) CreateToken(userId int64) string
- func (p *PaymentModule) GetPayPlatform() []*bank.PaymentPlatform
- func (p *PaymentModule) Init()
- func (p *PaymentModule) SetApp(app gof.App)
- func (p *PaymentModule) Submit(userId int64, data map[string]string) error
- type SSOModule
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SSO = "sso" MM = "member" PAY = "payment" B4E = "bank4e" EXPRESS = "express" )
Functions ¶
Types ¶
type Bank4E ¶
type Bank4E struct {
// contains filtered or unexported fields
}
func (*Bank4E) GetBasicInfo ¶
获取基础信息
type ExpressModule ¶
type ExpressModule struct {
// contains filtered or unexported fields
}
func (*ExpressModule) GetLogisticFlowTrack ¶
func (e *ExpressModule) GetLogisticFlowTrack(shipperCode string, logisticCode string, invert bool) (*shipment.ShipOrderTrack, error)
func (*ExpressModule) Init ¶
func (e *ExpressModule) Init()
func (*ExpressModule) SetApp ¶
func (e *ExpressModule) SetApp(app gof.App)
type MemberModule ¶
type MemberModule struct {
// contains filtered or unexported fields
}
func (*MemberModule) CheckToken ¶
func (m *MemberModule) CheckToken(memberId int64, token string) bool
检查会员的会话Token是否正确,
func (*MemberModule) ResetToken ¶
func (m *MemberModule) ResetToken(memberId int64, pwd string) string
重设并返回会员的会员Token,token有效时间默认为60天
type PaymentModule ¶
type PaymentModule struct {
// contains filtered or unexported fields
}
func (*PaymentModule) CheckAndPayment ¶
func (p *PaymentModule) CheckAndPayment(userId int64, data map[string]string) error
func (*PaymentModule) CreateToken ¶
func (p *PaymentModule) CreateToken(userId int64) string
func (*PaymentModule) GetPayPlatform ¶
func (p *PaymentModule) GetPayPlatform() []*bank.PaymentPlatform
获取支付平台
Click to show internal directories.
Click to hide internal directories.