plugin_common

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginCommonService

type PluginCommonService struct {
	// contains filtered or unexported fields
}

PluginCommonService user service

func NewPluginCommonService

func NewPluginCommonService(
	pluginConfigRepo PluginConfigRepo,
	pluginUserConfigRepo PluginUserConfigRepo,
	configService *config.ConfigService,
	data *data.Data,
) *PluginCommonService

NewPluginCommonService new report service

func (*PluginCommonService) GetUserPluginConfig added in v1.2.5

func (ps *PluginCommonService) GetUserPluginConfig(ctx context.Context, req *schema.GetUserPluginConfigReq) (
	configValue string, err error)

GetUserPluginConfig get user plugin config

func (*PluginCommonService) UpdatePluginConfig

func (ps *PluginCommonService) UpdatePluginConfig(ctx context.Context, req *schema.UpdatePluginConfigReq) (err error)

UpdatePluginConfig update plugin config

func (*PluginCommonService) UpdatePluginStatus

func (ps *PluginCommonService) UpdatePluginStatus(ctx context.Context) (err error)

UpdatePluginStatus update plugin status

func (*PluginCommonService) UpdatePluginUserConfig added in v1.2.5

func (ps *PluginCommonService) UpdatePluginUserConfig(ctx context.Context, req *schema.UpdateUserPluginConfigReq) (err error)

UpdatePluginUserConfig update plugin config

type PluginConfigRepo

type PluginConfigRepo interface {
	SavePluginConfig(ctx context.Context, pluginSlugName, configValue string) (err error)
	GetPluginConfigAll(ctx context.Context) (pluginConfigs []*entity.PluginConfig, err error)
}

type PluginUserConfigRepo added in v1.2.5

type PluginUserConfigRepo interface {
	SaveUserPluginConfig(ctx context.Context, userID string, pluginSlugName, configValue string) (err error)
	GetPluginUserConfig(ctx context.Context, userID, pluginSlugName string) (
		pluginUserConfig *entity.PluginUserConfig, exist bool, err error)
	GetPluginUserConfigPage(ctx context.Context, page, pageSize int) (
		pluginUserConfigs []*entity.PluginUserConfig, total int64, err error)
}

Jump to

Keyboard shortcuts

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