handler

package
v0.0.0-...-23f538b Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserServiceHandler

type UserServiceHandler struct {
}

func (*UserServiceHandler) AllRole

func (u *UserServiceHandler) AllRole(ctx context.Context, in *basic.String, out *dto.RoleDtoList) error

AllRole : 获取所有角色

func (*UserServiceHandler) Delete

func (u *UserServiceHandler) Delete(ctx context.Context, in *basic.StringList, out *basic.String) error

func (*UserServiceHandler) DeleteResource

func (u *UserServiceHandler) DeleteResource(ctx context.Context, in *basic.IntegerList, out *basic.String) error

DeleteResource: 删除权限

func (*UserServiceHandler) DeleteRole

func (u *UserServiceHandler) DeleteRole(ctx context.Context, in *basic.StringList, out *basic.String) error

DeleteRole: 删除一种角色

func (*UserServiceHandler) GetRole

func (u *UserServiceHandler) GetRole(ctx context.Context, in *basic.String, out *dto.RoleDto) error

GetRole : 获取传入 ID 角色

func (*UserServiceHandler) List

func (u *UserServiceHandler) List(ctx context.Context, in *dto.PageDto, out *dto.PageDto) error

func (*UserServiceHandler) ListRoleResource

func (u *UserServiceHandler) ListRoleResource(ctx context.Context, in *basic.String, out *basic.IntegerList) error

ListRoleResource: 获取角色权限

func (*UserServiceHandler) ListRoleUser

func (u *UserServiceHandler) ListRoleUser(ctx context.Context, in *basic.String, out *basic.StringList) error

ListRoleUser: 获取某个角色的所有用户

func (*UserServiceHandler) LoadMenus

func (u *UserServiceHandler) LoadMenus(ctx context.Context, in *basic.String, out *dto.ResourceDtoList) error

LoadMenus : 加载后台管理系统用户权限树

func (*UserServiceHandler) LoadTree

LoadTree: 加载权限树中的节点

func (*UserServiceHandler) Login

func (*UserServiceHandler) Logout

func (u *UserServiceHandler) Logout(ctx context.Context, in *basic.String, out *basic.String) error

func (*UserServiceHandler) MemberAvatar

func (u *UserServiceHandler) MemberAvatar(ctx context.Context, in *basic.StringList, out *basic.String) (err error)

MemberAvatar: 更新用户头像

func (*UserServiceHandler) MemberInfo

func (u *UserServiceHandler) MemberInfo(ctx context.Context, in *basic.String, out *dto.MemberDto) (err error)

MemberInfo: 获取用户信息

func (*UserServiceHandler) MemberIntegral

func (u *UserServiceHandler) MemberIntegral(ctx context.Context, in *basic.String, out *basic.String) (err error)

MemberIntegral: 用户积分

func (*UserServiceHandler) MemberLogin

func (u *UserServiceHandler) MemberLogin(ctx context.Context, req *dto.LoginUserDto, rsp *basic.String) (err error)

func (*UserServiceHandler) MemberRegister

func (u *UserServiceHandler) MemberRegister(ctx context.Context, req *dto.MemberRegisterDto, rsp *basic.String) (err error)

func (*UserServiceHandler) MemberSave

func (u *UserServiceHandler) MemberSave(ctx context.Context, in *dto.MemberDto, out *basic.String) (err error)

MemberSave: 更新用户信息

func (*UserServiceHandler) MenuChild

func (u *UserServiceHandler) MenuChild(ctx context.Context, in *basic.Integer, out *basic.IntegerList) error

MenuChild: 获取传入权限的子权限 id

func (*UserServiceHandler) MenuList

MenuList: 权限列表

func (*UserServiceHandler) MenuParent

MenuParent: 获取传入权限ID的所有同级和父级权限

func (*UserServiceHandler) RoleLevel

func (u *UserServiceHandler) RoleLevel(ctx context.Context, in *basic.String, out *basic.Integer) error

RoleLevel : 获取所有角色

func (*UserServiceHandler) RoleList

func (u *UserServiceHandler) RoleList(ctx context.Context, in *dto.RolePageDto, out *dto.RolePageDto) error

RoleList : 获取所有角色

func (*UserServiceHandler) Save

func (u *UserServiceHandler) Save(ctx context.Context, in *dto.UserDto, out *dto.UserDto) error

Save: 新增/更新用户信息

func (*UserServiceHandler) SaveEmail

func (u *UserServiceHandler) SaveEmail(ctx context.Context, in *dto.UpdateEmail, out *basic.String) (err error)

SaveEmail: 用户修改邮箱

func (*UserServiceHandler) SavePassword

func (u *UserServiceHandler) SavePassword(ctx context.Context, in *dto.UpdatePass, out *basic.String) (err error)

SavePassword : reset password

func (*UserServiceHandler) SaveResource

func (u *UserServiceHandler) SaveResource(ctx context.Context, in *dto.ResourceDto, out *basic.String) error

SaveJson : 保存权限树

func (*UserServiceHandler) SaveRole

func (u *UserServiceHandler) SaveRole(ctx context.Context, in *dto.RoleDto, out *dto.RoleDto) error

SaveRole: 保存一种角色

func (*UserServiceHandler) SaveRoleResource

func (u *UserServiceHandler) SaveRoleResource(ctx context.Context, in *dto.RoleDto, out *dto.RoleDto) error

SaveRoleResource: 保存角色权限

func (*UserServiceHandler) SaveRoleUser

func (u *UserServiceHandler) SaveRoleUser(ctx context.Context, in *dto.RoleDto, out *dto.RoleDto) error

SaveRoleUser: 保存某个角色的所有用户

func (*UserServiceHandler) SaveUserInfo

func (u *UserServiceHandler) SaveUserInfo(ctx context.Context, in *dto.UserDto, out *dto.UserDto) error

SaveUserInfo: 更新当前登录用户信息

func (*UserServiceHandler) SendEmailCode

func (u *UserServiceHandler) SendEmailCode(ctx context.Context, req *basic.String, rsp *basic.String) (err error)

func (*UserServiceHandler) UserInfo

func (u *UserServiceHandler) UserInfo(ctx context.Context, in *basic.String, out *dto.UserDto) error

UserInfo: 获取用户信息

Jump to

Keyboard shortcuts

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