service

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

Info 用户编辑的基础信息接口

func (*AdminMenuService) List

func (m *AdminMenuService) List() (interface{}, error)

List 菜单列表

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

Delete 删除权限

func (*AdminPermissionsService) Detail

Detail 获取权限详情

func (*AdminPermissionsService) Info

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

Options 获取权限选项接口

func (*AdminPermissionsService) Store

type AdminRoleService

type AdminRoleService struct {
}

func (*AdminRoleService) Delete

func (m *AdminRoleService) Delete(form *forms.AdminRoleDeleteForm) (err error)

Delete 删除角色

func (*AdminRoleService) Detail

Detail 获取角色详情

func (*AdminRoleService) Info

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

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

type UserInfoResult struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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