1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

Implement basic paste structure

This commit is contained in:
Lukas SP
2020-08-22 22:27:37 +02:00
parent 5689c90a1c
commit 9bd6044e39
3 changed files with 39 additions and 0 deletions

11
internal/pastes/paste.go Normal file
View File

@@ -0,0 +1,11 @@
package pastes
import "github.com/bwmarrin/snowflake"
// Paste represents a saved paste
type Paste struct {
ID snowflake.ID `json:"id" bson:"_id"`
Content string `json:"content" bson:"content"`
SuggestedSyntaxType string `json:"suggestedSyntaxType" bson:"suggestedSyntaxType"`
DeletionToken string `json:"deletionToken" bson:"deletionToken"`
}