34 lines
1.0 KiB
Go
34 lines
1.0 KiB
Go
// 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)
|
|
}
|