init project

This commit is contained in:
2025-03-19 13:47:29 +07:00
parent 80d1f95f66
commit f6a2cf3a5b
22 changed files with 677 additions and 24 deletions

33
pkg/models/user/user.go Normal file
View File

@@ -0,0 +1,33 @@
package user
type User struct {
ID string `bson:"_id"`
Name string `bson:"name"`
Age int `bson:"age"`
Address string `bson:"address"`
Gender string `bson:"gender"`
Religion string `bson:"religion"`
}
type ReqInsertUser struct {
ID string `bson:"_id"`
Name string `bson:"name"`
Age int `bson:"age"`
Address string `bson:"address"`
Gender string `bson:"gender"`
Religion string `bson:"religion"`
}
// USING INSERT AND UPDATE
type ReqUpdateUser struct {
ID string `json:"_id"`
Name string `json:"name"`
Age int `json:"age"`
Address string `json:"address"`
Gender string `json:"gender"`
Religion string `json:"religion"`
}
type ReqDeleteUser struct {
ID string `json:"_id"`
}