youtu_grpc/user_management/internal/server/user_management_server.go
2025-02-05 18:45:49 +08:00

35 lines
1013 B
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.6
// Source: user_management.proto
package server
import (
"context"
"gitea.youtukeji.com.cn/xiabin/youtu_grpc/user_management/internal/logic"
"gitea.youtukeji.com.cn/xiabin/youtu_grpc/user_management/internal/svc"
"gitea.youtukeji.com.cn/xiabin/youtu_grpc/user_management/user_management"
)
type UserManagementServer struct {
svcCtx *svc.ServiceContext
user_management.UnimplementedUserManagementServer
}
func NewUserManagementServer(svcCtx *svc.ServiceContext) *UserManagementServer {
return &UserManagementServer{
svcCtx: svcCtx,
}
}
func (s *UserManagementServer) Ping(ctx context.Context, in *user_management.Request) (*user_management.Response, error) {
l := logic.NewPingLogic(ctx, s.svcCtx)
return l.Ping(in)
}
func (s *UserManagementServer) SetAppAccount(ctx context.Context, in *user_management.SetAppUserRequest) (*user_management.Response, error) {
l := logic.NewSetAppAccountLogic(ctx, s.svcCtx)
return l.SetAppAccount(in)
}