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:
11
internal/pastes/paste.go
Normal file
11
internal/pastes/paste.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user