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,63 @@
package services
import (
"context"
content_dto "quyun/v2/app/http/v1/dto"
user_dto "quyun/v2/app/http/v1/dto"
)
// @provider
type content struct{}
func (s *content) List(ctx context.Context, keyword, genre, tenantId, sort string, page int) (*content_dto.ContentListResponse, error) {
return &content_dto.ContentListResponse{}, nil
}
func (s *content) Get(ctx context.Context, id string) (*content_dto.ContentDetail, error) {
return &content_dto.ContentDetail{}, nil
}
func (s *content) ListComments(ctx context.Context, id string, page int) (*content_dto.CommentListResponse, error) {
return &content_dto.CommentListResponse{}, nil
}
func (s *content) CreateComment(ctx context.Context, id string, form *content_dto.CommentCreateForm) error {
return nil
}
func (s *content) LikeComment(ctx context.Context, id string) error {
return nil
}
func (s *content) GetLibrary(ctx context.Context) ([]user_dto.ContentItem, error) {
return []user_dto.ContentItem{}, nil
}
func (s *content) GetFavorites(ctx context.Context) ([]user_dto.ContentItem, error) {
return []user_dto.ContentItem{}, nil
}
func (s *content) AddFavorite(ctx context.Context, contentId string) error {
return nil
}
func (s *content) RemoveFavorite(ctx context.Context, contentId string) error {
return nil
}
func (s *content) GetLikes(ctx context.Context) ([]user_dto.ContentItem, error) {
return []user_dto.ContentItem{}, nil
}
func (s *content) AddLike(ctx context.Context, contentId string) error {
return nil
}
func (s *content) RemoveLike(ctx context.Context, contentId string) error {
return nil
}
func (s *content) ListTopics(ctx context.Context) ([]content_dto.Topic, error) {
return []content_dto.Topic{}, nil
}