Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCodeVerifyTooManyTimes = repository.ErrCodeVerifyTooManyTimes ErrCodeSendTooMany = repository.ErrCodeSendTooMany )
View Source
var ErrInvalidUserOrPassword = errors.New("账号/邮箱或密码不对")
View Source
var ErrUserDuplicateEmail = repository.ErrUserDuplicate
Functions ¶
func PathsDownGrade ¶
Types ¶
type ArticleService ¶
type ArticleService interface { Save(ctx context.Context, art domain.Article) (int64, error) Publish(ctx context.Context, art domain.Article) (int64, error) PublishV1(ctx context.Context, art domain.Article) (int64, error) }
func NewArticleService ¶
func NewArticleService(repo article.ArticleRepository) ArticleService
func NewArticleServiceV1 ¶
func NewArticleServiceV1(author article.ArticleAuthorRepository, reader article.ArticleReaderRepository, l logger.LoggerV1) ArticleService
type CodeService ¶
type CodeService interface { Send(ctx context.Context, biz string, phone string) error Verify(ctx context.Context, biz string, phone string, inputCode string) (bool, error) }
func NewCodeService ¶
func NewCodeService(repo repository.CodeRepository, smsSvc sms.Service) CodeService
type UserService ¶
type UserService interface { Login(ctx context.Context, email, password string) (domain.User, error) SignUp(ctx context.Context, u domain.User) error FindOrCreate(ctx context.Context, phone string) (domain.User, error) FindOrCreateByWechat(ctx context.Context, wechatInfo domain.WechatInfo) (domain.User, error) Profile(ctx context.Context, id int64) (domain.User, error) }
func NewUserService ¶
func NewUserService(repo repository.UserRepository, l logger.LoggerV1) UserService
NewUserService 我用的人,只管用,怎么初始化我不管,我一点都不关心如何初始化
func NewUserServiceV1 ¶
func NewUserServiceV1(repo repository.UserRepository, l *zap.Logger) UserService
Directories
¶
Path | Synopsis |
---|---|
Package svcmocks is a generated GoMock package.
|
Package svcmocks is a generated GoMock package. |
oauth2
|
|
cloopen
Package cloopen 容联云短信的实现 SDK文档:https://doc.yuntongxun.com/pe/5f029a06a80948a1006e7760
|
Package cloopen 容联云短信的实现 SDK文档:https://doc.yuntongxun.com/pe/5f029a06a80948a1006e7760 |
Click to show internal directories.
Click to hide internal directories.