init project
This commit is contained in:
72
pkg/models/local/local.go
Normal file
72
pkg/models/local/local.go
Normal file
@@ -0,0 +1,72 @@
|
||||
package local
|
||||
|
||||
type StartUpLog struct {
|
||||
ID string `bson:"_id"`
|
||||
HostName string `bson:"hostname"`
|
||||
StartTime string `bson:"start_time"`
|
||||
StartTimeLocal string `bson:"start_time_local"`
|
||||
CmdLine CmdLine `bson:"cmdline"`
|
||||
Pid int `bson:"pid"`
|
||||
BuildInfo BuildInfo `bson:"buildinfo"`
|
||||
}
|
||||
|
||||
type CmdLine struct {
|
||||
Net Net `bson:"net"`
|
||||
ProcessManagement ProcessManagement `bson:"processManagement"`
|
||||
SystemLog SystemLog `bson:"systemLog"`
|
||||
}
|
||||
|
||||
type Net struct {
|
||||
BindIP string `bson:"bindIp"`
|
||||
Port int `bson:"port"`
|
||||
Tls TLS `bson:"tls"`
|
||||
}
|
||||
|
||||
type TLS struct {
|
||||
Mode string `bson:"mode"`
|
||||
}
|
||||
|
||||
type ProcessManagement struct {
|
||||
Fork bool `bson:"fork"`
|
||||
PidFilePath string `bson:"pidFilePath"`
|
||||
}
|
||||
|
||||
type SystemLog struct {
|
||||
Destination string `bson:"destination"`
|
||||
LogAppend bool `bson:"logAppend"`
|
||||
Path string `bson:"path"`
|
||||
}
|
||||
|
||||
type BuildInfo struct {
|
||||
Version string `bson:"version"`
|
||||
GitVersion string `bson:"gitVersion"`
|
||||
Modules []string `bson:"modules"`
|
||||
Allocator string `bson:"allocator"`
|
||||
JavaScriptEngine string `bson:"javaScriptEngine"`
|
||||
SysInfo string `bson:"sysInfo"`
|
||||
VersionArray []int `bson:"versionArray"`
|
||||
OpenSSL OpenSSL `bson:"openssl"`
|
||||
BuildEnvironment BuildEnvironment `bson:"buildEnvironment"`
|
||||
Bits int `bson:"bits"`
|
||||
Debug bool `bson:"debug"`
|
||||
MaxBsonObjectSize int `bson:"maxBsonObjectSize"`
|
||||
StorageEngines []string `bson:"storageEngines"`
|
||||
}
|
||||
|
||||
type OpenSSL struct {
|
||||
Running string `bson:"running"`
|
||||
Compiled string `bson:"compiled"`
|
||||
}
|
||||
|
||||
type BuildEnvironment struct {
|
||||
DistMod string `bson:"distmod"`
|
||||
Distarch string `bson:"distarch"`
|
||||
CC string `bson:"cc"`
|
||||
CCFlags string `bson:"ccflags"`
|
||||
CXX string `bson:"cxx"`
|
||||
CXXFlags string `bson:"cxxflags"`
|
||||
LinkFlags string `bson:"linkflags"`
|
||||
TargetArch string `bson:"target_arch"`
|
||||
TargetOS string `bson:"target_os"`
|
||||
CPPDefines string `bson:"cppdefines"`
|
||||
}
|
||||
16
pkg/models/master_data/master_data.go
Normal file
16
pkg/models/master_data/master_data.go
Normal 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"`
|
||||
}
|
||||
11
pkg/models/patient/patient.go
Normal file
11
pkg/models/patient/patient.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package patient
|
||||
|
||||
type Patient struct {
|
||||
ID string `bson:"_id"`
|
||||
NoRM string `bson:"norm"`
|
||||
Name string `bson:"name"`
|
||||
Telecom string `bson:"telecom"`
|
||||
Gender string `bson:"gender"`
|
||||
BirthDate string `bson:"birthDate"`
|
||||
Address string `bson:"address"`
|
||||
}
|
||||
33
pkg/models/user/user.go
Normal file
33
pkg/models/user/user.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user