common

package
v0.0.0-...-f0a2dc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2025 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntervalTime = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheKeyPayload

type CacheKeyPayload struct {
	Code   string `json:"code"`
	LastAt int64  `json:"lastAt"`
}

type CheckVerificationCodeLogic

type CheckVerificationCodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewCheckVerificationCodeLogic

func NewCheckVerificationCodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CheckVerificationCodeLogic

Check verification code

func (*CheckVerificationCodeLogic) CheckVerificationCode

type GetAdsLogic

type GetAdsLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetAdsLogic

func NewGetAdsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetAdsLogic

Get Ads

func (*GetAdsLogic) GetAds

func (l *GetAdsLogic) GetAds(req *types.GetAdsRequest) (resp *types.GetAdsResponse, err error)

type GetApplicationLogic

type GetApplicationLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetApplicationLogic

func NewGetApplicationLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetApplicationLogic

Get Tos Content

func (*GetApplicationLogic) GetApplication

func (l *GetApplicationLogic) GetApplication() (resp *types.GetAppcationResponse, err error)

type GetGlobalConfigLogic

type GetGlobalConfigLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetGlobalConfigLogic

func NewGetGlobalConfigLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetGlobalConfigLogic

Get global config

func (*GetGlobalConfigLogic) GetGlobalConfig

func (l *GetGlobalConfigLogic) GetGlobalConfig() (resp *types.GetGlobalConfigResponse, err error)

type GetPrivacyPolicyLogic

type GetPrivacyPolicyLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetPrivacyPolicyLogic

func NewGetPrivacyPolicyLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPrivacyPolicyLogic

Get Privacy Policy

func (*GetPrivacyPolicyLogic) GetPrivacyPolicy

func (l *GetPrivacyPolicyLogic) GetPrivacyPolicy() (resp *types.PrivacyPolicyConfig, err error)

type GetStatLogic

type GetStatLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetStatLogic

func NewGetStatLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetStatLogic

Get Tos

func (*GetStatLogic) GetStat

func (l *GetStatLogic) GetStat() (resp *types.GetStatResponse, err error)

type GetSubscriptionLogic

type GetSubscriptionLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetSubscriptionLogic

func NewGetSubscriptionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetSubscriptionLogic

Get Subscription

func (*GetSubscriptionLogic) GetSubscription

func (l *GetSubscriptionLogic) GetSubscription() (resp *types.GetSubscriptionResponse, err error)

type GetTosLogic

type GetTosLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetTosLogic

func NewGetTosLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetTosLogic

Get Tos

func (*GetTosLogic) GetTos

func (l *GetTosLogic) GetTos() (resp *types.GetTosResponse, err error)

type SendEmailCodeLogic

type SendEmailCodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewSendEmailCodeLogic

func NewSendEmailCodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendEmailCodeLogic

NewSendEmailCodeLogic Get verification code

func (*SendEmailCodeLogic) SendEmailCode

func (l *SendEmailCodeLogic) SendEmailCode(req *types.SendCodeRequest) (resp *types.SendCodeResponse, err error)

type SendSmsCodeLogic

type SendSmsCodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewSendSmsCodeLogic

func NewSendSmsCodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendSmsCodeLogic

NewSendSmsCodeLogic Get sms verification code

func (*SendSmsCodeLogic) SendSmsCode

func (l *SendSmsCodeLogic) SendSmsCode(req *types.SendSmsCodeRequest) (resp *types.SendCodeResponse, err error)

type SmsSendCount

type SmsSendCount struct {
	Count    int64 `json:"count"`
	CreateAt int64 `json:"create_at"`
}

type VerifyTemplate

type VerifyTemplate struct {
	Type     uint8
	SiteName string
	Expire   uint8
	Code     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL