admin

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminHandler

type AdminHandler struct {
	OptionService       service.OptionService
	AdminService        service.AdminService
	TwoFactorMFAService service.TwoFactorTOTPMFAService
}

func NewAdminHandler

func NewAdminHandler(optionService service.OptionService, adminService service.AdminService, twoFactorMFA service.TwoFactorTOTPMFAService) *AdminHandler

func (*AdminHandler) Auth

func (a *AdminHandler) Auth(ctx *gin.Context) (interface{}, error)

func (*AdminHandler) AuthPreCheck

func (a *AdminHandler) AuthPreCheck(ctx *gin.Context) (interface{}, error)

func (*AdminHandler) GetEnvironments

func (a *AdminHandler) GetEnvironments(ctx *gin.Context) (interface{}, error)

func (*AdminHandler) GetLogFiles

func (a *AdminHandler) GetLogFiles(ctx *gin.Context) (interface{}, error)

func (*AdminHandler) IsInstalled

func (a *AdminHandler) IsInstalled(ctx *gin.Context) (interface{}, error)

func (*AdminHandler) LogOut

func (a *AdminHandler) LogOut(ctx *gin.Context) (interface{}, error)

func (*AdminHandler) RefreshToken

func (a *AdminHandler) RefreshToken(ctx *gin.Context) (interface{}, error)

func (*AdminHandler) SendResetCode

func (a *AdminHandler) SendResetCode(ctx *gin.Context) (interface{}, error)

type AttachmentHandler

type AttachmentHandler struct {
	AttachmentService service.AttachmentService
}

func NewAttachmentHandler

func NewAttachmentHandler(attachmentService service.AttachmentService) *AttachmentHandler

func (*AttachmentHandler) DeleteAttachment

func (a *AttachmentHandler) DeleteAttachment(ctx *gin.Context) (interface{}, error)

func (*AttachmentHandler) DeleteAttachmentInBatch

func (a *AttachmentHandler) DeleteAttachmentInBatch(ctx *gin.Context) (interface{}, error)

func (*AttachmentHandler) GetAllMediaType

func (a *AttachmentHandler) GetAllMediaType(ctx *gin.Context) (interface{}, error)

func (*AttachmentHandler) GetAllTypes

func (a *AttachmentHandler) GetAllTypes(ctx *gin.Context) (interface{}, error)

func (*AttachmentHandler) GetAttachmentByID

func (a *AttachmentHandler) GetAttachmentByID(ctx *gin.Context) (interface{}, error)

func (*AttachmentHandler) QueryAttachment

func (a *AttachmentHandler) QueryAttachment(ctx *gin.Context) (interface{}, error)

func (*AttachmentHandler) UpdateAttachment

func (a *AttachmentHandler) UpdateAttachment(ctx *gin.Context) (interface{}, error)

func (*AttachmentHandler) UploadAttachment

func (a *AttachmentHandler) UploadAttachment(ctx *gin.Context) (interface{}, error)

func (*AttachmentHandler) UploadAttachments

func (a *AttachmentHandler) UploadAttachments(ctx *gin.Context) (interface{}, error)

type BackupHandler

type BackupHandler struct {
	BackupService service.BackupService
}

func NewBackupHandler

func NewBackupHandler(backupService service.BackupService) *BackupHandler

func (*BackupHandler) BackupWholeSite

func (b *BackupHandler) BackupWholeSite(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) DeleteBackups

func (b *BackupHandler) DeleteBackups(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) DeleteDataFile

func (b *BackupHandler) DeleteDataFile(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) DeleteMarkdowns

func (b *BackupHandler) DeleteMarkdowns(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) DownloadBackups

func (b *BackupHandler) DownloadBackups(ctx *gin.Context)

func (*BackupHandler) DownloadData

func (b *BackupHandler) DownloadData(ctx *gin.Context)

func (*BackupHandler) DownloadMarkdown

func (b *BackupHandler) DownloadMarkdown(ctx *gin.Context)

func (*BackupHandler) ExportData

func (b *BackupHandler) ExportData(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) ExportMarkdown

func (b *BackupHandler) ExportMarkdown(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) GetDataBackup

func (b *BackupHandler) GetDataBackup(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) GetMarkDownBackup

func (b *BackupHandler) GetMarkDownBackup(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) GetWorkDirBackup

func (b *BackupHandler) GetWorkDirBackup(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) HandleData

func (b *BackupHandler) HandleData(ctx *gin.Context)

func (*BackupHandler) HandleWorkDir

func (b *BackupHandler) HandleWorkDir(ctx *gin.Context)

func (*BackupHandler) ImportMarkdown

func (b *BackupHandler) ImportMarkdown(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) ListBackups

func (b *BackupHandler) ListBackups(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) ListExportData

func (b *BackupHandler) ListExportData(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) ListMarkdowns

func (b *BackupHandler) ListMarkdowns(ctx *gin.Context) (interface{}, error)

func (*BackupHandler) ListToBackupItems added in v1.0.4

func (b *BackupHandler) ListToBackupItems(ctx *gin.Context) (interface{}, error)

type CategoryHandler

type CategoryHandler struct {
	CategoryService service.CategoryService
}

func NewCategoryHandler

func NewCategoryHandler(categoryService service.CategoryService) *CategoryHandler

func (*CategoryHandler) CreateCategory

func (c *CategoryHandler) CreateCategory(ctx *gin.Context) (interface{}, error)

func (*CategoryHandler) DeleteCategory

func (c *CategoryHandler) DeleteCategory(ctx *gin.Context) (interface{}, error)

func (*CategoryHandler) GetCategoryByID

func (c *CategoryHandler) GetCategoryByID(ctx *gin.Context) (interface{}, error)

func (*CategoryHandler) ListAllCategory

func (c *CategoryHandler) ListAllCategory(ctx *gin.Context) (interface{}, error)

func (*CategoryHandler) ListAsTree

func (c *CategoryHandler) ListAsTree(ctx *gin.Context) (interface{}, error)

func (*CategoryHandler) UpdateCategory

func (c *CategoryHandler) UpdateCategory(ctx *gin.Context) (interface{}, error)

func (*CategoryHandler) UpdateCategoryBatch

func (c *CategoryHandler) UpdateCategoryBatch(ctx *gin.Context) (interface{}, error)

type EmailHandler

type EmailHandler struct {
	EmailService service.EmailService
}

func NewEmailHandler

func NewEmailHandler(emailService service.EmailService) *EmailHandler

func (*EmailHandler) Test

func (e *EmailHandler) Test(ctx *gin.Context) (interface{}, error)

type InstallHandler

type InstallHandler struct {
	InstallService service.InstallService
}

func NewInstallHandler

func NewInstallHandler(installService service.InstallService) *InstallHandler

func (*InstallHandler) InstallBlog

func (i *InstallHandler) InstallBlog(ctx *gin.Context) (interface{}, error)

type JournalCommentHandler

type JournalCommentHandler struct {
	JournalCommentService   service.JournalCommentService
	OptionService           service.OptionService
	JournalService          service.JournalService
	JournalCommentAssembler assembler.JournalCommentAssembler
}

func NewJournalCommentHandler

func NewJournalCommentHandler(journalCommentService service.JournalCommentService, optionService service.OptionService, journalService service.JournalService, journalCommentAssembler assembler.JournalCommentAssembler) *JournalCommentHandler

func (*JournalCommentHandler) CreateJournalComment

func (j *JournalCommentHandler) CreateJournalComment(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) DeleteJournalComment

func (j *JournalCommentHandler) DeleteJournalComment(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) DeleteJournalCommentBatch

func (j *JournalCommentHandler) DeleteJournalCommentBatch(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) ListJournalComment

func (j *JournalCommentHandler) ListJournalComment(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) ListJournalCommentAsTree

func (j *JournalCommentHandler) ListJournalCommentAsTree(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) ListJournalCommentLatest

func (j *JournalCommentHandler) ListJournalCommentLatest(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) ListJournalCommentWithParent

func (j *JournalCommentHandler) ListJournalCommentWithParent(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) UpdateJournalComment

func (j *JournalCommentHandler) UpdateJournalComment(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) UpdateJournalCommentStatus

func (j *JournalCommentHandler) UpdateJournalCommentStatus(ctx *gin.Context) (interface{}, error)

func (*JournalCommentHandler) UpdateJournalStatusBatch

func (j *JournalCommentHandler) UpdateJournalStatusBatch(ctx *gin.Context) (interface{}, error)

type JournalHandler

type JournalHandler struct {
	JournalService service.JournalService
}

func NewJournalHandler

func NewJournalHandler(journalService service.JournalService) *JournalHandler

func (*JournalHandler) CreateJournal

func (j *JournalHandler) CreateJournal(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) DeleteJournal

func (j *JournalHandler) DeleteJournal(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) ListJournal

func (j *JournalHandler) ListJournal(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) ListLatestJournal

func (j *JournalHandler) ListLatestJournal(ctx *gin.Context) (interface{}, error)

func (*JournalHandler) UpdateJournal

func (j *JournalHandler) UpdateJournal(ctx *gin.Context) (interface{}, error)

type LinkHandler

type LinkHandler struct {
	LinkService service.LinkService
}

func NewLinkHandler

func NewLinkHandler(linkService service.LinkService) *LinkHandler
func (l *LinkHandler) CreateLink(ctx *gin.Context) (interface{}, error)
func (l *LinkHandler) DeleteLink(ctx *gin.Context) (interface{}, error)

func (*LinkHandler) GetLinkByID

func (l *LinkHandler) GetLinkByID(ctx *gin.Context) (interface{}, error)

func (*LinkHandler) ListLinkTeams

func (l *LinkHandler) ListLinkTeams(ctx *gin.Context) (interface{}, error)
func (l *LinkHandler) ListLinks(ctx *gin.Context) (interface{}, error)
func (l *LinkHandler) UpdateLink(ctx *gin.Context) (interface{}, error)

type LogHandler

type LogHandler struct {
	LogService service.LogService
}

func NewLogHandler

func NewLogHandler(logService service.LogService) *LogHandler

func (*LogHandler) ClearLog

func (l *LogHandler) ClearLog(ctx *gin.Context) (interface{}, error)

func (*LogHandler) PageLatestLog

func (l *LogHandler) PageLatestLog(ctx *gin.Context) (interface{}, error)

func (*LogHandler) PageLog

func (l *LogHandler) PageLog(ctx *gin.Context) (interface{}, error)
type MenuHandler struct {
	MenuService service.MenuService
}

func NewMenuHandler

func NewMenuHandler(menuService service.MenuService) *MenuHandler
func (m *MenuHandler) CreateMenu(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) CreateMenuBatch(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) DeleteMenu(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) DeleteMenuBatch(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) GetMenuByID(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) ListMenuTeams(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) ListMenus(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) ListMenusAsTree(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) ListMenusAsTreeByTeam(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) UpdateMenu(ctx *gin.Context) (interface{}, error)
func (m *MenuHandler) UpdateMenuBatch(ctx *gin.Context) (interface{}, error)

type OptionHandler

type OptionHandler struct {
	OptionService service.OptionService
}

func NewOptionHandler

func NewOptionHandler(optionService service.OptionService) *OptionHandler

func (*OptionHandler) ListAllOptions

func (o *OptionHandler) ListAllOptions(ctx *gin.Context) (interface{}, error)

func (*OptionHandler) ListAllOptionsAsMap

func (o *OptionHandler) ListAllOptionsAsMap(ctx *gin.Context) (interface{}, error)

func (*OptionHandler) ListAllOptionsAsMapWithKey

func (o *OptionHandler) ListAllOptionsAsMapWithKey(ctx *gin.Context) (interface{}, error)

func (*OptionHandler) SaveOption

func (o *OptionHandler) SaveOption(ctx *gin.Context) (interface{}, error)

func (*OptionHandler) SaveOptionWithMap

func (o *OptionHandler) SaveOptionWithMap(ctx *gin.Context) (interface{}, error)

type PhotoHandler

type PhotoHandler struct {
	PhotoService service.PhotoService
}

func NewPhotoHandler

func NewPhotoHandler(photoService service.PhotoService) *PhotoHandler

func (*PhotoHandler) CreatePhoto

func (p *PhotoHandler) CreatePhoto(ctx *gin.Context) (interface{}, error)

func (*PhotoHandler) DeletePhoto

func (p *PhotoHandler) DeletePhoto(ctx *gin.Context) (interface{}, error)

func (*PhotoHandler) GetPhotoByID

func (p *PhotoHandler) GetPhotoByID(ctx *gin.Context) (interface{}, error)

func (*PhotoHandler) ListPhoto

func (p *PhotoHandler) ListPhoto(ctx *gin.Context) (interface{}, error)

func (*PhotoHandler) ListPhotoTeams

func (p *PhotoHandler) ListPhotoTeams(ctx *gin.Context) (interface{}, error)

func (*PhotoHandler) PagePhotos

func (p *PhotoHandler) PagePhotos(ctx *gin.Context) (interface{}, error)

func (*PhotoHandler) UpdatePhoto

func (p *PhotoHandler) UpdatePhoto(ctx *gin.Context) (interface{}, error)

type PostCommentHandler

type PostCommentHandler struct {
	PostCommentService   service.PostCommentService
	OptionService        service.OptionService
	PostService          service.PostService
	PostAssembler        assembler.PostAssembler
	PostCommentAssembler assembler.PostCommentAssembler
}

func NewPostCommentHandler

func NewPostCommentHandler(
	postCommentHandler service.PostCommentService,
	optionService service.OptionService,
	postService service.PostService,
	postAssembler assembler.PostAssembler,
	postCommentAssembler assembler.PostCommentAssembler,
) *PostCommentHandler

func (*PostCommentHandler) CreatePostComment

func (p *PostCommentHandler) CreatePostComment(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) DeletePostComment

func (p *PostCommentHandler) DeletePostComment(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) DeletePostCommentBatch

func (p *PostCommentHandler) DeletePostCommentBatch(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) ListPostComment

func (p *PostCommentHandler) ListPostComment(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) ListPostCommentAsTree

func (p *PostCommentHandler) ListPostCommentAsTree(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) ListPostCommentLatest

func (p *PostCommentHandler) ListPostCommentLatest(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) ListPostCommentWithParent

func (p *PostCommentHandler) ListPostCommentWithParent(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) UpdatePostComment

func (p *PostCommentHandler) UpdatePostComment(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) UpdatePostCommentStatus

func (p *PostCommentHandler) UpdatePostCommentStatus(ctx *gin.Context) (interface{}, error)

func (*PostCommentHandler) UpdatePostCommentStatusBatch

func (p *PostCommentHandler) UpdatePostCommentStatusBatch(ctx *gin.Context) (interface{}, error)

type PostHandler

type PostHandler struct {
	PostService   service.PostService
	PostAssembler assembler.PostAssembler
}

func NewPostHandler

func NewPostHandler(postService service.PostService, postAssembler assembler.PostAssembler) *PostHandler

func (*PostHandler) CreatePost

func (p *PostHandler) CreatePost(ctx *gin.Context) (interface{}, error)

func (*PostHandler) DeletePost

func (p *PostHandler) DeletePost(ctx *gin.Context) (interface{}, error)

func (*PostHandler) DeletePostBatch

func (p *PostHandler) DeletePostBatch(ctx *gin.Context) (interface{}, error)

func (*PostHandler) GetByPostID

func (p *PostHandler) GetByPostID(ctx *gin.Context) (interface{}, error)

func (*PostHandler) ListLatestPosts

func (p *PostHandler) ListLatestPosts(ctx *gin.Context) (interface{}, error)

func (*PostHandler) ListPosts

func (p *PostHandler) ListPosts(ctx *gin.Context) (interface{}, error)

func (*PostHandler) ListPostsByStatus

func (p *PostHandler) ListPostsByStatus(ctx *gin.Context) (interface{}, error)

func (*PostHandler) PreviewPost

func (p *PostHandler) PreviewPost(ctx *gin.Context) (interface{}, error)

func (*PostHandler) UpdatePost

func (p *PostHandler) UpdatePost(ctx *gin.Context) (interface{}, error)

func (*PostHandler) UpdatePostDraft

func (p *PostHandler) UpdatePostDraft(ctx *gin.Context) (interface{}, error)

func (*PostHandler) UpdatePostStatus

func (p *PostHandler) UpdatePostStatus(ctx *gin.Context) (interface{}, error)

func (*PostHandler) UpdatePostStatusBatch

func (p *PostHandler) UpdatePostStatusBatch(ctx *gin.Context) (interface{}, error)

type SheetCommentHandler

type SheetCommentHandler struct {
	SheetCommentService   service.SheetCommentService
	BaseCommentService    service.BaseCommentService
	OptionService         service.OptionService
	SheetService          service.SheetService
	SheetAssembler        assembler.SheetAssembler
	SheetCommentAssembler assembler.SheetCommentAssembler
}

func NewSheetCommentHandler

func NewSheetCommentHandler(
	sheetCommentService service.SheetCommentService,
	baseCommentService service.BaseCommentService,
	optionService service.OptionService,
	sheetService service.SheetService,
	sheetAssembler assembler.SheetAssembler,
	sheetCommentAssembler assembler.SheetCommentAssembler,
) *SheetCommentHandler

func (*SheetCommentHandler) ConvertToWithSheet

func (s *SheetCommentHandler) ConvertToWithSheet(ctx context.Context, comments []*entity.Comment) ([]*vo.SheetCommentWithSheet, error)

func (*SheetCommentHandler) CreateSheetComment

func (s *SheetCommentHandler) CreateSheetComment(ctx *gin.Context) (interface{}, error)

func (*SheetCommentHandler) DeleteSheetComment

func (s *SheetCommentHandler) DeleteSheetComment(ctx *gin.Context) (interface{}, error)

func (*SheetCommentHandler) DeleteSheetCommentBatch

func (s *SheetCommentHandler) DeleteSheetCommentBatch(ctx *gin.Context) (interface{}, error)

func (*SheetCommentHandler) ListSheetComment

func (s *SheetCommentHandler) ListSheetComment(ctx *gin.Context) (interface{}, error)

func (*SheetCommentHandler) ListSheetCommentAsTree

func (s *SheetCommentHandler) ListSheetCommentAsTree(ctx *gin.Context) (interface{}, error)

func (*SheetCommentHandler) ListSheetCommentLatest

func (s *SheetCommentHandler) ListSheetCommentLatest(ctx *gin.Context) (interface{}, error)

func (*SheetCommentHandler) ListSheetCommentWithParent

func (s *SheetCommentHandler) ListSheetCommentWithParent(ctx *gin.Context) (interface{}, error)

func (*SheetCommentHandler) UpdateSheetCommentStatus

func (s *SheetCommentHandler) UpdateSheetCommentStatus(ctx *gin.Context) (interface{}, error)

func (*SheetCommentHandler) UpdateSheetCommentStatusBatch

func (s *SheetCommentHandler) UpdateSheetCommentStatusBatch(ctx *gin.Context) (interface{}, error)

type SheetHandler

type SheetHandler struct {
	SheetService   service.SheetService
	PostService    service.PostService
	SheetAssembler assembler.SheetAssembler
}

func NewSheetHandler

func NewSheetHandler(sheetService service.SheetService, postService service.PostService, sheetAssembler assembler.SheetAssembler) *SheetHandler

func (*SheetHandler) CreateSheet

func (s *SheetHandler) CreateSheet(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) DeleteSheet

func (s *SheetHandler) DeleteSheet(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) GetSheetByID

func (s *SheetHandler) GetSheetByID(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) IndependentSheets

func (s *SheetHandler) IndependentSheets(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) ListSheet

func (s *SheetHandler) ListSheet(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) PreviewSheet

func (s *SheetHandler) PreviewSheet(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) UpdateSheet

func (s *SheetHandler) UpdateSheet(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) UpdateSheetDraft

func (s *SheetHandler) UpdateSheetDraft(ctx *gin.Context) (interface{}, error)

func (*SheetHandler) UpdateSheetStatus

func (s *SheetHandler) UpdateSheetStatus(ctx *gin.Context) (interface{}, error)

type StatisticHandler

type StatisticHandler struct {
	StatisticService service.StatisticService
}

func NewStatisticHandler

func NewStatisticHandler(l service.StatisticService) *StatisticHandler

func (*StatisticHandler) Statistics

func (s *StatisticHandler) Statistics(ctx *gin.Context) (interface{}, error)

func (*StatisticHandler) StatisticsWithUser

func (s *StatisticHandler) StatisticsWithUser(ctx *gin.Context) (interface{}, error)

type TagHandler

type TagHandler struct {
	PostTagService service.PostTagService
	TagService     service.TagService
}

func NewTagHandler

func NewTagHandler(postTagService service.PostTagService, tagService service.TagService) *TagHandler

func (*TagHandler) CreateTag

func (t *TagHandler) CreateTag(ctx *gin.Context) (interface{}, error)

func (*TagHandler) DeleteTag

func (t *TagHandler) DeleteTag(ctx *gin.Context) (interface{}, error)

func (*TagHandler) GetTagByID

func (t *TagHandler) GetTagByID(ctx *gin.Context) (interface{}, error)

func (*TagHandler) ListTags

func (t *TagHandler) ListTags(ctx *gin.Context) (interface{}, error)

func (*TagHandler) UpdateTag

func (t *TagHandler) UpdateTag(ctx *gin.Context) (interface{}, error)

type ThemeHandler

type ThemeHandler struct {
	ThemeService  service.ThemeService
	OptionService service.OptionService
}

func (*ThemeHandler) ActivateTheme

func (t *ThemeHandler) ActivateTheme(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) DeleteThemeByID

func (t *ThemeHandler) DeleteThemeByID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) FetchTheme

func (t *ThemeHandler) FetchTheme(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetActivatedTheme

func (t *ThemeHandler) GetActivatedTheme(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetActivatedThemeConfig

func (t *ThemeHandler) GetActivatedThemeConfig(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetActivatedThemeSettingMap

func (t *ThemeHandler) GetActivatedThemeSettingMap(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetThemeByID

func (t *ThemeHandler) GetThemeByID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetThemeConfigByGroup

func (t *ThemeHandler) GetThemeConfigByGroup(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetThemeConfigByID

func (t *ThemeHandler) GetThemeConfigByID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetThemeConfigGroupNames

func (t *ThemeHandler) GetThemeConfigGroupNames(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetThemeFileContent

func (t *ThemeHandler) GetThemeFileContent(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetThemeFileContentByID

func (t *ThemeHandler) GetThemeFileContentByID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetThemeSettingMapByGroupAndThemeID

func (t *ThemeHandler) GetThemeSettingMapByGroupAndThemeID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) GetThemeSettingMapByID

func (t *ThemeHandler) GetThemeSettingMapByID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) ListActivatedThemeFile

func (t *ThemeHandler) ListActivatedThemeFile(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) ListAllThemes

func (t *ThemeHandler) ListAllThemes(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) ListCustomPostTemplate

func (t *ThemeHandler) ListCustomPostTemplate(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) ListCustomSheetTemplate

func (t *ThemeHandler) ListCustomSheetTemplate(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) ListThemeFileByID

func (t *ThemeHandler) ListThemeFileByID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) ReloadTheme

func (t *ThemeHandler) ReloadTheme(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) SaveActivatedThemeSetting

func (t *ThemeHandler) SaveActivatedThemeSetting(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) SaveThemeSettingByID

func (t *ThemeHandler) SaveThemeSettingByID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) TemplateExist

func (t *ThemeHandler) TemplateExist(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) UpdateThemeByFetching

func (t *ThemeHandler) UpdateThemeByFetching(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) UpdateThemeByUpload

func (t *ThemeHandler) UpdateThemeByUpload(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) UpdateThemeFile

func (t *ThemeHandler) UpdateThemeFile(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) UpdateThemeFileByID

func (t *ThemeHandler) UpdateThemeFileByID(ctx *gin.Context) (interface{}, error)

func (*ThemeHandler) UploadTheme

func (t *ThemeHandler) UploadTheme(ctx *gin.Context) (interface{}, error)

type UserHandler

type UserHandler struct {
	UserService         service.UserService
	TwoFactorMFAService service.TwoFactorTOTPMFAService
}

func NewUserHandler

func NewUserHandler(userService service.UserService, twoFactorMFAService service.TwoFactorTOTPMFAService) *UserHandler

func (*UserHandler) GenerateMFAQRCode

func (u *UserHandler) GenerateMFAQRCode(ctx *gin.Context) (interface{}, error)

func (*UserHandler) GetCurrentUserProfile

func (u *UserHandler) GetCurrentUserProfile(ctx *gin.Context) (interface{}, error)

func (*UserHandler) UpdateMFA

func (u *UserHandler) UpdateMFA(ctx *gin.Context) (interface{}, error)

func (*UserHandler) UpdatePassword

func (u *UserHandler) UpdatePassword(ctx *gin.Context) (interface{}, error)

func (*UserHandler) UpdateUserProfile

func (u *UserHandler) UpdateUserProfile(ctx *gin.Context) (interface{}, error)

Jump to

Keyboard shortcuts

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