Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/screening-193
This commit is contained in:
@@ -62,6 +62,8 @@ type ResponseDto struct {
|
||||
Uom *eu.Uom `json:"uom,omitempty"`
|
||||
Infra_Code *string `json:"infra_code"`
|
||||
Stock *int `json:"stock"`
|
||||
BuyingPrice *float64 `json:"buyingPrice"`
|
||||
SellingPrice *float64 `json:"sellingPrice"`
|
||||
}
|
||||
|
||||
func (d Item) ToResponse() ResponseDto {
|
||||
@@ -73,6 +75,8 @@ func (d Item) ToResponse() ResponseDto {
|
||||
Uom: d.Uom,
|
||||
Infra_Code: d.Infra_Code,
|
||||
Stock: d.Stock,
|
||||
BuyingPrice: d.BuyingPrice,
|
||||
SellingPrice: d.SellingPrice,
|
||||
}
|
||||
resp.Main = d.Main
|
||||
return resp
|
||||
|
||||
@@ -16,4 +16,6 @@ type Item struct {
|
||||
Uom *eu.Uom `json:"uom,omitempty" gorm:"foreignKey:Uom_Code;references:Code"`
|
||||
Infra_Code *string `json:"infra_code" gorm:"size:10"`
|
||||
Stock *int `json:"stock"`
|
||||
BuyingPrice *float64 `json:"buyingPrice"`
|
||||
SellingPrice *float64 `json:"settlingPrice"`
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package division
|
||||
package mcusrccategory
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
@@ -20,10 +20,10 @@ type ReadListDto struct {
|
||||
}
|
||||
|
||||
type FilterDto struct {
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
Scope_Code *erc.McuScopeCode `json:"scope-code"`
|
||||
Search string `json:"search" gormhelper:"searchColumns=Code,Name"`
|
||||
Code *string `json:"code"`
|
||||
Name *string `json:"name"`
|
||||
Scope_Code *string `json:"scope-code"`
|
||||
Search string `json:"search" gormhelper:"searchColumns=Code,Name"`
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package division
|
||||
package mcusrccategory
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
|
||||
@@ -17,6 +17,6 @@ type Soapi struct {
|
||||
Employee_Id *uint `json:"employee_id"`
|
||||
Employee *eem.Employee `json:"employee,omitempty" gorm:"foreignKey:Employee_Id;references:Id"`
|
||||
Time *time.Time `json:"time"`
|
||||
TypeCode erc.SoapiTypeCode `json:"type_code" gorm:"size:11"`
|
||||
TypeCode erc.SoapiTypeCode `json:"type_code" gorm:"size:15"`
|
||||
Value *string `json:"value"`
|
||||
}
|
||||
|
||||
@@ -133,6 +133,7 @@ const (
|
||||
STCDevRecord SoapiTypeCode = "dev-record" // Catatan Perkembangan
|
||||
STCKfrAdm SoapiTypeCode = "kfr-adm" // soapi untuk kfr
|
||||
STCKfrSeries SoapiTypeCode = "kfr-series" // soapi untuk kfr
|
||||
STCAmbResume SoapiTypeCode = "amb-resume" // Rajal resume
|
||||
|
||||
MATCChemo MedicalActionTypeCode = "chemo"
|
||||
MATCHemo MedicalActionTypeCode = "hemo"
|
||||
@@ -196,8 +197,12 @@ const (
|
||||
TSCTeam TranslatorSrcCode = "team" // Tim Penerjemah
|
||||
TSCFamily TranslatorSrcCode = "family" // Keluarga
|
||||
|
||||
SFTCA ScreeningFormTypeCode = "form-a" // Formu A
|
||||
SFTCB ScreeningFormTypeCode = "form-b" // Formu B
|
||||
SFTCA ScreeningFormTypeCode = "form-a" // Formu A
|
||||
SFTCB ScreeningFormTypeCode = "form-b" // Formu B
|
||||
MSCRadiology McuScopeCode = "radiology"
|
||||
MSCCpLab McuScopeCode = "cp-lab"
|
||||
MSCMicroLab McuScopeCode = "micro-lab"
|
||||
MSCApLab McuScopeCode = "ap-lab"
|
||||
|
||||
SSCSmall SurgerySizeCode = ""
|
||||
SSCMedium SurgerySizeCode = ""
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package synccfg
|
||||
|
||||
var O SyncConsumerUrlCfg = SyncConsumerUrlCfg{} // old
|
||||
|
||||
type SyncConsumerUrlCfg struct {
|
||||
Prefix string `yaml:"prefix"`
|
||||
TargetHost string `yaml:"targetHost"`
|
||||
Enable bool `yaml:"enable"`
|
||||
Source string `yaml:"source"`
|
||||
SecretKey string `yaml:"secretKey"`
|
||||
}
|
||||
Reference in New Issue
Block a user