Merge pull request #149 from dikstub-rssa/feat/sync-installation

Feat/sync installation
This commit is contained in:
Dwi Atmoko Purbo Sakti
2025-11-14 10:12:43 +07:00
committed by GitHub
39 changed files with 1266 additions and 194 deletions

No files matched your search

@@ -8,6 +8,7 @@ import (
)
type CreateDto struct {
Id *uint `json:"id"`
Code *string `json:"code" validate:"maxLength=10"`
Name string `json:"name" validate:"maxLength=50"`
EncounterClass_Code ere.EncounterClassCode `json:"encounterClass_code" validate:"maxLength=10"`
@@ -16,6 +16,7 @@ type (
DataVerifiedCode string
CrudCode string
DataApprovalCode string
ProcessStatusCode string
)
const (
@@ -102,6 +103,9 @@ const (
DACNew DataApprovalCode = "new"
DACApproved DataApprovalCode = "approved"
DACRejected DataApprovalCode = "rejected"
PSCSuccess ProcessStatusCode = "success"
PSCFailed ProcessStatusCode = "failed"
)
func GetDayCodes() map[DayCode]string {
@@ -0,0 +1,12 @@
package installation
type MInstalasi struct {
No_Instalasi uint `json:"no_instalasi" gorm:"primaryKey;autoIncrement;column:no_instalasi"`
Nama_Instalasi string `json:"nama_instalasi" gorm:"column:nama_instalasi"`
Status_Rawat_Inap uint `json:"status_rawat_inap" gorm:"column:status_rawat_inap"`
St_Aktif uint `json:"st_aktif" gorm:"column:st_aktif"`
}
func (MInstalasi) TableName() string {
return "m_instalasi"
}
@@ -0,0 +1,29 @@
package installation
import (
ecore "simrs-vx/internal/domain/base-entities/core"
erc "simrs-vx/internal/domain/references/common"
"time"
)
type InstallationLink struct {
ecore.Main
Simx_Id uint `json:"simx_id" gorm:"unique"`
Simgos_Id uint `json:"simgos_id" gorm:"unique"`
}
type InstallationSimxLog struct {
ecore.Main
Value *string `json:"value"`
Date *time.Time `json:"date"`
Status erc.ProcessStatusCode `json:"status"`
ErrMessage *string `json:"errMessage"`
}
type InstallationSimgosLog struct {
ecore.Main
Value *string `json:"value"`
Date *time.Time `json:"date"`
Status erc.ProcessStatusCode `json:"status"`
ErrMessage *string `json:"errMessage"`
}
+12
View File
@@ -0,0 +1,12 @@
package log
import (
erc "simrs-vx/internal/domain/references/common"
)
type SimxLogDto struct {
Payload any `json:"payload"`
IsSuccess bool `json:"isSuccess"`
ErrMessage *string `json:"errMessage"`
Method erc.CrudCode `json:"method"`
}