Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitService ¶
func InitService()
Types ¶
type CacheService ¶
func NewCacheService ¶
func NewCacheService() *CacheService
func (*CacheService) Get ¶
func (c *CacheService) Get(k string) (interface{}, bool)
type ContactService ¶
type ContactService struct {
ContactList map[string]entity.ContactEntity
}
func NewContactService ¶
func NewContactService() *ContactService
func (*ContactService) GetById ¶
func (c *ContactService) GetById(contactId string) entity.ContactEntity
func (*ContactService) SayTextToContact ¶
func (c *ContactService) SayTextToContact(contactId string, msgText string, at string)
func (*ContactService) Upsert ¶
func (c *ContactService) Upsert(contact entity.ContactEntity) entity.ContactEntity
type CpsService ¶
type CpsService struct {
// contains filtered or unexported fields
}
func NewCpsService ¶
func NewCpsService() *CpsService
func (*CpsService) DoCps ¶
func (c *CpsService) DoCps(contact entity.ContactEntity, message *wechat.Msg) error
func (*CpsService) GetCpsLinkByUrl ¶
func (c *CpsService) GetCpsLinkByUrl(url string) (string, error)
type GroupService ¶
type GroupService struct {
GroupRelatinMap map[int32][]entity.GroupRelationEntity
}
func NewGroupService ¶
func NewGroupService() *GroupService
func (*GroupService) GetContactIdListByGroupId ¶
func (g *GroupService) GetContactIdListByGroupId(groupId int32) []string
func (*GroupService) HasContact ¶
func (g *GroupService) HasContact(groupId int32, contactId string) bool
type QaService ¶
type QaService struct {
QaConf map[string][]entity.SkillQaEntity
}
func NewQaService ¶
func NewQaService() *QaService
type UserService ¶
type UserService struct {
UserMap map[int32]entity.UserEntity
}
func NewUserService ¶
func NewUserService() *UserService
func (*UserService) GetAppKeyByAppId ¶
func (o *UserService) GetAppKeyByAppId(appId int32) string
func (*UserService) GetUserByAppId ¶
func (o *UserService) GetUserByAppId(appId int32) entity.UserEntity
Click to show internal directories.
Click to hide internal directories.