package
Version:
v0.0.0-...-b4e23d6
Opens a new window with list of versions in this module.
Published: Nov 23, 2023
License: Unlicense
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Message struct {
Id string `json:"id" bson:"_id"`
OwnerId string `json:"owner_id" bson:"owner_id"`
IsPublic bool `json:"is_public" bson:"is_public"`
Content string `json:"content" bson:"content"`
Password string `json:"password" bson:"password"`
}
type MessageReq struct {
OwnerId primitive.ObjectID `json:"owner_id" bson:"owner_id"`
IsPublic *bool `json:"is_public" bson:"is_public"`
Content *string `json:"content" bson:"content"`
}
type User struct {
Id string `json:"id" bson:"_id"`
Username string `json:"username" bson:"username"`
Password string `json:"password" bson:"password"`
}
type UserReq struct {
Username string `json:"username" bson:"username"`
Password string `json:"password" bson:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.