refactor: core client to engine

This commit is contained in:
Simon Ding
2025-03-31 11:06:03 +08:00
parent 6a2ab50d7d
commit eb2450e92b
13 changed files with 105 additions and 108 deletions

View File

@@ -4,11 +4,11 @@ import (
"os"
"path/filepath"
"polaris/db"
"polaris/engine"
"polaris/ent"
"polaris/ent/episode"
"polaris/ent/media"
"polaris/log"
"polaris/server/core"
"strconv"
"strings"
@@ -68,7 +68,7 @@ type addWatchlistIn struct {
}
func (s *Server) AddTv2Watchlist(c *gin.Context) (interface{}, error) {
var in core.AddWatchlistIn
var in engine.AddWatchlistIn
if err := c.ShouldBindJSON(&in); err != nil {
return nil, errors.Wrap(err, "bind query")
}
@@ -76,7 +76,7 @@ func (s *Server) AddTv2Watchlist(c *gin.Context) (interface{}, error) {
}
func (s *Server) AddMovie2Watchlist(c *gin.Context) (interface{}, error) {
var in core.AddWatchlistIn
var in engine.AddWatchlistIn
if err := c.ShouldBindJSON(&in); err != nil {
return nil, errors.Wrap(err, "bind query")
}