Documentation ¶
Index ¶
- type PluginCommonService
- func (ps *PluginCommonService) GetUserPluginConfig(ctx context.Context, req *schema.GetUserPluginConfigReq) (configValue string, err error)
- func (ps *PluginCommonService) UpdatePluginConfig(ctx context.Context, req *schema.UpdatePluginConfigReq) (err error)
- func (ps *PluginCommonService) UpdatePluginStatus(ctx context.Context) (err error)
- func (ps *PluginCommonService) UpdatePluginUserConfig(ctx context.Context, req *schema.UpdateUserPluginConfigReq) (err error)
- type PluginConfigRepo
- type PluginUserConfigRepo
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 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) }
Click to show internal directories.
Click to hide internal directories.