🚚 Expose the models to public
This commit is contained in:
		| @@ -6,7 +6,7 @@ import ( | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex" | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/cachekit" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/proto" | ||||
| 	"github.com/goccy/go-json" | ||||
| ) | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| package database | ||||
|  | ||||
| import ( | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"gorm.io/gorm" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"path/filepath" | ||||
|  | ||||
| 	pkg "git.solsynth.dev/hypernet/paperclip/pkg/internal" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
| 	"github.com/minio/minio-go/v7" | ||||
| 	"github.com/spf13/viper" | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"path/filepath" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"github.com/spf13/viper" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import ( | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"github.com/samber/lo" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
| 	"github.com/minio/minio-go/v7" | ||||
| 	"github.com/rs/zerolog/log" | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/proto" | ||||
| 	"github.com/rs/zerolog/log" | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import ( | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/server/exts" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
| ) | ||||
|   | ||||
| @@ -3,7 +3,7 @@ package api | ||||
| import ( | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/server/exts" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| package api | ||||
|  | ||||
| import ( | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import ( | ||||
| 	"gorm.io/datatypes" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
| ) | ||||
|   | ||||
| @@ -2,7 +2,7 @@ package api | ||||
|  | ||||
| import ( | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/server/exts" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
|   | ||||
| @@ -4,7 +4,7 @@ import ( | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/gap" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/server/exts" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"git.solsynth.dev/hypernet/passport/pkg/authkit" | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/server/exts" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/fs" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/server/exts" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/services" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
|   | ||||
| @@ -18,7 +18,7 @@ import ( | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/fs" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
| 	"github.com/k0kubun/go-ansi" | ||||
| 	"github.com/kettek/apng" | ||||
|   | ||||
| @@ -15,7 +15,7 @@ import ( | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/fs" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/gap" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"github.com/google/uuid" | ||||
| 	"gorm.io/gorm" | ||||
| ) | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/fs" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
| 	"github.com/rs/zerolog/log" | ||||
| 	"github.com/spf13/cast" | ||||
|   | ||||
| @@ -4,7 +4,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
|  | ||||
| 	"github.com/rs/zerolog/log" | ||||
| ) | ||||
|   | ||||
| @@ -3,7 +3,7 @@ package services | ||||
| import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
| 	"github.com/rs/zerolog/log" | ||||
| 	"github.com/spf13/cast" | ||||
|   | ||||
| @@ -14,7 +14,7 @@ import ( | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/gap" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
| 	"github.com/google/uuid" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
|   | ||||
| @@ -12,7 +12,7 @@ import ( | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/cachekit" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/gap" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
| 	"github.com/minio/minio-go/v7" | ||||
| 	"github.com/samber/lo" | ||||
|   | ||||
| @@ -6,7 +6,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/gap" | ||||
| 	wproto "git.solsynth.dev/hypernet/wallet/pkg/proto" | ||||
|   | ||||
| @@ -2,7 +2,7 @@ package services | ||||
|  | ||||
| import ( | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| ) | ||||
|  | ||||
| func ListAttachmentPool() ([]models.AttachmentPool, error) { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| ) | ||||
|  | ||||
| func SetAttachmentAsThumbnail(item models.Attachment) (models.Attachment, error) { | ||||
|   | ||||
| @@ -3,7 +3,7 @@ package services | ||||
| import ( | ||||
| 	"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"gorm.io/gorm" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"gorm.io/gorm" | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"github.com/spf13/viper" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import ( | ||||
|  | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/fs" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/internal/models" | ||||
| 	"git.solsynth.dev/hypernet/paperclip/pkg/filekit/models" | ||||
| 	"github.com/gofiber/fiber/v2" | ||||
| 	jsoniter "github.com/json-iterator/go" | ||||
| 	"github.com/minio/minio-go/v7" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user