youtu_grpc/auth_service/internal/logic/get_access_token_logic.go

31 lines
765 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 GetAccessTokenLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewGetAccessTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAccessTokenLogic {
return &GetAccessTokenLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *GetAccessTokenLogic) GetAccessToken(in *auth_service.GetAccessTokenRequest) (*auth_service.GetAccessTokenResponse, error) {
// todo: add your logic here and delete this line
return &auth_service.GetAccessTokenResponse{}, nil
}