Files
moteva/server/internal/logic/get_auth_options_logic.go
T

32 lines
678 B
Go
Raw Normal View History

// Code scaffolded by goctl. Safe to edit.
// goctl 1.10.1
package logic
import (
"context"
"img_infinite_canvas/internal/svc"
"img_infinite_canvas/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type GetAuthOptionsLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewGetAuthOptionsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAuthOptionsLogic {
return &GetAuthOptionsLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *GetAuthOptionsLogic) GetAuthOptions() (resp *types.AuthOptionsResponse, err error) {
return toAPIAuthOptions(l.svcCtx.AuthService.Options()), nil
}