fix code crud user and insert master data for fhir
This commit is contained in:
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package master_data
|
||||
|
||||
type ReqInsertData struct {
|
||||
ID string `bson:"_id"`
|
||||
Table string `bson:"table"`
|
||||
System string `bson:"system"`
|
||||
Code string `bson:"code"`
|
||||
Display string `bson:"display"`
|
||||
}
|
||||
|
||||
type ReqInsertDataMaster struct {
|
||||
ID string `bson:"_id"`
|
||||
System string `bson:"system"`
|
||||
Code string `bson:"code"`
|
||||
Display string `bson:"display"`
|
||||
}
|
||||
+26
-8
@@ -1,15 +1,33 @@
|
||||
package user
|
||||
|
||||
type User struct {
|
||||
ID string `bson:"_id"`
|
||||
Name string `bson:"name"`
|
||||
Age int `bson:"age"`
|
||||
Address string `bson:"address"`
|
||||
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"`
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user