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 Clients ¶
type Clients struct { WxOfficial *wxClient.WxOfficialAccount MiniProgram *wxClient.MiniProgram DingMini *dingClient.DingTalk Config *relationDB.SysTenantApp }
type ClientsManage ¶
func NewClients ¶
func NewClients(c config.Config) *ClientsManage
func (*ClientsManage) ClearClients ¶
func (c *ClientsManage) ClearClients(ctx context.Context, appCode string) error
func (*ClientsManage) GetClients ¶
type LoginLimit ¶ added in v1.1.1
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 }
func NewServiceContext ¶
func NewServiceContext(c config.Config) *ServiceContext
Click to show internal directories.
Click to hide internal directories.