Documentation ¶
Index ¶
- type Service
- func (s *Service) AddUnicomBind(c context.Context, phone string, code int, mid int64, now time.Time) (msg string, err error)
- func (s *Service) CancelOrder(c context.Context, usermob string) (res *unicom.BroadbandOrder, msg string, err error)
- func (s *Service) DesDecrypt(src, key []byte) ([]byte, error)
- func (s *Service) FlowSync(c context.Context, flowbyte int, usermob, time, ip string, now time.Time) (err error)
- func (s *Service) InAdvanceSync(c context.Context, usermob, ip string, u *unicom.UnicomJson, now time.Time) (err error)
- func (s *Service) InIPSync(c context.Context, ip string, u *unicom.UnicomIpJson, now time.Time) (err error)
- func (s *Service) InOrdersSync(c context.Context, usermob, ip string, u *unicom.UnicomJson, now time.Time) (err error)
- func (s *Service) IsUnciomIP(ipUint uint32, ipStr, mobiApp string, build int, now time.Time) (err error)
- func (s *Service) Order(c context.Context, usermobDes, channel string, ordertype int, now time.Time) (res *unicom.BroadbandOrder, msg string, err error)
- func (s *Service) Pack(c context.Context, usermob string, mid int64, now time.Time) (msg string, err error)
- func (s *Service) ReleaseUnicomBind(c context.Context, mid int64, phone int) (msg string, err error)
- func (s *Service) UnicomFlowPack(c context.Context, mid int64, flowID string, now time.Time) (msg string, err error)
- func (s *Service) UnicomPackList() (res []*unicom.UserPack)
- func (s *Service) UnicomPackReceive(c context.Context, mid int64, packID int64, now time.Time) (msg string, err error)
- func (s *Service) UnicomSMSCode(c context.Context, phone string, now time.Time) (msg string, err error)
- func (s *Service) UnicomState(c context.Context, usermob, mobiApp, ip string, build int, now time.Time) (res *unicom.Unicom, err error)
- func (s *Service) UserBind(c context.Context, mid int64) (res *unicom.UserBind, msg string, err error)
- func (s *Service) UserBindLog(c context.Context, mid int64, now time.Time) (res []*unicom.UserLog, err error)
- func (s *Service) UserFlow(c context.Context, usermob, mobiApp, ip string, build int, now time.Time) (res *unicom.Unicom, msg string, err error)
- func (s *Service) UserFlowState(c context.Context, usermob string, now time.Time) (res *unicom.Unicom, err error)
- func (s *Service) UserPacksLog(c context.Context, starttime, now time.Time, start int, ip string) (res []*unicom.UserPackLog, err error)
- func (s *Service) UserState(c context.Context, usermob, mobiApp, ip string, build int, now time.Time) (res *unicom.Unicom, msg string, err error)
- func (s *Service) UserUnciomIP(ipUint uint32, ipStr, usermob, mobiApp string, build int, now time.Time) (res *unicom.UnicomUserIP)
- func (s *Service) WelfareBindState(c context.Context, mid int64) (res int)
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
}
func (*Service) AddUnicomBind ¶
func (s *Service) AddUnicomBind(c context.Context, phone string, code int, mid int64, now time.Time) (msg string, err error)
AddUnicomBind unicom user bind
func (*Service) CancelOrder ¶
func (s *Service) CancelOrder(c context.Context, usermob string) (res *unicom.BroadbandOrder, msg string, err error)
CancelOrder unicom user cancel order
func (*Service) DesDecrypt ¶
DesDecrypt
func (*Service) FlowSync ¶
func (s *Service) FlowSync(c context.Context, flowbyte int, usermob, time, ip string, now time.Time) (err error)
FlowSync update OrdersSync
func (*Service) InAdvanceSync ¶
func (s *Service) InAdvanceSync(c context.Context, usermob, ip string, u *unicom.UnicomJson, now time.Time) (err error)
InAdvanceSync insert AdvanceSync
func (*Service) InIPSync ¶
func (s *Service) InIPSync(c context.Context, ip string, u *unicom.UnicomIpJson, now time.Time) (err error)
InIPSync
func (*Service) InOrdersSync ¶
func (s *Service) InOrdersSync(c context.Context, usermob, ip string, u *unicom.UnicomJson, now time.Time) (err error)
InOrdersSync insert OrdersSync
func (*Service) IsUnciomIP ¶
func (s *Service) IsUnciomIP(ipUint uint32, ipStr, mobiApp string, build int, now time.Time) (err error)
IsUnciomIP is unicom ip
func (*Service) Order ¶
func (s *Service) Order(c context.Context, usermobDes, channel string, ordertype int, now time.Time) (res *unicom.BroadbandOrder, msg string, err error)
Order unicom user order
func (*Service) Pack ¶
func (s *Service) Pack(c context.Context, usermob string, mid int64, now time.Time) (msg string, err error)
PrivilegePack
func (*Service) ReleaseUnicomBind ¶
func (s *Service) ReleaseUnicomBind(c context.Context, mid int64, phone int) (msg string, err error)
ReleaseUnicomBind release unicom bind
func (*Service) UnicomFlowPack ¶
func (s *Service) UnicomFlowPack(c context.Context, mid int64, flowID string, now time.Time) (msg string, err error)
UnicomFlowPack unicom flow pack
func (*Service) UnicomPackList ¶
UnicomPackList unicom pack list
func (*Service) UnicomPackReceive ¶
func (s *Service) UnicomPackReceive(c context.Context, mid int64, packID int64, now time.Time) (msg string, err error)
UnicomPackReceive unicom pack receive
func (*Service) UnicomSMSCode ¶
func (s *Service) UnicomSMSCode(c context.Context, phone string, now time.Time) (msg string, err error)
UnicomSMSCode unicom sms code
func (*Service) UnicomState ¶
func (s *Service) UnicomState(c context.Context, usermob, mobiApp, ip string, build int, now time.Time) (res *unicom.Unicom, err error)
UnicomState
func (*Service) UserBind ¶
func (s *Service) UserBind(c context.Context, mid int64) (res *unicom.UserBind, msg string, err error)
UserBind user bind
func (*Service) UserBindLog ¶
func (s *Service) UserBindLog(c context.Context, mid int64, now time.Time) (res []*unicom.UserLog, err error)
UserBindLog user bind week log
func (*Service) UserFlow ¶
func (s *Service) UserFlow(c context.Context, usermob, mobiApp, ip string, build int, now time.Time) (res *unicom.Unicom, msg string, err error)
UserFlow
func (*Service) UserFlowState ¶
func (s *Service) UserFlowState(c context.Context, usermob string, now time.Time) (res *unicom.Unicom, err error)
UserFlowState
func (*Service) UserPacksLog ¶
func (s *Service) UserPacksLog(c context.Context, starttime, now time.Time, start int, ip string) (res []*unicom.UserPackLog, err error)
UserPacksLog user pack logs
func (*Service) UserState ¶
func (s *Service) UserState(c context.Context, usermob, mobiApp, ip string, build int, now time.Time) (res *unicom.Unicom, msg string, err error)
UserState
func (*Service) UserUnciomIP ¶
func (s *Service) UserUnciomIP(ipUint uint32, ipStr, usermob, mobiApp string, build int, now time.Time) (res *unicom.UnicomUserIP)
UserUnciomIP
Click to show internal directories.
Click to hide internal directories.