change layout
CI / changes (push) Successful in 5s
CI / docker-bff (push) Failing after 7s
CI / docker-product (push) Failing after 5s
CI / docker-admin (push) Failing after 4s
CI / docker-user (push) Failing after 6s

This commit is contained in:
2026-08-20 15:41:44 +08:00
parent 57e04be304
commit be8f89f449
176 changed files with 7009 additions and 4498 deletions
@@ -0,0 +1,38 @@
// Code generated by goctl. DO NOT EDIT.
// goctl 1.10.1
// Source: user.proto
package server
import (
"context"
user "lone-services/rpc/user/pb"
"lone-services/services/user/internal/logic"
"lone-services/services/user/internal/svc"
)
type UserServer struct {
svcCtx *svc.ServiceContext
user.UnimplementedUserServer
}
func NewUserServer(svcCtx *svc.ServiceContext) *UserServer {
return &UserServer{
svcCtx: svcCtx,
}
}
func (s *UserServer) Register(ctx context.Context, in *user.RegisterReq) (*user.Response, error) {
l := logic.NewRegisterLogic(ctx, s.svcCtx)
return l.Register(in)
}
func (s *UserServer) RegisterByUser(ctx context.Context, in *user.RegisterByUserReq) (*user.Response, error) {
l := logic.NewRegisterByUserLogic(ctx, s.svcCtx)
return l.RegisterByUser(in)
}
func (s *UserServer) Login(ctx context.Context, in *user.LoginReq) (*user.Response, error) {
l := logic.NewLoginLogic(ctx, s.svcCtx)
return l.Login(in)
}