Documentation ¶
Index ¶
- type Detector
- type Info
- func (s *Info) AgentDetector() Detector
- func (s *Info) BoughtDetector() Detector
- func (s *Info) InfoGetter() InfoGetter
- func (s *Info) InfoMapGetter() InfoMapGetter
- func (s *Info) SelectPage() func(echo.Context) error
- func (s *Info) SetAgentDetector(fn Detector) *Info
- func (s *Info) SetBoughtDetector(fn Detector) *Info
- func (s *Info) SetInfoGetter(fn InfoGetter) *Info
- func (s *Info) SetInfoMapGetter(fn InfoMapGetter) *Info
- func (s *Info) SetSelectPageHandler(h func(echo.Context) error) *Info
- func (s *Info) SetTagsGetter(fn TagsGetter) *Info
- func (s *Info) TagsGetter() TagsGetter
- type InfoGetter
- type InfoMapGetter
- type Infor
- type Source
- func (s *Source) GetAgentDetector(sourceTable string) Detector
- func (s *Source) GetBoughtDetector(sourceTable string) Detector
- func (s *Source) GetInfoGetter(sourceTable string) InfoGetter
- func (s *Source) GetInfoMapGetter(sourceTable string) InfoMapGetter
- func (s *Source) GetSelectPageHandler(sourceTable string) func(echo.Context) error
- func (s *Source) GetTagsGetter(sourceTable string) TagsGetter
- type TagsGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector func(customer *dbschema.OfficialCustomer, sourceId string) bool
Detector 确认逻辑 如果sourceId为空白字符串,则代表不限制具体资源 例如 BoughtDetector(customer, “) 则代表判断是否购买过任一产品
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
Info 资源信息
func (*Info) AgentDetector ¶
func (*Info) BoughtDetector ¶
func (*Info) InfoGetter ¶
func (s *Info) InfoGetter() InfoGetter
func (*Info) InfoMapGetter ¶
func (s *Info) InfoMapGetter() InfoMapGetter
func (*Info) SetAgentDetector ¶
func (*Info) SetBoughtDetector ¶
func (*Info) SetInfoGetter ¶
func (s *Info) SetInfoGetter(fn InfoGetter) *Info
func (*Info) SetInfoMapGetter ¶
func (s *Info) SetInfoMapGetter(fn InfoMapGetter) *Info
func (*Info) SetSelectPageHandler ¶
func (*Info) SetTagsGetter ¶
func (s *Info) SetTagsGetter(fn TagsGetter) *Info
func (*Info) TagsGetter ¶
func (s *Info) TagsGetter() TagsGetter
type InfoGetter ¶
InfoGetter 查询单个数据
type InfoMapGetter ¶
InfoMapGetter 查询多个数据
type Infor ¶
type Infor interface { BoughtDetector() Detector AgentDetector() Detector InfoGetter() InfoGetter TagsGetter() TagsGetter SelectPage() func(echo.Context) error }
Infor 数据接口
type Source ¶
func (*Source) GetAgentDetector ¶
func (*Source) GetBoughtDetector ¶
func (*Source) GetInfoGetter ¶
func (s *Source) GetInfoGetter(sourceTable string) InfoGetter
func (*Source) GetInfoMapGetter ¶
func (s *Source) GetInfoMapGetter(sourceTable string) InfoMapGetter
func (*Source) GetSelectPageHandler ¶
func (*Source) GetTagsGetter ¶
func (s *Source) GetTagsGetter(sourceTable string) TagsGetter
Click to show internal directories.
Click to hide internal directories.