feat: implement new structure

This commit is contained in:
2025-12-29 09:30:49 +08:00
parent 503b15aab7
commit ad52371028
116 changed files with 17579 additions and 1213 deletions

View 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
}