36 lines
808 B
Go
36 lines
808 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
auth_dto "quyun/v2/app/http/v1/dto"
|
|
user_dto "quyun/v2/app/http/v1/dto"
|
|
)
|
|
|
|
// @provider
|
|
type user struct{}
|
|
|
|
func (s *user) SendOTP(ctx context.Context, phone string) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *user) LoginWithOTP(ctx context.Context, phone, otp string) (*auth_dto.LoginResponse, error) {
|
|
return &auth_dto.LoginResponse{}, nil
|
|
}
|
|
|
|
func (s *user) Me(ctx context.Context) (*auth_dto.User, error) {
|
|
return &auth_dto.User{}, nil
|
|
}
|
|
|
|
func (s *user) Update(ctx context.Context, form *user_dto.UserUpdate) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *user) RealName(ctx context.Context, form *user_dto.RealNameForm) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *user) GetNotifications(ctx context.Context, typeArg string) ([]user_dto.Notification, error) {
|
|
return []user_dto.Notification{}, nil
|
|
}
|