You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

user.go 1.0 kB

1234567891011121314151617181920212223242526272829
  1. package hubrpc
  2. import (
  3. context "context"
  4. "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc"
  5. cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types"
  6. )
  7. type UserSvc interface {
  8. NotifyUserAccessTokenInvalid(ctx context.Context, req *NotifyUserAccessTokenInvalid) (*NotifyUserAccessTokenInvalidResp, *rpc.CodeError)
  9. }
  10. // 通知用户的Token登出
  11. type NotifyUserAccessTokenInvalid struct {
  12. UserID cortypes.UserID
  13. TokenID cortypes.AccessTokenID
  14. }
  15. type NotifyUserAccessTokenInvalidResp struct{}
  16. func (c *Client) NotifyUserAccessTokenInvalid(ctx context.Context, req *NotifyUserAccessTokenInvalid) (*NotifyUserAccessTokenInvalidResp, *rpc.CodeError) {
  17. if c.fusedErr != nil {
  18. return nil, c.fusedErr
  19. }
  20. return rpc.UnaryClient[*NotifyUserAccessTokenInvalidResp](c.cli.NotifyUserAccessTokenInvalid, ctx, req)
  21. }
  22. func (s *Server) NotifyUserAccessTokenInvalid(ctx context.Context, req *rpc.Request) (*rpc.Response, error) {
  23. return rpc.UnaryServer(s.svrImpl.NotifyUserAccessTokenInvalid, ctx, req)
  24. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。