model

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	ID             string  `json:"id"`
	UserID         string  `json:"userId"`
	RefreshTokenID string  `json:"refreshTokenId"`
	CreateTime     string  `json:"createTime"`
	UpdateTime     *string `json:"updateTime,omitempty"`
}

type CreateNoteInput

type CreateNoteInput struct {
	Title       *string   `json:"title,omitempty"`
	Content     *string   `json:"content,omitempty"`
	ObjectNames []*string `json:"objectNames,omitempty"`
}

type CreatePresignedUrlsResponse

type CreatePresignedUrlsResponse struct {
	Urls []*PresignedURL `json:"Urls,omitempty"`
}

type File

type File struct {
	ID            string  `json:"id"`
	NoteID        string  `json:"noteId"`
	OriginalFile  string  `json:"originalFile"`
	ProcessedFile *string `json:"processedFile,omitempty"`
	URL           string  `json:"url"`
	CreateTime    string  `json:"createTime"`
	UpdateTime    *string `json:"updateTime,omitempty"`
}

type Mutation

type Mutation struct {
}

type Note

type Note struct {
	ID         string  `json:"id"`
	UserID     string  `json:"userId"`
	Title      *string `json:"title,omitempty"`
	Content    *string `json:"content,omitempty"`
	Files      []*File `json:"files,omitempty"`
	CreateTime string  `json:"createTime"`
	UpdateTime *string `json:"updateTime,omitempty"`
}

type NotesInput

type NotesInput struct {
	Cursor *string `json:"cursor,omitempty"`
	Trash  *bool   `json:"trash,omitempty"`
}

type NotesResponse

type NotesResponse struct {
	Notes  []*Note `json:"notes,omitempty"`
	Cursor string  `json:"cursor"`
}

type PresignedURL

type PresignedURL struct {
	URL      string `json:"Url"`
	File     string `json:"File"`
	ObjectID string `json:"ObjectId"`
}

type Query

type Query struct {
}

type RefreshToken

type RefreshToken struct {
	ID         string  `json:"id"`
	UserID     string  `json:"userId"`
	CreateTime string  `json:"createTime"`
	UpdateTime *string `json:"updateTime,omitempty"`
}

type SignInInput

type SignInInput struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type SignInResponse

type SignInResponse struct {
	User         *User  `json:"user"`
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
}

type UpdateNoteInput

type UpdateNoteInput struct {
	Title   *string `json:"title,omitempty"`
	Content *string `json:"content,omitempty"`
}

type User

type User struct {
	ID         string  `json:"id"`
	Name       string  `json:"name"`
	Email      string  `json:"email"`
	CreateTime string  `json:"createTime"`
	UpdateTime *string `json:"updateTime,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL