svc

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaptchaLimit added in v1.1.1

type CaptchaLimit struct {
	PhoneIp      *tools.Limit
	PhoneAccount *tools.Limit
	EmailIp      *tools.Limit
	EmailAccount *tools.Limit
}

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 LoginLimit added in v1.1.1

type LoginLimit struct {
	PwdIp      *tools.Limit
	PwdAccount *tools.Limit
}

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
	Captcha            *cache.Captcha
	CaptchaLimit       CaptchaLimit
	LoginLimit         LoginLimit
	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]
	AreaCache          *caches.Cache[sys.AreaInfo, int64]
	ApiCache           *caches.Cache[relationDB.SysApiInfo, string]
	RoleAccessCache    *caches.Cache[map[int64]struct{}, string]
	Sms                *smsClient.Sms
	DingStreamMap      map[string]*dingClient.StreamClient //key是租户号,value是需要同步的stream
	DingStreamMapMutex sync.RWMutex
	TimedM             timedmanage.TimedManage
}

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