impl

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSort

func BuildSort(sort *param.Sort, dalStruct interface{}, dalDO interface{}) error

func GetAuthorizedUser

func GetAuthorizedUser(ctx context.Context) (*entity.User, bool)

func MustGetAuthorizedUser

func MustGetAuthorizedUser(ctx context.Context) (*entity.User, error)

func NewAdminService

func NewAdminService(userService service.UserService, cache cache.Cache, config *config.Config, event event.Bus, twoFactorMFA service.TwoFactorTOTPMFAService, emailService service.EmailService) service.AdminService

func NewAttachmentService

func NewAttachmentService(optionService service.OptionService, fileStorageComposite storage.FileStorageComposite) service.AttachmentService

func NewAuthenticateService

func NewAuthenticateService(categoryService service.CategoryService, cache cache.Cache) service.AuthenticateService

func NewBackUpService

func NewBackUpService(config *config.Config, optionService service.OptionService, oneTimeTokenService service.OneTimeTokenService, exportImportService service.ExportImport) service.BackupService

func NewBaseCommentService

func NewBaseCommentService(userService service.UserService, optionService service.OptionService, event event.Bus) service.BaseCommentService

func NewBaseMFAService

func NewBaseMFAService() service.BaseMFAService

func NewBasePostService

func NewBasePostService(optionService service.OptionService, baseCommentService service.BaseCommentService) service.BasePostService

func NewCategoryService

func NewCategoryService(optionService service.OptionService) service.CategoryService

func NewClientOptionService

func NewClientOptionService(config *config.Config, cache cache.Cache, event event.Bus, logger *zap.Logger, optionService service.OptionService) service.ClientOptionService

func NewEmailService

func NewEmailService(optionService service.OptionService) service.EmailService

func NewExportImport added in v1.0.5

func NewExportImport(categoryService service.CategoryService,
	postService service.PostService,
	tagService service.TagService,
	postTagService service.PostTagService,
	postCategoryService service.PostCategoryService,
) service.ExportImport

func NewInstallService

func NewInstallService(
	optionService service.OptionService,
	event event.Bus,
	uerService service.UserService,
	categoryService service.CategoryService,
	postService service.PostService,
	postCommentService service.PostCommentService,
	sheetService service.SheetService,
	menuService service.MenuService,
) service.InstallService

func NewJournalCommentService

func NewJournalCommentService(baseCommentService service.BaseCommentService) service.JournalCommentService

func NewJournalService

func NewJournalService(journalCommentService service.JournalCommentService) service.JournalService

func NewLinkService

func NewLinkService() service.LinkService

func NewLogService

func NewLogService() service.LogService

func NewMenuService

func NewMenuService() service.MenuService

func NewMetaService

func NewMetaService() service.MetaService

func NewOneTimeTokenService

func NewOneTimeTokenService(cache cache.Cache) service.OneTimeTokenService

func NewOptionService

func NewOptionService(config *config.Config, cache cache.Cache, event event.Bus, logger *zap.Logger) service.OptionService

func NewPhotoService

func NewPhotoService() service.PhotoService

func NewPostCategoryService

func NewPostCategoryService(categoryService service.CategoryService) service.PostCategoryService

func NewPostCommentService

func NewPostCommentService(baseCommentService service.BaseCommentService) service.PostCommentService

func NewPostService

func NewPostService(basePostService service.BasePostService,
	categoryService service.CategoryService,
	optionService service.OptionService,
	event event.Bus,
	cache cache.Cache,
) service.PostService

func NewPostTagService

func NewPostTagService(tagService service.TagService) service.PostTagService

func NewSheetCommentService

func NewSheetCommentService(baseCommentService service.BaseCommentService) service.SheetCommentService

func NewSheetService

func NewSheetService(basePostService service.BasePostService,
	metaService service.MetaService,
	optionService service.OptionService,
	sheetCommentService service.SheetCommentService,
	event event.Bus,
	cache cache.Cache,
	themeService service.ThemeService,
) service.SheetService

func NewStatisticService

func NewStatisticService(postService service.PostService,
	postCommentService service.PostCommentService,
	journalCommentService service.JournalCommentService,
	sheetCommentService service.SheetCommentService,
	tagService service.TagService,
	optionService service.OptionService,
	categoryService service.CategoryService,
	linkService service.LinkService,
	sheetService service.SheetService,
	userService service.UserService,
	journalService service.JournalService,
) service.StatisticService

func NewTagService

func NewTagService(optionService service.OptionService) service.TagService

func NewThemeService

func NewThemeService(optionService service.OptionService, config *config.Config, event event.Bus, propertyScanner theme.PropertyScanner, fileScanner theme.FileScanner, themeFetcher themeFetchers) service.ThemeService

func NewTwoFactorTOTPMFAService

func NewTwoFactorTOTPMFAService(baseMFA service.BaseMFAService) service.TwoFactorTOTPMFAService

func NewUserService

func NewUserService(twoFactorMFAService service.TwoFactorTOTPMFAService, event event.Bus) service.UserService

func UnderscoreName

func UnderscoreName(name string) string

UnderscoreName 驼峰式写法转为下划线写法

func WrapDBErr

func WrapDBErr(err error) error

Types

type Order

type Order struct {
	Property string
	Asc      bool
}

func ConvertSort

func ConvertSort(sorts *param.Sort) ([]*Order, error)

Jump to

Keyboard shortcuts

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