Documentation ¶
Index ¶
- Variables
- type AuthService
- func (s *AuthService) SendVerifyCode(ctx context.Context, req *core_api.SendVerifyCodeReq) (*core_api.SendVerifyCodeResp, error)
- func (s *AuthService) SetPassword(ctx context.Context, req *core_api.SetPasswordReq) (*core_api.SetPasswordResp, error)
- func (s *AuthService) SignIn(ctx context.Context, req *core_api.SignInReq) (*core_api.SignInResp, error)
- type DataService
- type IAuthService
- type IDataService
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthServiceSet = wire.NewSet( wire.Struct(new(AuthService), "*"), wire.Bind(new(IAuthService), new(*AuthService)), )
View Source
var DataServiceSet = wire.NewSet( wire.Struct(new(DataService), "*"), wire.Bind(new(IDataService), new(*DataService)), )
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct { Config *config.Config Sts platform_sts.IPlatformSts }
func (*AuthService) SendVerifyCode ¶
func (s *AuthService) SendVerifyCode(ctx context.Context, req *core_api.SendVerifyCodeReq) (*core_api.SendVerifyCodeResp, error)
func (*AuthService) SetPassword ¶
func (s *AuthService) SetPassword(ctx context.Context, req *core_api.SetPasswordReq) (*core_api.SetPasswordResp, error)
func (*AuthService) SignIn ¶
func (s *AuthService) SignIn(ctx context.Context, req *core_api.SignInReq) (*core_api.SignInResp, error)
type DataService ¶
type DataService struct { Config *config.Config PlatformData platform_data.PlatformData }
func (*DataService) ReportEvent ¶
func (s *DataService) ReportEvent(ctx context.Context, req *api.ReportEventRequest) (*api.ReportEventResponse, error)
type IAuthService ¶
type IAuthService interface { SignIn(ctx context.Context, req *core_api.SignInReq) (*core_api.SignInResp, error) SetPassword(ctx context.Context, req *core_api.SetPasswordReq) (*core_api.SetPasswordResp, error) SendVerifyCode(ctx context.Context, req *core_api.SendVerifyCodeReq) (*core_api.SendVerifyCodeResp, error) }
type IDataService ¶
type IDataService interface {
ReportEvent(ctx context.Context, req *api.ReportEventRequest) (*api.ReportEventResponse, error)
}
Click to show internal directories.
Click to hide internal directories.