Documentation ¶
Index ¶
- func DeptDataPermission(c *gin.Context, username string, db *gorm.DB) (err error, permissionDb *gorm.DB)
- func DeptList2DeptTree(deptList []model.SysDept, pCode string) []model.SysDept
- func DictList2DictTree(dictList []model.SysDict, pCode string) []model.SysDict
- func GetChildrenFromDept(deptCode string) (dl []string)
- func MenuList2MenuTree(menuList []model.SysMenu, pCode string) []model.SysMenu
- type ServiceApi
- func (s *ServiceApi) AddApi(toAddApi model.SysApi) (err error)
- func (s *ServiceApi) DeleteApiById(c *gin.Context, id uint) (err error)
- func (s *ServiceApi) EditApi(c *gin.Context, toEditApi model.SysApi) (err error)
- func (s *ServiceApi) GetApiList(getApiList model.RequestGetApiList) (err error, api interface{}, total int64)
- func (s *ServiceApi) QueryApiById(id uint) (err error, apiInfo model.SysApi)
- type ServiceConfigBackend
- func (s *ServiceConfigBackend) AddConfigBackend(c *gin.Context, toAddConfigBackend model.SysConfigBackend) (err error)
- func (s *ServiceConfigBackend) DeleteConfigBackendById(c *gin.Context, id uint) (err error)
- func (s *ServiceConfigBackend) EditConfigBackend(toEditConfigBackend model.SysConfigBackend) (err error)
- func (s *ServiceConfigBackend) GetConfigBackendList(getConfigBackendList model.RequestGetConfigBackendList) (err error, config interface{}, total int64)
- type ServiceConfigFrontend
- func (s *ServiceConfigFrontend) AddConfigFrontend(c *gin.Context, toAddConfigFrontend model.SysConfigFrontend) (err error)
- func (s *ServiceConfigFrontend) DeleteConfigFrontendById(c *gin.Context, id uint) (err error)
- func (s *ServiceConfigFrontend) EditConfigFrontend(toEditConfigFrontend model.SysConfigFrontend) (err error)
- func (s *ServiceConfigFrontend) GetConfigFrontendList(getConfigFrontendList model.RequestGetConfigFrontendList) (err error, config interface{}, total int64)
- type ServiceDept
- func (s *ServiceDept) AddDept(c *gin.Context, toAddDept model.SysDept) (err error)
- func (s *ServiceDept) AddDeptUser(toAddDeptUser *model.RequestDeptUserAdd) (err error)
- func (s *ServiceDept) DeleteDeptById(id uint) (err error)
- func (s *ServiceDept) EditDept(c *gin.Context, toEditDept model.SysDept) (err error)
- func (s *ServiceDept) GetDeptList(requestDeptList model.RequestGetDeptList) (err error, dept interface{}, total int64)
- func (s *ServiceDept) QueryDeptById(id uint) (err error, deptInfo model.SysDept)
- func (s *ServiceDept) QueryUserByDept(deptCode *model.RequestDeptCode) (err error, user []model.SysUser)
- func (s *ServiceDept) RemoveDeptUser(toDeleteDeptUser *model.RequestDeptUser) (err error)
- type ServiceDict
- func (s *ServiceDict) AddDict(c *gin.Context, toAddDict model.SysDict) (err error)
- func (s *ServiceDict) DeleteDictById(c *gin.Context, id uint) (err error)
- func (s *ServiceDict) EditDict(c *gin.Context, toEditDict model.SysDict) (err error)
- func (s *ServiceDict) GetDictList(requestDictList model.RequestGetDictList) (err error, dict interface{}, total int64, parentCode string)
- func (s *ServiceDict) QueryDictById(id uint) (err error, dictInfo model.SysDict)
- type ServiceGenPlugin
- func (s *ServiceGenPlugin) DeleteGenPluginById(c *gin.Context, id uint) (err error)
- func (s *ServiceGenPlugin) DownloadGenPluginById(id uint) (err error, plugin model.SysGenPluginList)
- func (s *ServiceGenPlugin) GenData(genPluginStruct *model.SysGenPlugin, tplDataList []tplData, ...) (dataListNew []tplData, genFileList []string, makeDirList []string)
- func (s *ServiceGenPlugin) GenFrontendAndBackendFile(genPluginStruct *model.SysGenPlugin, dataListNew []tplData) (err error)
- func (s *ServiceGenPlugin) GenPlugin(genPluginStruct *model.SysGenPlugin) (err error)
- func (s *ServiceGenPlugin) GetGenPluginList(getDataList model.RequestGetGenPluginList) (err error, data interface{}, total int64)
- func (s *ServiceGenPlugin) PrepareTplData(genPluginStruct *model.SysGenPlugin, pluginCodeTimeDir string) (dataList []tplData, err error)
- type ServiceLogLogin
- type ServiceLogOperation
- type ServiceMenu
- func (s *ServiceMenu) AddMenu(toAddMenu model.SysMenu) (err error)
- func (s *ServiceMenu) DeleteMenuById(c *gin.Context, id uint) (err error)
- func (s *ServiceMenu) EditMenu(c *gin.Context, toEditMenu model.SysMenu) (err error)
- func (s *ServiceMenu) GetMenuList(requestMenuList model.RequestGetMenuList) (err error, menu interface{}, total int64)
- func (s *ServiceMenu) QueryMenuById(id uint) (err error, menuInfo model.SysMenu)
- type ServiceNotice
- func (s *ServiceNotice) AddNotice(toAddNotice model.RequestAddNotice, username string) (err error)
- func (s *ServiceNotice) DeleteNoticeById(id uint) (err error)
- func (s *ServiceNotice) GetNoticeList(requestNoticeList model.RequestGetNoticeList) (err error, notice interface{}, total int64)
- func (s *ServiceNotice) QueryNoticeById(id uint) (err error, noticeInfo model.SysNotice)
- func (s *ServiceNotice) QueryNoticeReadById(id uint, username string) (err error, noticeInfo model.SysNotice)
- func (s *ServiceNotice) SendNotice(toSendNotice model.SysNotice) (err error)
- type ServicePrivate
- type ServiceRole
- func (s *ServiceRole) AddRole(c *gin.Context, toAddRole model.SysRole) (err error)
- func (s *ServiceRole) AddRoleUser(toAddRoleUser *model.RequestRoleUserAdd) (err error)
- func (s *ServiceRole) DeleteRoleById(id uint) (err error)
- func (s *ServiceRole) EditRole(c *gin.Context, toEditRole model.SysRole) (err error)
- func (s *ServiceRole) EditRoleApi(toEditRoleApi *model.RequestEditRoleApi) (err error)
- func (s *ServiceRole) EditRoleDeptDataPermission(toEditRoleDeptDataPermission *model.RequestRoleDeptDataPermission) (err error)
- func (s *ServiceRole) EditRoleMenu(toEditRoleMenu *model.RequestRoleMenuEdit) (err error)
- func (s *ServiceRole) GetRoleApiList(roleCode *model.RequestRoleCode) (err error, api []model.SysRoleApi)
- func (s *ServiceRole) GetRoleButtonList(roleCode *model.RequestRoleCode) (err error, button []model.SysRoleButton)
- func (s *ServiceRole) GetRoleList(requestRoleList model.RequestGetRoleList) (err error, role interface{}, total int64)
- func (s *ServiceRole) GetRoleMenuList(roleCode *model.RequestRoleCode) (err error, menu []model.SysRoleMenu)
- func (s *ServiceRole) QueryRoleById(id uint) (err error, roleInfo model.SysRole)
- func (s *ServiceRole) QueryUserByRole(roleCode *model.RequestRoleCode) (err error, user []model.SysUser)
- func (s *ServiceRole) RemoveRoleUser(toRemoveRoleUser *model.RequestRoleUser) (err error)
- type ServiceTodo
- func (s *ServiceTodo) AddTodo(toAddTodo model.SysTodo) (err error)
- func (s *ServiceTodo) DeleteTodoById(id uint) (err error)
- func (s *ServiceTodo) EditTodo(toEditTodo model.SysTodo) (err error)
- func (s *ServiceTodo) GetTodoList(requestTodoList model.RequestGetTodoList, username string) (err error, todoNote interface{}, total int64)
- func (s *ServiceTodo) QueryTodoById(id uint) (err error, todoNoteInfo model.SysTodo)
- type ServiceUpload
- func (s *ServiceUpload) UploadAvatar(username string, avatar multipart.File, avatarHeader *multipart.FileHeader) (err error, avatarUrl string)
- func (s *ServiceUpload) UploadBannerImage(img multipart.File, bannerImage *multipart.FileHeader) (err error, fileUrl string)
- func (s *ServiceUpload) UploadFavicon(logo multipart.File, logoHeader *multipart.FileHeader) (err error, fileUrl string)
- func (s *ServiceUpload) UploadFile(file multipart.File, fileHeader *multipart.FileHeader) (err error, fileUrl string)
- func (s *ServiceUpload) UploadLogo(logo multipart.File, logoHeader *multipart.FileHeader) (err error, fileUrl string)
- type ServiceUser
- func (s *ServiceUser) AddUser(c *gin.Context, toAddUser *model.SysUser) (err error)
- func (s *ServiceUser) ChangeNickname(username string, toChangeNickname model.RequestChangeNickname) (err error)
- func (s *ServiceUser) ChangePassword(username string, toChangePassword model.RequestChangePassword) (err error)
- func (s *ServiceUser) DeleteUserById(c *gin.Context, id uint) (err error)
- func (s *ServiceUser) EditUser(c *gin.Context, toEditUser model.SysUser) (err error)
- func (s *ServiceUser) GetUserByUsername(username string) (err error, userInfo model.SysUser)
- func (s *ServiceUser) GetUserList(requestUserList model.RequestGetUserList) (err error, user interface{}, total int64)
- func (s *ServiceUser) GetUserMenu(c *gin.Context) (err error, defaultPageList []string, menu []model.SysMenu, buttons []string)
- func (s *ServiceUser) QueryUserById(id uint) (err error, userInfo model.SysUser)
- func (s *ServiceUser) ResetPassword(id uint) (err error)
- type ServiceUserOnline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeptDataPermission ¶
func DeptList2DeptTree ¶
func DictList2DictTree ¶
func GetChildrenFromDept ¶
Types ¶
type ServiceApi ¶
type ServiceApi struct{}
func (*ServiceApi) DeleteApiById ¶
func (s *ServiceApi) DeleteApiById(c *gin.Context, id uint) (err error)
func (*ServiceApi) GetApiList ¶
func (s *ServiceApi) GetApiList(getApiList model.RequestGetApiList) (err error, api interface{}, total int64)
func (*ServiceApi) QueryApiById ¶
func (s *ServiceApi) QueryApiById(id uint) (err error, apiInfo model.SysApi)
type ServiceConfigBackend ¶
type ServiceConfigBackend struct{}
func (*ServiceConfigBackend) AddConfigBackend ¶
func (s *ServiceConfigBackend) AddConfigBackend(c *gin.Context, toAddConfigBackend model.SysConfigBackend) (err error)
func (*ServiceConfigBackend) DeleteConfigBackendById ¶
func (s *ServiceConfigBackend) DeleteConfigBackendById(c *gin.Context, id uint) (err error)
func (*ServiceConfigBackend) EditConfigBackend ¶
func (s *ServiceConfigBackend) EditConfigBackend(toEditConfigBackend model.SysConfigBackend) (err error)
func (*ServiceConfigBackend) GetConfigBackendList ¶
func (s *ServiceConfigBackend) GetConfigBackendList(getConfigBackendList model.RequestGetConfigBackendList) (err error, config interface{}, total int64)
type ServiceConfigFrontend ¶
type ServiceConfigFrontend struct{}
func (*ServiceConfigFrontend) AddConfigFrontend ¶
func (s *ServiceConfigFrontend) AddConfigFrontend(c *gin.Context, toAddConfigFrontend model.SysConfigFrontend) (err error)
func (*ServiceConfigFrontend) DeleteConfigFrontendById ¶
func (s *ServiceConfigFrontend) DeleteConfigFrontendById(c *gin.Context, id uint) (err error)
func (*ServiceConfigFrontend) EditConfigFrontend ¶
func (s *ServiceConfigFrontend) EditConfigFrontend(toEditConfigFrontend model.SysConfigFrontend) (err error)
func (*ServiceConfigFrontend) GetConfigFrontendList ¶
func (s *ServiceConfigFrontend) GetConfigFrontendList(getConfigFrontendList model.RequestGetConfigFrontendList) (err error, config interface{}, total int64)
type ServiceDept ¶
type ServiceDept struct{}
func (*ServiceDept) AddDeptUser ¶
func (s *ServiceDept) AddDeptUser(toAddDeptUser *model.RequestDeptUserAdd) (err error)
func (*ServiceDept) DeleteDeptById ¶
func (s *ServiceDept) DeleteDeptById(id uint) (err error)
func (*ServiceDept) GetDeptList ¶
func (s *ServiceDept) GetDeptList(requestDeptList model.RequestGetDeptList) (err error, dept interface{}, total int64)
func (*ServiceDept) QueryDeptById ¶
func (s *ServiceDept) QueryDeptById(id uint) (err error, deptInfo model.SysDept)
func (*ServiceDept) QueryUserByDept ¶
func (s *ServiceDept) QueryUserByDept(deptCode *model.RequestDeptCode) (err error, user []model.SysUser)
func (*ServiceDept) RemoveDeptUser ¶
func (s *ServiceDept) RemoveDeptUser(toDeleteDeptUser *model.RequestDeptUser) (err error)
type ServiceDict ¶
type ServiceDict struct{}
func (*ServiceDict) DeleteDictById ¶
func (s *ServiceDict) DeleteDictById(c *gin.Context, id uint) (err error)
func (*ServiceDict) GetDictList ¶
func (s *ServiceDict) GetDictList(requestDictList model.RequestGetDictList) (err error, dict interface{}, total int64, parentCode string)
func (*ServiceDict) QueryDictById ¶
func (s *ServiceDict) QueryDictById(id uint) (err error, dictInfo model.SysDict)
type ServiceGenPlugin ¶
type ServiceGenPlugin struct{}
func (*ServiceGenPlugin) DeleteGenPluginById ¶
func (s *ServiceGenPlugin) DeleteGenPluginById(c *gin.Context, id uint) (err error)
func (*ServiceGenPlugin) DownloadGenPluginById ¶
func (s *ServiceGenPlugin) DownloadGenPluginById(id uint) (err error, plugin model.SysGenPluginList)
func (*ServiceGenPlugin) GenData ¶
func (s *ServiceGenPlugin) GenData(genPluginStruct *model.SysGenPlugin, tplDataList []tplData, pluginCodeTimeDir string) (dataListNew []tplData, genFileList []string, makeDirList []string)
func (*ServiceGenPlugin) GenFrontendAndBackendFile ¶
func (s *ServiceGenPlugin) GenFrontendAndBackendFile(genPluginStruct *model.SysGenPlugin, dataListNew []tplData) (err error)
func (*ServiceGenPlugin) GenPlugin ¶
func (s *ServiceGenPlugin) GenPlugin(genPluginStruct *model.SysGenPlugin) (err error)
func (*ServiceGenPlugin) GetGenPluginList ¶
func (s *ServiceGenPlugin) GetGenPluginList(getDataList model.RequestGetGenPluginList) (err error, data interface{}, total int64)
func (*ServiceGenPlugin) PrepareTplData ¶
func (s *ServiceGenPlugin) PrepareTplData(genPluginStruct *model.SysGenPlugin, pluginCodeTimeDir string) (dataList []tplData, err error)
type ServiceLogLogin ¶
type ServiceLogLogin struct{}
func (*ServiceLogLogin) DeleteLogLoginById ¶
func (s *ServiceLogLogin) DeleteLogLoginById(id uint) (err error)
func (*ServiceLogLogin) GetLogLoginList ¶
func (s *ServiceLogLogin) GetLogLoginList(requestLogList model.RequestGetLogLoginList) (err error, log interface{}, total int64)
type ServiceLogOperation ¶
type ServiceLogOperation struct{}
func (*ServiceLogOperation) DeleteLogOperationById ¶
func (s *ServiceLogOperation) DeleteLogOperationById(id uint) (err error)
func (*ServiceLogOperation) GetLogOperationList ¶
func (s *ServiceLogOperation) GetLogOperationList(requestLogList model.RequestGetLogOperationList) (err error, log interface{}, total int64)
type ServiceMenu ¶
type ServiceMenu struct{}
func (*ServiceMenu) DeleteMenuById ¶
func (s *ServiceMenu) DeleteMenuById(c *gin.Context, id uint) (err error)
func (*ServiceMenu) GetMenuList ¶
func (s *ServiceMenu) GetMenuList(requestMenuList model.RequestGetMenuList) (err error, menu interface{}, total int64)
func (*ServiceMenu) QueryMenuById ¶
func (s *ServiceMenu) QueryMenuById(id uint) (err error, menuInfo model.SysMenu)
type ServiceNotice ¶
type ServiceNotice struct{}
func (*ServiceNotice) AddNotice ¶
func (s *ServiceNotice) AddNotice(toAddNotice model.RequestAddNotice, username string) (err error)
func (*ServiceNotice) DeleteNoticeById ¶
func (s *ServiceNotice) DeleteNoticeById(id uint) (err error)
func (*ServiceNotice) GetNoticeList ¶
func (s *ServiceNotice) GetNoticeList(requestNoticeList model.RequestGetNoticeList) (err error, notice interface{}, total int64)
func (*ServiceNotice) QueryNoticeById ¶
func (s *ServiceNotice) QueryNoticeById(id uint) (err error, noticeInfo model.SysNotice)
func (*ServiceNotice) QueryNoticeReadById ¶
func (*ServiceNotice) SendNotice ¶
func (s *ServiceNotice) SendNotice(toSendNotice model.SysNotice) (err error)
type ServicePrivate ¶
type ServicePrivate struct { ServiceApi ServiceApi ServiceConfigBackend ServiceConfigBackend ServiceConfigFrontend ServiceConfigFrontend ServiceDept ServiceDept ServiceDict ServiceDict ServiceGenPlugin ServiceGenPlugin ServiceLogLogin ServiceLogLogin ServiceLogOperation ServiceLogOperation ServiceMenu ServiceMenu ServiceTodo ServiceTodo ServiceNotice ServiceNotice ServiceRole ServiceRole ServiceUpload ServiceUpload ServiceUser ServiceUser ServiceUserOnline ServiceUserOnline }
type ServiceRole ¶
type ServiceRole struct{}
func (*ServiceRole) AddRoleUser ¶
func (s *ServiceRole) AddRoleUser(toAddRoleUser *model.RequestRoleUserAdd) (err error)
func (*ServiceRole) DeleteRoleById ¶
func (s *ServiceRole) DeleteRoleById(id uint) (err error)
func (*ServiceRole) EditRoleApi ¶
func (s *ServiceRole) EditRoleApi(toEditRoleApi *model.RequestEditRoleApi) (err error)
func (*ServiceRole) EditRoleDeptDataPermission ¶
func (s *ServiceRole) EditRoleDeptDataPermission(toEditRoleDeptDataPermission *model.RequestRoleDeptDataPermission) (err error)
func (*ServiceRole) EditRoleMenu ¶
func (s *ServiceRole) EditRoleMenu(toEditRoleMenu *model.RequestRoleMenuEdit) (err error)
func (*ServiceRole) GetRoleApiList ¶
func (s *ServiceRole) GetRoleApiList(roleCode *model.RequestRoleCode) (err error, api []model.SysRoleApi)
func (*ServiceRole) GetRoleButtonList ¶
func (s *ServiceRole) GetRoleButtonList(roleCode *model.RequestRoleCode) (err error, button []model.SysRoleButton)
func (*ServiceRole) GetRoleList ¶
func (s *ServiceRole) GetRoleList(requestRoleList model.RequestGetRoleList) (err error, role interface{}, total int64)
func (*ServiceRole) GetRoleMenuList ¶
func (s *ServiceRole) GetRoleMenuList(roleCode *model.RequestRoleCode) (err error, menu []model.SysRoleMenu)
func (*ServiceRole) QueryRoleById ¶
func (s *ServiceRole) QueryRoleById(id uint) (err error, roleInfo model.SysRole)
func (*ServiceRole) QueryUserByRole ¶
func (s *ServiceRole) QueryUserByRole(roleCode *model.RequestRoleCode) (err error, user []model.SysUser)
func (*ServiceRole) RemoveRoleUser ¶
func (s *ServiceRole) RemoveRoleUser(toRemoveRoleUser *model.RequestRoleUser) (err error)
type ServiceTodo ¶
type ServiceTodo struct{}
func (*ServiceTodo) DeleteTodoById ¶
func (s *ServiceTodo) DeleteTodoById(id uint) (err error)
func (*ServiceTodo) GetTodoList ¶
func (s *ServiceTodo) GetTodoList(requestTodoList model.RequestGetTodoList, username string) (err error, todoNote interface{}, total int64)
func (*ServiceTodo) QueryTodoById ¶
func (s *ServiceTodo) QueryTodoById(id uint) (err error, todoNoteInfo model.SysTodo)
type ServiceUpload ¶
type ServiceUpload struct{}
func (*ServiceUpload) UploadAvatar ¶
func (s *ServiceUpload) UploadAvatar(username string, avatar multipart.File, avatarHeader *multipart.FileHeader) (err error, avatarUrl string)
func (*ServiceUpload) UploadBannerImage ¶
func (s *ServiceUpload) UploadBannerImage(img multipart.File, bannerImage *multipart.FileHeader) (err error, fileUrl string)
func (*ServiceUpload) UploadFavicon ¶
func (s *ServiceUpload) UploadFavicon(logo multipart.File, logoHeader *multipart.FileHeader) (err error, fileUrl string)
func (*ServiceUpload) UploadFile ¶
func (s *ServiceUpload) UploadFile(file multipart.File, fileHeader *multipart.FileHeader) (err error, fileUrl string)
func (*ServiceUpload) UploadLogo ¶
func (s *ServiceUpload) UploadLogo(logo multipart.File, logoHeader *multipart.FileHeader) (err error, fileUrl string)
type ServiceUser ¶
type ServiceUser struct{}
func (*ServiceUser) ChangeNickname ¶
func (s *ServiceUser) ChangeNickname(username string, toChangeNickname model.RequestChangeNickname) (err error)
func (*ServiceUser) ChangePassword ¶
func (s *ServiceUser) ChangePassword(username string, toChangePassword model.RequestChangePassword) (err error)
func (*ServiceUser) DeleteUserById ¶
func (s *ServiceUser) DeleteUserById(c *gin.Context, id uint) (err error)
func (*ServiceUser) GetUserByUsername ¶
func (s *ServiceUser) GetUserByUsername(username string) (err error, userInfo model.SysUser)
func (*ServiceUser) GetUserList ¶
func (s *ServiceUser) GetUserList(requestUserList model.RequestGetUserList) (err error, user interface{}, total int64)
func (*ServiceUser) GetUserMenu ¶
func (*ServiceUser) QueryUserById ¶
func (s *ServiceUser) QueryUserById(id uint) (err error, userInfo model.SysUser)
func (*ServiceUser) ResetPassword ¶
func (s *ServiceUser) ResetPassword(id uint) (err error)
type ServiceUserOnline ¶
type ServiceUserOnline struct{}
func (*ServiceUserOnline) CheckUserOnline ¶
func (s *ServiceUserOnline) CheckUserOnline() error
func (*ServiceUserOnline) GetUserOnlineList ¶
func (s *ServiceUserOnline) GetUserOnlineList(requestUserOnlineList model.RequestGetUserOnlineList) (err error, user interface{}, total int64)
func (*ServiceUserOnline) KickOnlineUserByUsername ¶
func (s *ServiceUserOnline) KickOnlineUserByUsername(username string) (err error)
Click to show internal directories.
Click to hide internal directories.