feat: user items
This commit is contained in:
@@ -6,7 +6,8 @@ package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
user "lone-services/rpc/user/pb"
|
||||
|
||||
"lone-services/rpc/user/pb"
|
||||
"lone-services/services/user/internal/logic"
|
||||
"lone-services/services/user/internal/svc"
|
||||
)
|
||||
@@ -36,3 +37,13 @@ func (s *UserServer) Login(ctx context.Context, in *user.LoginReq) (*user.Respon
|
||||
l := logic.NewLoginLogic(ctx, s.svcCtx)
|
||||
return l.Login(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) UserItems(ctx context.Context, in *user.UserItemsReq) (*user.Response, error) {
|
||||
l := logic.NewUserItemsLogic(ctx, s.svcCtx)
|
||||
return l.UserItems(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) UserStatus(ctx context.Context, in *user.UserStatusReq) (*user.Response, error) {
|
||||
l := logic.NewUserStatusLogic(ctx, s.svcCtx)
|
||||
return l.UserStatus(in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user