2026-02-07 18:26:47 +00:00
|
|
|
package sync
|
|
|
|
|
|
|
|
|
|
import (
|
2026-02-24 15:34:53 +00:00
|
|
|
"context"
|
2026-02-08 01:44:44 +00:00
|
|
|
"net/http"
|
|
|
|
|
|
2026-03-03 17:08:58 +00:00
|
|
|
"github.com/Gleipnir-Technology/nidus-sync/html"
|
|
|
|
|
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
|
2026-03-12 23:49:16 +00:00
|
|
|
"github.com/Gleipnir-Technology/nidus-sync/platform"
|
2026-02-07 18:26:47 +00:00
|
|
|
)
|
|
|
|
|
|
2026-02-24 15:34:53 +00:00
|
|
|
type contentPoolList struct{}
|
2026-02-07 20:02:39 +00:00
|
|
|
|
2026-03-12 23:49:16 +00:00
|
|
|
func getPoolList(ctx context.Context, r *http.Request, user platform.User) (*html.Response[contentPoolList], *nhttp.ErrorWithStatus) {
|
2026-03-03 17:08:58 +00:00
|
|
|
return html.NewResponse("sync/pool-list.html", contentPoolList{}), nil
|
2026-02-07 20:02:39 +00:00
|
|
|
}
|
2026-03-12 23:49:16 +00:00
|
|
|
func getPoolCreate(ctx context.Context, r *http.Request, user platform.User) (*html.Response[contentPoolList], *nhttp.ErrorWithStatus) {
|
2026-03-03 17:08:58 +00:00
|
|
|
return html.NewResponse("sync/pool-upload.html", contentPoolList{}), nil
|
2026-02-08 03:47:48 +00:00
|
|
|
}
|
2026-03-12 23:49:16 +00:00
|
|
|
func getPoolByID(ctx context.Context, r *http.Request, user platform.User) (*html.Response[contentPoolList], *nhttp.ErrorWithStatus) {
|
2026-03-03 17:08:58 +00:00
|
|
|
return html.NewResponse("sync/pool-by-id.html", contentPoolList{}), nil
|
2026-02-08 00:59:41 +00:00
|
|
|
}
|