Documentation ¶
Index ¶
- func InitService()
- type CacheService
- type ContactService
- func (c *ContactService) GetByAppId(appId int32) []entity.ContactEntity
- func (c *ContactService) GetById(contactId string) entity.ContactEntity
- func (c *ContactService) SayTextToContact(contactId string, msgText string)
- func (c *ContactService) Upsert(contact entity.ContactEntity) entity.ContactEntity
- type ForwardMediaService
- type ForwardService
- type GlobleService
- type GroupService
- type QaService
- type RoomService
- type UploadService
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) GetByAppId ¶
func (c *ContactService) GetByAppId(appId int32) []entity.ContactEntity
func (*ContactService) GetById ¶
func (c *ContactService) GetById(contactId string) entity.ContactEntity
func (*ContactService) SayTextToContact ¶
func (c *ContactService) SayTextToContact(contactId string, msgText string)
func (*ContactService) Upsert ¶
func (c *ContactService) Upsert(contact entity.ContactEntity) entity.ContactEntity
type ForwardMediaService ¶
type ForwardMediaService struct {
ForwardList []entity.SkillForwardEntity
}
func NewForwardMediaService ¶
func NewForwardMediaService() *ForwardMediaService
func (*ForwardMediaService) DoForward ¶
func (f *ForwardMediaService) DoForward(contact entity.ContactEntity, message *user.Message)
type ForwardService ¶
type ForwardService struct { ForwardList []entity.SkillForwardEntity GroupRelatinMap map[int32][]entity.GroupRelationEntity }
func NewForwardService ¶
func NewForwardService() *ForwardService
func (*ForwardService) DoForward ¶
func (f *ForwardService) DoForward(contact entity.ContactEntity, message *user.Message)
type GlobleService ¶
func NewGlobleService ¶
func NewGlobleService() *GlobleService
func (*GlobleService) GetBot ¶
func (g *GlobleService) GetBot() *wechaty.Wechaty
func (*GlobleService) SetBot ¶
func (g *GlobleService) SetBot(bot *wechaty.Wechaty)
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
type QaService ¶
type QaService struct {
QaConf map[string][]entity.SkillQaEntity
}
func NewQaService ¶
func NewQaService() *QaService
type RoomService ¶
type RoomService struct {
InviteConf []entity.SkillInviteEntity
}
func NewRoomService ¶
func NewRoomService() *RoomService
func (*RoomService) AutoInvite ¶
func (r *RoomService) AutoInvite(contact _interface.IContact, message *user.Message, hello string)
type UploadService ¶
type UploadService struct { }
func NewUploadService ¶
func NewUploadService() *UploadService
func (*UploadService) DoUpload ¶
func (q *UploadService) DoUpload(contact entity.ContactEntity, message *user.Message)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.