feat 结构调整

This commit is contained in:
2025-12-20 15:39:25 +08:00
parent 55c5d4cc18
commit ff1bd1d0b6
96 changed files with 4904 additions and 350 deletions

View File

@@ -0,0 +1,21 @@
package server
import (
"common/log"
"common/proto/ss/grpc_pb"
"context"
"user/internal/dao/repository"
)
func (s *Server) Login(ctx context.Context, req *grpc_pb.LoginReq) (*grpc_pb.LoginResp, error) {
log.Infof("Login req: %+v", req)
user, err := repository.NewUserDao(ctx).FindBySn(857527344353)
if err != nil {
return nil, err
}
return &grpc_pb.LoginResp{
UID: int32(user.Sn),
}, nil
}