Documentation ¶
Index ¶
- type AdminMenuService
- func (m *AdminMenuService) Delete(form *forms.AdminMenuDeleteForm) (err error)
- func (m *AdminMenuService) Info(form *forms.AdminMenuDetailForm) (item forms.AdminMenuResult, err error)
- func (m *AdminMenuService) List() (interface{}, error)
- func (m *AdminMenuService) PermissionOptions() (interface{}, error)
- func (m *AdminMenuService) Store(form *forms.AdminMenuStoreForm) (err error)
- type AdminPermissionsService
- func (m *AdminPermissionsService) Check(userId string, slug string) bool
- func (m *AdminPermissionsService) Delete(form *forms.AdminPermissionsDeleteForm) (err error)
- func (m *AdminPermissionsService) Detail(form *forms.AdminPermissionsInfoForm) (res forms.AdminPermissionDetailResult, err error)
- func (m *AdminPermissionsService) Info(form *forms.AdminPermissionsInfoForm) (item forms.AdminPermissionsInfoResult, err error)
- func (m *AdminPermissionsService) List(form *forms.AdminRoleListForm, page, pageSize int) (items []forms.AdminPermissionsListResult, count int64, err error)
- func (m *AdminPermissionsService) Options() (items []forms.AdminPermissionOptionsResult, err error)
- func (m *AdminPermissionsService) Store(form *forms.AdminPermissionStoreForm) (err error)
- type AdminRoleService
- func (m *AdminRoleService) Delete(form *forms.AdminRoleDeleteForm) (err error)
- func (m *AdminRoleService) Detail(form *forms.AdminRoleInfoForm) (res forms.AdminRoleDetailResult, err error)
- func (m *AdminRoleService) Info(form *forms.AdminRoleInfoForm) (res forms.AdminRoleInfoResult, err error)
- func (m *AdminRoleService) List(form *forms.AdminRoleListForm, page, pageSize int) (roles []forms.AdminRoleListResult, count int64, err error)
- func (m *AdminRoleService) Options() (roles []forms.AdminRoleOptionsResult, err error)
- func (m *AdminRoleService) Store(form *forms.AdminRoleStoreForm) (err error)
- type AdminUserService
- func (m *AdminUserService) AuthInfo(form *forms.AdminUserAuthInfoForm) (res forms.AdminUserAuthInfoResult, err error)
- func (m *AdminUserService) AuthStore(form *forms.AdminUserAuthStoreForm) (err error)
- func (m *AdminUserService) Check(username string) (user models.AdminUsers, err error)
- func (m *AdminUserService) List(page, pageSize int) (items []forms.AdminUserListResult, count int64, err error)
- func (AdminUserService) Menu(userId int) (interface{}, error)
- func (m *AdminUserService) Options() (items []forms.AdminUserOptionResult, err error)
- func (m *AdminUserService) UserInfo(ctx *app.Context) (res UserInfoResult, err error)
- type RefreshForm
- type RefreshResult
- type UserInfoResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminMenuService ¶
type AdminMenuService struct { }
func (*AdminMenuService) Delete ¶
func (m *AdminMenuService) Delete(form *forms.AdminMenuDeleteForm) (err error)
Delete 删除菜单
func (*AdminMenuService) Info ¶
func (m *AdminMenuService) Info(form *forms.AdminMenuDetailForm) (item forms.AdminMenuResult, err error)
Info 用户编辑的基础信息接口
func (*AdminMenuService) PermissionOptions ¶
func (m *AdminMenuService) PermissionOptions() (interface{}, error)
PermissionOptions 菜单列表
func (*AdminMenuService) Store ¶
func (m *AdminMenuService) Store(form *forms.AdminMenuStoreForm) (err error)
Store 保存菜单
type AdminPermissionsService ¶
type AdminPermissionsService struct {
Model models.AdminPermissions
}
func (*AdminPermissionsService) Check ¶ added in v0.1.7
func (m *AdminPermissionsService) Check(userId string, slug string) bool
func (*AdminPermissionsService) Delete ¶
func (m *AdminPermissionsService) Delete(form *forms.AdminPermissionsDeleteForm) (err error)
Delete 删除权限
func (*AdminPermissionsService) Detail ¶
func (m *AdminPermissionsService) Detail(form *forms.AdminPermissionsInfoForm) (res forms.AdminPermissionDetailResult, err error)
Detail 获取权限详情
func (*AdminPermissionsService) Info ¶
func (m *AdminPermissionsService) Info(form *forms.AdminPermissionsInfoForm) (item forms.AdminPermissionsInfoResult, err error)
Info 用户编辑的权限接口
func (*AdminPermissionsService) List ¶
func (m *AdminPermissionsService) List(form *forms.AdminRoleListForm, page, pageSize int) (items []forms.AdminPermissionsListResult, count int64, err error)
List 获取权限列表
func (*AdminPermissionsService) Options ¶
func (m *AdminPermissionsService) Options() (items []forms.AdminPermissionOptionsResult, err error)
Options 获取权限选项接口
func (*AdminPermissionsService) Store ¶
func (m *AdminPermissionsService) Store(form *forms.AdminPermissionStoreForm) (err error)
type AdminRoleService ¶
type AdminRoleService struct { }
func (*AdminRoleService) Delete ¶
func (m *AdminRoleService) Delete(form *forms.AdminRoleDeleteForm) (err error)
Delete 删除角色
func (*AdminRoleService) Detail ¶
func (m *AdminRoleService) Detail(form *forms.AdminRoleInfoForm) (res forms.AdminRoleDetailResult, err error)
Detail 获取角色详情
func (*AdminRoleService) Info ¶
func (m *AdminRoleService) Info(form *forms.AdminRoleInfoForm) (res forms.AdminRoleInfoResult, err error)
Info 编辑角色的基础信息接口
func (*AdminRoleService) List ¶
func (m *AdminRoleService) List(form *forms.AdminRoleListForm, page, pageSize int) (roles []forms.AdminRoleListResult, count int64, err error)
List 获取角色列表
func (*AdminRoleService) Options ¶
func (m *AdminRoleService) Options() (roles []forms.AdminRoleOptionsResult, err error)
Options 获取角色选项接口
func (*AdminRoleService) Store ¶
func (m *AdminRoleService) Store(form *forms.AdminRoleStoreForm) (err error)
Store 保存角色
type AdminUserService ¶
type AdminUserService struct { }
func (*AdminUserService) AuthInfo ¶
func (m *AdminUserService) AuthInfo(form *forms.AdminUserAuthInfoForm) (res forms.AdminUserAuthInfoResult, err error)
AuthInfo 授权编辑数据回显
func (*AdminUserService) AuthStore ¶
func (m *AdminUserService) AuthStore(form *forms.AdminUserAuthStoreForm) (err error)
AuthStore 用户授权
func (*AdminUserService) Check ¶
func (m *AdminUserService) Check(username string) (user models.AdminUsers, err error)
Check 账号检测
func (*AdminUserService) List ¶
func (m *AdminUserService) List(page, pageSize int) (items []forms.AdminUserListResult, count int64, err error)
List 获取用户列表
func (AdminUserService) Menu ¶
func (AdminUserService) Menu(userId int) (interface{}, error)
Menu 用户菜单列表
func (*AdminUserService) Options ¶
func (m *AdminUserService) Options() (items []forms.AdminUserOptionResult, err error)
Options 后台用户参数列表
func (*AdminUserService) UserInfo ¶
func (m *AdminUserService) UserInfo(ctx *app.Context) (res UserInfoResult, err error)
type RefreshForm ¶
type RefreshForm struct {
Token string `json:"token" form:"token"`
}
type RefreshResult ¶
type RefreshResult struct {
Token string `json:"token" form:"token"`
}
type UserInfoResult ¶
Click to show internal directories.
Click to hide internal directories.