feat: implement new structure
This commit is contained in:
35
backend/app/services/user.go
Normal file
35
backend/app/services/user.go
Normal file
@@ -0,0 +1,35 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user