youtu_grpc/auth_service/internal/logic/code2_session_logic.go

31 lines
747 B
Go
Raw Normal View History

2025-02-05 18:45:49 +08:00
package logic
import (
"context"
"gitea.youtukeji.com.cn/xiabin/youtu_grpc/auth_service/auth_service"
"gitea.youtukeji.com.cn/xiabin/youtu_grpc/auth_service/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type Code2SessionLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewCode2SessionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Code2SessionLogic {
return &Code2SessionLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *Code2SessionLogic) Code2Session(in *auth_service.Code2SessionRequest) (*auth_service.Code2SessionResponse, error) {
// todo: add your logic here and delete this line
return &auth_service.Code2SessionResponse{}, nil
}