service

package
v0.0.0-...-05f445e Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSentCaptchaTooOften = errors.New("send too frequently")
)

Functions

This section is empty.

Types

type ArticleService

type ArticleService interface {
	Save(ctx context.Context, art article.Article) (int64, error)
}

func NewArticleService

func NewArticleService(repo repository.ArticleRepository) ArticleService

type CaptchaService

type CaptchaService interface {
	Send(ctx context.Context, biz string, phone string) error
	Verify(ctx context.Context, biz string, phone string, inputcode string) (bool, error)
}

func NewCaptchaService

func NewCaptchaService(repo repository.CaptchaRepository, smsSvc sms.Service, tplId string) CaptchaService

type MsUserService

type MsUserService interface {
	Signup(ctx context.Context, u repository.MsUser) error
	LoginWithPwd(ctx context.Context, username string, password string) (repository.MsUser, error)
}

func NewMsUserService

func NewMsUserService(repo repository.MsUserRepository) MsUserService

type UserService

type UserService interface {
	Signup(ctx context.Context, u repository.User) error
	LoginWithEmailPwd(ctx context.Context, email string, password string) (repository.User, error)
	FindOrCreate(ctx context.Context, phone string) (repository.User, error)
	FindOrCreateByWechat(ctx context.Context, wechatInfo model.WechatInfo) (repository.User, error)
	EditProfile(ctx context.Context, u repository.User) (repository.User, error)
}

func NewUserService

func NewUserService(repo repository.UserRepository) UserService

Directories

Path Synopsis
Package svcmock is a generated GoMock package.
Package svcmock is a generated GoMock package.
oauth2
sms
coolpen
Package cloopen 容联云短信的实现 SDK文档:https://doc.yuntongxun.com/pe/5f029a06a80948a1006e7760
Package cloopen 容联云短信的实现 SDK文档:https://doc.yuntongxun.com/pe/5f029a06a80948a1006e7760
mocks
Package smsmock is a generated GoMock package.
Package smsmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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