Last active
June 1, 2025 19:24
-
-
Save Runinterface/f9fff165248d2753b51eaa8ec40064d2 to your computer and use it in GitHub Desktop.
struct example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type NotesInTree struct { | |
ID string `json:"id"` | |
Index int `json:"index"` | |
ParentId string `json:"parentId"` | |
Children []NotesInTree `json:"children"` | |
} | |
type User struct { | |
ID primitive.ObjectID `bson:"_id"` | |
Prefered_name *string `json:"prefered_name" validate:"required,min=2,max=100"` | |
Password *string `json:"Password" validate:"required,min=6""` | |
Email *string `json:"email" validate:"email,required"` | |
Token *string `json:"token"` | |
EmailVerified bool `json:"email_verified"` | |
Domain *string `json:"domain"` | |
Icon string `json:"icon"` | |
LO_note string `json:"lo_note"` | |
FM_size string `json:"fm_size"` | |
Refresh_token *string `json:"refresh_token"` | |
Created_at time.Time `json:"created_at"` | |
Updated_at time.Time `json:"updated_at"` | |
User_id string `json:"user_id"` | |
Theme_Dark bool `json:"theme_dark"` | |
Two_Fa bool `json:"two_fa"` | |
Settings string `json:"settings"` | |
NotesTree NotesInTree `json:"notes_tree"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment