Documentation ¶
Index ¶
- type UserServiceHandler
- func (u *UserServiceHandler) AllRole(ctx context.Context, in *basic.String, out *dto.RoleDtoList) error
- func (u *UserServiceHandler) Delete(ctx context.Context, in *basic.StringList, out *basic.String) error
- func (u *UserServiceHandler) DeleteResource(ctx context.Context, in *basic.IntegerList, out *basic.String) error
- func (u *UserServiceHandler) DeleteRole(ctx context.Context, in *basic.StringList, out *basic.String) error
- func (u *UserServiceHandler) GetRole(ctx context.Context, in *basic.String, out *dto.RoleDto) error
- func (u *UserServiceHandler) List(ctx context.Context, in *dto.PageDto, out *dto.PageDto) error
- func (u *UserServiceHandler) ListRoleResource(ctx context.Context, in *basic.String, out *basic.IntegerList) error
- func (u *UserServiceHandler) ListRoleUser(ctx context.Context, in *basic.String, out *basic.StringList) error
- func (u *UserServiceHandler) LoadMenus(ctx context.Context, in *basic.String, out *dto.ResourceDtoList) error
- func (u *UserServiceHandler) LoadTree(ctx context.Context, in *basic.Integer, out *dto.ResourceDtoList) error
- func (u *UserServiceHandler) Login(ctx context.Context, in *dto.LoginUserDto, out *dto.LoginUserDto) error
- func (u *UserServiceHandler) Logout(ctx context.Context, in *basic.String, out *basic.String) error
- func (u *UserServiceHandler) MemberAvatar(ctx context.Context, in *basic.StringList, out *basic.String) (err error)
- func (u *UserServiceHandler) MemberInfo(ctx context.Context, in *basic.String, out *dto.MemberDto) (err error)
- func (u *UserServiceHandler) MemberIntegral(ctx context.Context, in *basic.String, out *basic.String) (err error)
- func (u *UserServiceHandler) MemberLogin(ctx context.Context, req *dto.LoginUserDto, rsp *basic.String) (err error)
- func (u *UserServiceHandler) MemberRegister(ctx context.Context, req *dto.MemberRegisterDto, rsp *basic.String) (err error)
- func (u *UserServiceHandler) MemberSave(ctx context.Context, in *dto.MemberDto, out *basic.String) (err error)
- func (u *UserServiceHandler) MenuChild(ctx context.Context, in *basic.Integer, out *basic.IntegerList) error
- func (u *UserServiceHandler) MenuList(ctx context.Context, in *dto.ResourcePageDto, out *dto.ResourcePageDto) error
- func (u *UserServiceHandler) MenuParent(ctx context.Context, in *basic.IntegerList, out *dto.ResourceDtoList) error
- func (u *UserServiceHandler) RoleLevel(ctx context.Context, in *basic.String, out *basic.Integer) error
- func (u *UserServiceHandler) RoleList(ctx context.Context, in *dto.RolePageDto, out *dto.RolePageDto) error
- func (u *UserServiceHandler) Save(ctx context.Context, in *dto.UserDto, out *dto.UserDto) error
- func (u *UserServiceHandler) SaveEmail(ctx context.Context, in *dto.UpdateEmail, out *basic.String) (err error)
- func (u *UserServiceHandler) SavePassword(ctx context.Context, in *dto.UpdatePass, out *basic.String) (err error)
- func (u *UserServiceHandler) SaveResource(ctx context.Context, in *dto.ResourceDto, out *basic.String) error
- func (u *UserServiceHandler) SaveRole(ctx context.Context, in *dto.RoleDto, out *dto.RoleDto) error
- func (u *UserServiceHandler) SaveRoleResource(ctx context.Context, in *dto.RoleDto, out *dto.RoleDto) error
- func (u *UserServiceHandler) SaveRoleUser(ctx context.Context, in *dto.RoleDto, out *dto.RoleDto) error
- func (u *UserServiceHandler) SaveUserInfo(ctx context.Context, in *dto.UserDto, out *dto.UserDto) error
- func (u *UserServiceHandler) SendEmailCode(ctx context.Context, req *basic.String, rsp *basic.String) (err error)
- func (u *UserServiceHandler) UserInfo(ctx context.Context, in *basic.String, out *dto.UserDto) error
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) 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 ¶
func (u *UserServiceHandler) LoadTree(ctx context.Context, in *basic.Integer, out *dto.ResourceDtoList) error
LoadTree: 加载权限树中的节点
func (*UserServiceHandler) Login ¶
func (u *UserServiceHandler) Login(ctx context.Context, in *dto.LoginUserDto, out *dto.LoginUserDto) 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 ¶
func (u *UserServiceHandler) MenuList(ctx context.Context, in *dto.ResourcePageDto, out *dto.ResourcePageDto) error
MenuList: 权限列表
func (*UserServiceHandler) MenuParent ¶
func (u *UserServiceHandler) MenuParent(ctx context.Context, in *basic.IntegerList, out *dto.ResourceDtoList) error
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) 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) 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 ¶
Click to show internal directories.
Click to hide internal directories.