svc

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	WxOfficial  *wxClient.WxOfficialAccount
	MiniProgram *wxClient.MiniProgram
	DingMini    *dingClient.DingTalk
	Config      *relationDB.SysTenantApp
}

type ClientsManage

type ClientsManage struct {
	Config config.Config
}

func NewClients

func NewClients(c config.Config) *ClientsManage

func (*ClientsManage) ClearClients

func (c *ClientsManage) ClearClients(ctx context.Context, appCode string) error

func (*ClientsManage) GetClients

func (c *ClientsManage) GetClients(ctx context.Context, appCode string) (Clients, error)

type ServiceContext

type ServiceContext struct {
	Config            config.Config
	ProjectID         *utils.SnowFlake
	AreaID            *utils.SnowFlake
	UserID            *utils.SnowFlake
	Slot              *cache.Slot
	OssClient         *oss.Client
	Store             kv.Store
	PwdCheck          *cache.PwdCheck
	Captcha           *cache.Captcha
	Cm                *ClientsManage
	FastEvent         *eventBus.FastEvent
	UserTokenInfo     *cache.UserToken
	TenantCache       *caches.Cache[tenant.Info, string]
	TenantConfigCache *caches.Cache[sys.TenantConfig, string]
	ProjectCache      *caches.Cache[sys.ProjectInfo, int64]
	UserCache         *caches.Cache[sys.UserInfo, int64]
	ApiCache          *caches.Cache[relationDB.SysApiInfo, string]
	RoleAccessCache   *caches.Cache[map[int64]struct{}, string]
	Sms               *smsClient.Sms
}

func NewServiceContext

func NewServiceContext(c config.Config) *ServiceContext

Jump to

Keyboard shortcuts

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