fix code crud user and insert master data for fhir

This commit is contained in:
2025-03-07 11:11:44 +07:00
parent 26271ef9e3
commit a0fdf0240f
18 changed files with 940 additions and 54 deletions

No files matched your search

+16
View File
@@ -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
View File
@@ -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"`
}