chore: rename everything to versia

This commit is contained in:
DevMiner 2024-08-28 00:25:25 +02:00
parent 0223ea0535
commit 3876ad2738
112 changed files with 587 additions and 576 deletions

View file

@ -2,8 +2,7 @@ package api_schema
import (
"github.com/google/uuid"
"github.com/lysand-org/versia-go/pkg/versia"
versiautils "github.com/lysand-org/versia-go/pkg/versia/utils"
versiautils "github.com/versia-pub/versia-go/pkg/versia/utils"
)
type Note struct {
@ -13,7 +12,7 @@ type Note struct {
type FetchNoteResponse = APIResponse[Note]
type CreateNoteRequest struct {
Content string `json:"content" validate:"required,min=1,max=1024"`
Visibility versia.NoteVisibility `json:"visibility" validate:"required,oneof=public unlisted private direct"`
Mentions []versiautils.URL `json:"mentions"`
Content string `json:"content" validate:"required,min=1,max=1024"`
Group string `json:"group" validate:"required"`
Mentions []versiautils.URL `json:"mentions"`
}

View file

@ -2,7 +2,7 @@ package api_schema
import (
"github.com/google/uuid"
"github.com/lysand-org/versia-go/pkg/versia"
"github.com/versia-pub/versia-go/pkg/versia"
)
type User struct {