youtu_grpc/app/user_management/internal/server/user_management_server.go

34 lines
1.0 KiB
Go
Raw Permalink Normal View History

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