service

package
v0.0.0-...-baf6233 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitService

func InitService()

Types

type CacheService

type CacheService struct {
	Cache *gocache.Cache
}

func NewCacheService

func NewCacheService() *CacheService

func (*CacheService) Get

func (c *CacheService) Get(k string) (interface{}, bool)

func (*CacheService) Set

func (c *CacheService) Set(k string, v interface{}, d time.Duration)

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

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

type GlobleService struct {
	Bot *wechaty.Wechaty
}

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

func (*QaService) DoQa

func (q *QaService) DoQa(contact entity.ContactEntity, message *user.Message)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL