Documentation ¶
Index ¶
- func GenToken(username string) string
- type User
- func (u *User) Signin(ctx context.Context, req *proto.ReqSignin, res *proto.RespSignin) error
- func (u *User) Signup(ctx context.Context, req *proto.ReqSignup, res *proto.RespSignup) error
- func (u *User) UserFileRename(ctx context.Context, req *proto.ReqUserFileRename, ...) error
- func (u *User) UserFiles(ctx context.Context, req *proto.ReqUserFile, res *proto.RespUserFile) error
- func (u *User) UserInfo(ctx context.Context, req *proto.ReqUserInfo, res *proto.RespUserInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct{}
User : 用于实现UserServiceHandler接口的对象
func (*User) UserFileRename ¶
func (u *User) UserFileRename(ctx context.Context, req *proto.ReqUserFileRename, res *proto.RespUserFileRename) error
UserFiles : 用户文件重命名
func (*User) UserFiles ¶
func (u *User) UserFiles(ctx context.Context, req *proto.ReqUserFile, res *proto.RespUserFile) error
UserFiles : 获取用户文件列表
func (*User) UserInfo ¶
func (u *User) UserInfo(ctx context.Context, req *proto.ReqUserInfo, res *proto.RespUserInfo) error
UserInfo : 查询用户信息
Click to show internal directories.
Click to hide internal directories.