Merge pull request #43 from dikstub-rssa/fix/anything-moko
fix pagination, filter to show only have children data on division
This commit is contained in:
No files matched your search
@@ -11,11 +11,11 @@ require (
|
|||||||
github.com/jackc/pgx/v5 v5.5.5
|
github.com/jackc/pgx/v5 v5.5.5
|
||||||
github.com/karincake/apem v0.0.17
|
github.com/karincake/apem v0.0.17
|
||||||
github.com/karincake/dodol v0.0.1
|
github.com/karincake/dodol v0.0.1
|
||||||
github.com/karincake/getuk v0.1.0
|
github.com/karincake/getuk v0.1.1
|
||||||
github.com/karincake/hongkue v0.0.4
|
github.com/karincake/hongkue v0.0.4
|
||||||
github.com/karincake/lepet v0.0.1
|
github.com/karincake/lepet v0.0.1
|
||||||
github.com/karincake/risoles v0.0.3
|
github.com/karincake/risoles v0.0.3
|
||||||
github.com/karincake/semprit v0.0.3
|
github.com/karincake/semprit v0.0.6
|
||||||
github.com/karincake/serabi v0.0.14
|
github.com/karincake/serabi v0.0.14
|
||||||
github.com/minio/minio-go/v7 v7.0.95
|
github.com/minio/minio-go/v7 v7.0.95
|
||||||
github.com/rs/zerolog v1.33.0
|
github.com/rs/zerolog v1.33.0
|
||||||
@@ -38,6 +38,7 @@ require (
|
|||||||
github.com/jackc/puddle/v2 v2.2.1 // indirect
|
github.com/jackc/puddle/v2 v2.2.1 // indirect
|
||||||
github.com/jinzhu/inflection v1.0.0 // indirect
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
||||||
github.com/jinzhu/now v1.1.5 // indirect
|
github.com/jinzhu/now v1.1.5 // indirect
|
||||||
|
github.com/karincake/pentol v0.0.3 // indirect
|
||||||
github.com/klauspost/compress v1.18.0 // indirect
|
github.com/klauspost/compress v1.18.0 // indirect
|
||||||
github.com/klauspost/cpuid/v2 v2.2.11 // indirect
|
github.com/klauspost/cpuid/v2 v2.2.11 // indirect
|
||||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||||
|
|||||||
@@ -79,16 +79,18 @@ github.com/karincake/apem v0.0.17 h1:y3WXCr9GWLFFFH4Qyq/VWlWWpijHh5zpTc3Lm96twa4
|
|||||||
github.com/karincake/apem v0.0.17/go.mod h1:cQP2sJfDrLRIiwWoaLWw/z8uAya+DWu/FpmYeinMQXM=
|
github.com/karincake/apem v0.0.17/go.mod h1:cQP2sJfDrLRIiwWoaLWw/z8uAya+DWu/FpmYeinMQXM=
|
||||||
github.com/karincake/dodol v0.0.1 h1:jUXmJh1r0Ei4fmHPZ6IUkoplW/V9d27L63JEl6zudL0=
|
github.com/karincake/dodol v0.0.1 h1:jUXmJh1r0Ei4fmHPZ6IUkoplW/V9d27L63JEl6zudL0=
|
||||||
github.com/karincake/dodol v0.0.1/go.mod h1:2f1NcvkvY0J3GMUkwILNDYVvRUpz0W3lpPp/Ha/Ld24=
|
github.com/karincake/dodol v0.0.1/go.mod h1:2f1NcvkvY0J3GMUkwILNDYVvRUpz0W3lpPp/Ha/Ld24=
|
||||||
github.com/karincake/getuk v0.1.0 h1:jcIsASrr0UDE528GN7Ua6n9UFyRgUypsWh8Or8wzCO0=
|
github.com/karincake/getuk v0.1.1 h1:zygZ9N5tk+sWwiRSo1SmlNwcAdl+qQVxmOG6jbQ7X1g=
|
||||||
github.com/karincake/getuk v0.1.0/go.mod h1:NVnvxSGAkQ/xuq99FzWACvY5efyKPLFla1cKB8czm7c=
|
github.com/karincake/getuk v0.1.1/go.mod h1:NVnvxSGAkQ/xuq99FzWACvY5efyKPLFla1cKB8czm7c=
|
||||||
github.com/karincake/hongkue v0.0.4 h1:oWthq6cDg5DvDm1Z3e7mCLOATQf+oAdtHxN9OPnCfA8=
|
github.com/karincake/hongkue v0.0.4 h1:oWthq6cDg5DvDm1Z3e7mCLOATQf+oAdtHxN9OPnCfA8=
|
||||||
github.com/karincake/hongkue v0.0.4/go.mod h1:YVi5Lyh3DE+GRHx2OSODOr7FwvLi8U4idvcPHO7yeag=
|
github.com/karincake/hongkue v0.0.4/go.mod h1:YVi5Lyh3DE+GRHx2OSODOr7FwvLi8U4idvcPHO7yeag=
|
||||||
github.com/karincake/lepet v0.0.1 h1:eq/cwn5BBg0jWZ1c/MmvhFIBma0zBpVs2LwkfDOncy4=
|
github.com/karincake/lepet v0.0.1 h1:eq/cwn5BBg0jWZ1c/MmvhFIBma0zBpVs2LwkfDOncy4=
|
||||||
github.com/karincake/lepet v0.0.1/go.mod h1:U84w7olXO3BPJw2Hu6MBonFmJmPKaFjtyAj1HTu3z1A=
|
github.com/karincake/lepet v0.0.1/go.mod h1:U84w7olXO3BPJw2Hu6MBonFmJmPKaFjtyAj1HTu3z1A=
|
||||||
|
github.com/karincake/pentol v0.0.3 h1:NgiR101yZuqZjYT7LiUkOgsFS+OzUHxceBpL9RbAXeg=
|
||||||
|
github.com/karincake/pentol v0.0.3/go.mod h1:6F2jlwLkVtNuC0nW/gfdU+B9bZoiIVN+IEdB2WIlKgQ=
|
||||||
github.com/karincake/risoles v0.0.3 h1:7VBShf2yC6NqD0PotQcb0i8Xe6mJeTRrHnE0qzKf7NU=
|
github.com/karincake/risoles v0.0.3 h1:7VBShf2yC6NqD0PotQcb0i8Xe6mJeTRrHnE0qzKf7NU=
|
||||||
github.com/karincake/risoles v0.0.3/go.mod h1:u4YS+rPp92ODTbGC4RUx4DxKoThnmPjBl1CNdnmKD/c=
|
github.com/karincake/risoles v0.0.3/go.mod h1:u4YS+rPp92ODTbGC4RUx4DxKoThnmPjBl1CNdnmKD/c=
|
||||||
github.com/karincake/semprit v0.0.3 h1:znleGRu73xrHk6a70+jRQgVh9VF3TAhttQz6vfgNdyM=
|
github.com/karincake/semprit v0.0.6 h1:TvY9Np2jEmbGcucbxBO7GzdZ9AiIhSVe5+ki1rgoocE=
|
||||||
github.com/karincake/semprit v0.0.3/go.mod h1:nLtNmWlHkxMKG0IMzqnnfkn1L/RVYGXVW3LchfYQMu8=
|
github.com/karincake/semprit v0.0.6/go.mod h1:pZ63Q2WHw3mrsRPm6LSx999tRD+N8eYzpfN/vP3aEoQ=
|
||||||
github.com/karincake/serabi v0.0.14 h1:yK3nBLRXdoUNSUDIfbZqIQxnZ6U6Ij5QEO8d5QzZzsw=
|
github.com/karincake/serabi v0.0.14 h1:yK3nBLRXdoUNSUDIfbZqIQxnZ6U6Ij5QEO8d5QzZzsw=
|
||||||
github.com/karincake/serabi v0.0.14/go.mod h1:GcnPBWb+UotDxvb/a2CKwourCEyVIL4P9+YxVmZ5zgk=
|
github.com/karincake/serabi v0.0.14/go.mod h1:GcnPBWb+UotDxvb/a2CKwourCEyVIL4P9+YxVmZ5zgk=
|
||||||
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
|
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package core
|
||||||
|
|
||||||
|
type Pagination struct {
|
||||||
|
PageNumber int `json:"page-number"`
|
||||||
|
PageSize int `json:"page-size"`
|
||||||
|
PageNoLimit int `json:"page-no-limit"`
|
||||||
|
}
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
package adime
|
package adime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
eem "simrs-vx/internal/domain/main-entities/employee"
|
eem "simrs-vx/internal/domain/main-entities/employee"
|
||||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||||
|
|
||||||
pa "simrs-vx/pkg/auth-helper"
|
pa "simrs-vx/pkg/auth-helper"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
@@ -20,8 +21,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -29,10 +31,6 @@ type FilterDto struct {
|
|||||||
Employee_Id *uint `json:"employee_id"`
|
Employee_Id *uint `json:"employee_id"`
|
||||||
Time *time.Time `json:"time"`
|
Time *time.Time `json:"time"`
|
||||||
Value *string `json:"value"`
|
Value *string `json:"value"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -13,17 +13,14 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Encounter_Id *uint `json:"encounter_id"`
|
Encounter_Id *uint `json:"encounter_id"`
|
||||||
Class_Code ere.AmbulatoryClassCode `json:"class_code"`
|
Class_Code ere.AmbulatoryClassCode `json:"class_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -25,10 +25,7 @@ type ReadListDto struct {
|
|||||||
Person_PhoneNumber string `json:"person_phoneNumber"`
|
Person_PhoneNumber string `json:"person_phoneNumber"`
|
||||||
PaymentMethod_Code erc.PaymentMethodCode `json:"paymentMethod_code"`
|
PaymentMethod_Code erc.PaymentMethodCode `json:"paymentMethod_code"`
|
||||||
RefNumber string `json:"refNumber"`
|
RefNumber string `json:"refNumber"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -19,18 +19,15 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Encounter_Id *uint `json:"encounter_id"`
|
Encounter_Id *uint `json:"encounter_id"`
|
||||||
Unit_Id *uint `json:"unit_id"`
|
Unit_Id *uint `json:"unit_id"`
|
||||||
Doctor_Id *uint `json:"doctor_id"`
|
Doctor_Id *uint `json:"doctor_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -20,10 +20,7 @@ type ReadListDto struct {
|
|||||||
Parent_Id *uint16 `json:"parent_id"`
|
Parent_Id *uint16 `json:"parent_id"`
|
||||||
Type_Code string `json:"type_code"`
|
Type_Code string `json:"type_code"`
|
||||||
Queue_Code string `json:"queue_code"`
|
Queue_Code string `json:"queue_code"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -14,18 +14,15 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
DeviceOrder_Id *uint `json:"deviceOrder_id"`
|
DeviceOrder_Id *uint `json:"deviceOrder_id"`
|
||||||
Device_Id *uint `json:"device_id"`
|
Device_Id *uint `json:"device_id"`
|
||||||
Count uint8 `json:"count"`
|
Count uint8 `json:"count"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -20,17 +20,15 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Encounter_Id *uint `json:"encounter_id"`
|
Encounter_Id *uint `json:"encounter_id"`
|
||||||
Status_Code erc.DataStatusCode `json:"status_code"`
|
Status_Code erc.DataStatusCode `json:"status_code"`
|
||||||
|
Doctor_Id *uint `json:"doctor_id"`
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -17,9 +17,10 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -28,10 +29,6 @@ type FilterDto struct {
|
|||||||
Uom_Code string `json:"uom_code"`
|
Uom_Code string `json:"uom_code"`
|
||||||
Infra_Id *uint16 `json:"infra_id"`
|
Infra_Id *uint16 `json:"infra_id"`
|
||||||
Item_Id *uint `json:"item_id"`
|
Item_Id *uint `json:"item_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -11,13 +11,10 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
IndName string `json:"indName"`
|
IndName string `json:"indName"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
package district
|
package district
|
||||||
|
|
||||||
import ev "simrs-vx/internal/domain/main-entities/village"
|
import (
|
||||||
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
|
ev "simrs-vx/internal/domain/main-entities/village"
|
||||||
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
Regency_Code string `json:"regency_code" validate:"numeric;maxLength=4"`
|
Regency_Code string `json:"regency_code" validate:"numeric;maxLength=4"`
|
||||||
@@ -12,10 +15,7 @@ type ReadListDto struct {
|
|||||||
Regency_Code string `json:"regency_code"`
|
Regency_Code string `json:"regency_code"`
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -13,18 +13,15 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Division_Id *uint16 `json:"division_id"`
|
Division_Id *uint16 `json:"division_id"`
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -12,19 +12,17 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
|
OnlyHaveChildren bool `json:"only-have-children"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Parent_Id *uint16 `json:"parent_id"`
|
Parent_Id *uint16 `json:"parent_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -16,8 +16,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -25,10 +26,6 @@ type FilterDto struct {
|
|||||||
FeeType_Code *ero.DoctorFeeTypeCode `json:"feeType_code"`
|
FeeType_Code *ero.DoctorFeeTypeCode `json:"feeType_code"`
|
||||||
Price *float64 `json:"price"`
|
Price *float64 `json:"price"`
|
||||||
Item_Id *uint `json:"item_id"`
|
Item_Id *uint `json:"item_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -19,8 +19,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -30,10 +31,6 @@ type FilterDto struct {
|
|||||||
Unit_Id *uint `json:"unit_id"`
|
Unit_Id *uint `json:"unit_id"`
|
||||||
Specialist_Id *uint16 `json:"specialist_id"`
|
Specialist_Id *uint16 `json:"specialist_id"`
|
||||||
Subspecialist_Id *uint16 `json:"subspecialist_id"`
|
Subspecialist_Id *uint16 `json:"subspecialist_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -13,17 +13,14 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Encounter_Id *uint `json:"encounter_id"`
|
Encounter_Id *uint `json:"encounter_id"`
|
||||||
Class_Code ere.EmergencyClassCode `json:"class_code"`
|
Class_Code ere.EmergencyClassCode `json:"class_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
ed "simrs-vx/internal/domain/main-entities/division"
|
ed "simrs-vx/internal/domain/main-entities/division"
|
||||||
ep "simrs-vx/internal/domain/main-entities/person"
|
ep "simrs-vx/internal/domain/main-entities/person"
|
||||||
eu "simrs-vx/internal/domain/main-entities/user"
|
eu "simrs-vx/internal/domain/main-entities/user"
|
||||||
|
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -18,8 +19,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -28,10 +30,6 @@ type FilterDto struct {
|
|||||||
Division_Code *string `json:"division_code"`
|
Division_Code *string `json:"division_code"`
|
||||||
Number *string `json:"number"`
|
Number *string `json:"number"`
|
||||||
Status_Code erc.ActiveStatusCode `json:"status_code"`
|
Status_Code erc.ActiveStatusCode `json:"status_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package encounter
|
package encounter
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
ea "simrs-vx/internal/domain/main-entities/appointment"
|
ea "simrs-vx/internal/domain/main-entities/appointment"
|
||||||
ed "simrs-vx/internal/domain/main-entities/doctor"
|
ed "simrs-vx/internal/domain/main-entities/doctor"
|
||||||
@@ -8,9 +10,9 @@ import (
|
|||||||
es "simrs-vx/internal/domain/main-entities/specialist"
|
es "simrs-vx/internal/domain/main-entities/specialist"
|
||||||
ess "simrs-vx/internal/domain/main-entities/subspecialist"
|
ess "simrs-vx/internal/domain/main-entities/subspecialist"
|
||||||
eu "simrs-vx/internal/domain/main-entities/unit"
|
eu "simrs-vx/internal/domain/main-entities/unit"
|
||||||
|
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
ere "simrs-vx/internal/domain/references/encounter"
|
ere "simrs-vx/internal/domain/references/encounter"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
@@ -31,8 +33,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -53,10 +56,6 @@ type FilterDto struct {
|
|||||||
MedicalDischargeEducation *string `json:"medicalDischargeEducation"`
|
MedicalDischargeEducation *string `json:"medicalDischargeEducation"`
|
||||||
AdmDischargeEducation *string `json:"admDischargeEducation"`
|
AdmDischargeEducation *string `json:"admDischargeEducation"`
|
||||||
DischargeReason *string `json:"dischargeReason"`
|
DischargeReason *string `json:"dischargeReason"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -10,13 +10,10 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -21,9 +21,10 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -32,10 +33,6 @@ type FilterDto struct {
|
|||||||
InfraGroup_Code ero.InfraGroupCode `json:"infraGroup_code"`
|
InfraGroup_Code ero.InfraGroupCode `json:"infraGroup_code"`
|
||||||
Parent_Id *uint16 `json:"parent_id"`
|
Parent_Id *uint16 `json:"parent_id"`
|
||||||
Item_Id *uint `json:"item_id"`
|
Item_Id *uint `json:"item_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import (
|
|||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||||
ei "simrs-vx/internal/domain/main-entities/infra"
|
ei "simrs-vx/internal/domain/main-entities/infra"
|
||||||
|
|
||||||
ere "simrs-vx/internal/domain/references/encounter"
|
ere "simrs-vx/internal/domain/references/encounter"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -15,18 +16,15 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Encounter_Id *uint `json:"encounter_id"`
|
Encounter_Id *uint `json:"encounter_id"`
|
||||||
Class_Code ere.InpatientClassCode `json:"class_code"`
|
Class_Code ere.InpatientClassCode `json:"class_code"`
|
||||||
Infra_Id *uint16 `json:"infra_id"`
|
Infra_Id *uint16 `json:"infra_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package installation
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
|
|
||||||
ere "simrs-vx/internal/domain/references/encounter"
|
ere "simrs-vx/internal/domain/references/encounter"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -15,10 +16,7 @@ type ReadListDto struct {
|
|||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
EncounterClass_Code ere.EncounterClassCode `json:"encounterClass_code"`
|
EncounterClass_Code ere.EncounterClassCode `json:"encounterClass_code"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -15,8 +15,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -25,10 +26,6 @@ type FilterDto struct {
|
|||||||
Regency_Code *string `json:"regency_code"`
|
Regency_Code *string `json:"regency_code"`
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
PhoneNumber string `json:"phoneNumber"`
|
PhoneNumber string `json:"phoneNumber"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -14,18 +14,15 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Item_Id *uint `json:"item_id"`
|
Item_Id *uint `json:"item_id"`
|
||||||
Price float64 `json:"price"`
|
Price float64 `json:"price"`
|
||||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -17,8 +17,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -28,10 +29,6 @@ type FilterDto struct {
|
|||||||
Uom_Code *string `json:"uom_code"`
|
Uom_Code *string `json:"uom_code"`
|
||||||
Infra_Id *uint16 `json:"infra_id"`
|
Infra_Id *uint16 `json:"infra_id"`
|
||||||
Stock *int `json:"stock"`
|
Stock *int `json:"stock"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -12,17 +12,14 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Employee_Id *uint `json:"employee_id"`
|
Employee_Id *uint `json:"employee_id"`
|
||||||
IHS_Number *string `json:"ihs_number"`
|
IHS_Number *string `json:"ihs_number"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -10,13 +10,10 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -14,18 +14,15 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
MaterialOrder_Id *uint `json:"materialOrder_id"`
|
MaterialOrder_Id *uint `json:"materialOrder_id"`
|
||||||
Material_Id *uint `json:"material_id"`
|
Material_Id *uint `json:"material_id"`
|
||||||
Count *uint16 `json:"count"`
|
Count *uint16 `json:"count"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -20,17 +20,14 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Encounter_Id *uint `json:"encounter_id"`
|
Encounter_Id *uint `json:"encounter_id"`
|
||||||
Status_Code erc.DataStatusCode `json:"status_code"`
|
Status_Code erc.DataStatusCode `json:"status_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -18,9 +18,10 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -30,10 +31,6 @@ type FilterDto struct {
|
|||||||
Infra_Id *uint16 `json:"infra_id"`
|
Infra_Id *uint16 `json:"infra_id"`
|
||||||
Stock *int `json:"stock"`
|
Stock *int `json:"stock"`
|
||||||
Item_Id *uint `json:"item_id"`
|
Item_Id *uint `json:"item_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -18,8 +18,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -27,10 +28,6 @@ type FilterDto struct {
|
|||||||
McuSrc_Id *uint `json:"mcuSrc_id"`
|
McuSrc_Id *uint `json:"mcuSrc_id"`
|
||||||
Result *string `json:"result"`
|
Result *string `json:"result"`
|
||||||
Status_Code erc.DataStatusCode `json:"status_code"`
|
Status_Code erc.DataStatusCode `json:"status_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint `json:"id"`
|
Id uint `json:"id"`
|
||||||
|
|||||||
@@ -16,8 +16,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -25,10 +26,6 @@ type FilterDto struct {
|
|||||||
McuSrc_Id *uint `json:"mcuSrc_id"`
|
McuSrc_Id *uint `json:"mcuSrc_id"`
|
||||||
Result *string `json:"result"`
|
Result *string `json:"result"`
|
||||||
Status_Code erc.DataStatusCode `json:"status_code"`
|
Status_Code erc.DataStatusCode `json:"status_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint `json:"id"`
|
Id uint `json:"id"`
|
||||||
|
|||||||
@@ -27,8 +27,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -40,10 +41,6 @@ type FilterDto struct {
|
|||||||
Number uint8 `json:"number"`
|
Number uint8 `json:"number"`
|
||||||
Temperature float64 `json:"temperature"`
|
Temperature float64 `json:"temperature"`
|
||||||
McuUrgencyLevel_Code ercl.McuUrgencyLevelCode `json:"mcuUrgencyLevel_code""`
|
McuUrgencyLevel_Code ercl.McuUrgencyLevelCode `json:"mcuUrgencyLevel_code""`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint `json:"id"`
|
Id uint `json:"id"`
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package division
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
|
|
||||||
ere "simrs-vx/internal/domain/references/encounter"
|
ere "simrs-vx/internal/domain/references/encounter"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -15,10 +16,7 @@ type ReadListDto struct {
|
|||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Scope_Code *ere.CheckupScopeCode `json:"scope_code"`
|
Scope_Code *ere.CheckupScopeCode `json:"scope_code"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -14,19 +14,16 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
McuSrcCategory_Code *string `json:"mcuSrcCategory_code"`
|
McuSrcCategory_Code *string `json:"mcuSrcCategory_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -15,19 +15,16 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
CheckupCategory_Code *string `json:"checkupCategory_code"`
|
CheckupCategory_Code *string `json:"checkupCategory_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -15,18 +15,15 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
MedicalActionSrc_Id *uint `json:"medicalActionSrc_id"`
|
MedicalActionSrc_Id *uint `json:"medicalActionSrc_id"`
|
||||||
ProcedureSrc_Id *uint `json:"procedureSrc_id"`
|
ProcedureSrc_Id *uint `json:"procedureSrc_id"`
|
||||||
Item_Id *uint `json:"item_id"`
|
Item_Id *uint `json:"item_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -13,19 +13,16 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Item_Id *uint `json:"item_id"`
|
Item_Id *uint `json:"item_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -18,8 +18,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -27,10 +28,6 @@ type FilterDto struct {
|
|||||||
DateTime *time.Time `json:"dateTime"`
|
DateTime *time.Time `json:"dateTime"`
|
||||||
Remain float64 `json:"remain"`
|
Remain float64 `json:"remain"`
|
||||||
Nurse_Id *uint `json:"nurse_id"`
|
Nurse_Id *uint `json:"nurse_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
eme "simrs-vx/internal/domain/main-entities/medication"
|
eme "simrs-vx/internal/domain/main-entities/medication"
|
||||||
em "simrs-vx/internal/domain/main-entities/medicine"
|
em "simrs-vx/internal/domain/main-entities/medicine"
|
||||||
emm "simrs-vx/internal/domain/main-entities/medicine-mix"
|
emm "simrs-vx/internal/domain/main-entities/medicine-mix"
|
||||||
|
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -26,8 +27,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -41,10 +43,6 @@ type FilterDto struct {
|
|||||||
IsRedeemed bool `json:"isRedeemed"`
|
IsRedeemed bool `json:"isRedeemed"`
|
||||||
Quantity float64 `json:"quantity"`
|
Quantity float64 `json:"quantity"`
|
||||||
Note *string `json:"note" gorm:"size:1024"`
|
Note *string `json:"note" gorm:"size:1024"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
package medication
|
package medication
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||||
ep "simrs-vx/internal/domain/main-entities/pharmacist"
|
ep "simrs-vx/internal/domain/main-entities/pharmacist"
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
|
||||||
|
|
||||||
"time"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
|
|
||||||
pa "simrs-vx/pkg/auth-helper"
|
pa "simrs-vx/pkg/auth-helper"
|
||||||
)
|
)
|
||||||
@@ -20,8 +21,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -29,10 +31,6 @@ type FilterDto struct {
|
|||||||
IssuedAt *time.Time `json:"issuedAt"`
|
IssuedAt *time.Time `json:"issuedAt"`
|
||||||
Pharmacist_Id *uint `json:"pharmacist_id"`
|
Pharmacist_Id *uint `json:"pharmacist_id"`
|
||||||
Status_Code erc.DataStatusCode `json:"status_code"`
|
Status_Code erc.DataStatusCode `json:"status_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint `json:"id"`
|
Id uint `json:"id"`
|
||||||
|
|||||||
@@ -10,12 +10,9 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -10,12 +10,9 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -14,8 +14,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -23,10 +24,6 @@ type FilterDto struct {
|
|||||||
Medicine_Id *uint `json:"medicine_id"`
|
Medicine_Id *uint `json:"medicine_id"`
|
||||||
Dose *uint8 `json:"dose"`
|
Dose *uint8 `json:"dose"`
|
||||||
Note *string `json:"note" gom:"size:1024"`
|
Note *string `json:"note" gom:"size:1024"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -12,12 +12,9 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Uom_Code *string `json:"uom_code"`
|
Uom_Code *string `json:"uom_code"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -23,9 +23,10 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -38,10 +39,6 @@ type FilterDto struct {
|
|||||||
Infra_Id *uint16 `json:"infra_id"`
|
Infra_Id *uint16 `json:"infra_id"`
|
||||||
Stock *int `json:"stock"`
|
Stock *int `json:"stock"`
|
||||||
Item_Id *uint `json:"item_id"`
|
Item_Id *uint `json:"item_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -16,8 +16,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -25,10 +26,6 @@ type FilterDto struct {
|
|||||||
IHS_Number *string `json:"ihs_number"`
|
IHS_Number *string `json:"ihs_number"`
|
||||||
Unit_Id *uint16 `json:"unit_id"`
|
Unit_Id *uint16 `json:"unit_id"`
|
||||||
Infra_Id *uint16 `json:"infra_id"`
|
Infra_Id *uint16 `json:"infra_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -12,17 +12,14 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Employee_Id *uint `json:"employee_id"`
|
Employee_Id *uint `json:"employee_id"`
|
||||||
IHS_Number *string `json:"ihs_number"`
|
IHS_Number *string `json:"ihs_number"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import (
|
|||||||
epa "simrs-vx/internal/domain/main-entities/person-address"
|
epa "simrs-vx/internal/domain/main-entities/person-address"
|
||||||
epc "simrs-vx/internal/domain/main-entities/person-contact"
|
epc "simrs-vx/internal/domain/main-entities/person-contact"
|
||||||
epr "simrs-vx/internal/domain/main-entities/person-relative"
|
epr "simrs-vx/internal/domain/main-entities/person-relative"
|
||||||
|
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
ere "simrs-vx/internal/domain/references/encounter"
|
ere "simrs-vx/internal/domain/references/encounter"
|
||||||
)
|
)
|
||||||
@@ -25,8 +26,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -34,10 +36,6 @@ type FilterDto struct {
|
|||||||
RegisteredAt *time.Time `json:"registeredAt"`
|
RegisteredAt *time.Time `json:"registeredAt"`
|
||||||
Status_Code erc.ActiveStatusCode `json:"status_code"`
|
Status_Code erc.ActiveStatusCode `json:"status_code"`
|
||||||
Number *string `json:"number"`
|
Number *string `json:"number"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -13,9 +13,7 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Page int `json:"page"`
|
Pagination ecore.Pagination
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -12,9 +12,7 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Page int `json:"page"`
|
Pagination ecore.Pagination
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -22,8 +22,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -39,10 +40,6 @@ type FilterDto struct {
|
|||||||
Occupation_Code *erp.OcupationCode `json:"occupation_code"`
|
Occupation_Code *erp.OcupationCode `json:"occupation_code"`
|
||||||
Occupation_Name *string `json:"occupation_name"`
|
Occupation_Name *string `json:"occupation_name"`
|
||||||
Responsible bool `json:"responsible"`
|
Responsible bool `json:"responsible"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
package person
|
package person
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
ee "simrs-vx/internal/domain/main-entities/ethnic"
|
ee "simrs-vx/internal/domain/main-entities/ethnic"
|
||||||
epa "simrs-vx/internal/domain/main-entities/person-address"
|
epa "simrs-vx/internal/domain/main-entities/person-address"
|
||||||
epc "simrs-vx/internal/domain/main-entities/person-contact"
|
epc "simrs-vx/internal/domain/main-entities/person-contact"
|
||||||
epr "simrs-vx/internal/domain/main-entities/person-relative"
|
epr "simrs-vx/internal/domain/main-entities/person-relative"
|
||||||
|
|
||||||
erp "simrs-vx/internal/domain/references/person"
|
erp "simrs-vx/internal/domain/references/person"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
@@ -30,8 +32,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -50,10 +53,6 @@ type FilterDto struct {
|
|||||||
Ocupation_Name *string `json:"occupation_name"`
|
Ocupation_Name *string `json:"occupation_name"`
|
||||||
Ethnic_Code *string `json:"ethnic_code"`
|
Ethnic_Code *string `json:"ethnic_code"`
|
||||||
Language_Code *string `json:"language_code"`
|
Language_Code *string `json:"language_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -12,17 +12,14 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Employee_Id *uint `json:"employee_id"`
|
Employee_Id *uint `json:"employee_id"`
|
||||||
IHS_Number *string `json:"ihs_number"`
|
IHS_Number *string `json:"ihs_number"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -14,10 +14,7 @@ type ReadListDto struct {
|
|||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Regency_Code string `json:"regency_code"`
|
Regency_Code string `json:"regency_code"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -15,8 +15,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -25,10 +26,6 @@ type FilterDto struct {
|
|||||||
Day_Code *erc.DayCode `json:"day_code"`
|
Day_Code *erc.DayCode `json:"day_code"`
|
||||||
StartTime *string `json:"startTime"`
|
StartTime *string `json:"startTime"`
|
||||||
EndTime *string `json:"endTime"`
|
EndTime *string `json:"endTime"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
em "simrs-vx/internal/domain/main-entities/medicine"
|
em "simrs-vx/internal/domain/main-entities/medicine"
|
||||||
emm "simrs-vx/internal/domain/main-entities/medicine-mix"
|
emm "simrs-vx/internal/domain/main-entities/medicine-mix"
|
||||||
ep "simrs-vx/internal/domain/main-entities/prescription"
|
ep "simrs-vx/internal/domain/main-entities/prescription"
|
||||||
|
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -24,8 +25,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -37,10 +39,6 @@ type FilterDto struct {
|
|||||||
Interval uint8 `json:"interval"`
|
Interval uint8 `json:"interval"`
|
||||||
IntervalUnit_Code erc.TimeUnitCode `json:"intervalUnit_code"`
|
IntervalUnit_Code erc.TimeUnitCode `json:"intervalUnit_code"`
|
||||||
Quantity float64 `json:"quantity"`
|
Quantity float64 `json:"quantity"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint16 `json:"id"`
|
Id uint16 `json:"id"`
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
package prescription
|
package prescription
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
ed "simrs-vx/internal/domain/main-entities/doctor"
|
ed "simrs-vx/internal/domain/main-entities/doctor"
|
||||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||||
|
|
||||||
"time"
|
|
||||||
|
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -19,8 +19,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -28,10 +29,6 @@ type FilterDto struct {
|
|||||||
Doctor_Id *uint `json:"doctor_id"`
|
Doctor_Id *uint `json:"doctor_id"`
|
||||||
IssuedAt *time.Time `json:"issuedAt"`
|
IssuedAt *time.Time `json:"issuedAt"`
|
||||||
Status_Code *erc.DataStatusCode `json:"status_code"`
|
Status_Code *erc.DataStatusCode `json:"status_code"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
Id uint `json:"id"`
|
Id uint `json:"id"`
|
||||||
|
|||||||
@@ -11,14 +11,11 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
IndName string `json:"indName"`
|
IndName string `json:"indName"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
package province
|
package province
|
||||||
|
|
||||||
|
import (
|
||||||
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
Code string `json:"code" validate:"required;minLength=2;maxLength=2"`
|
Code string `json:"code" validate:"required;minLength=2;maxLength=2"`
|
||||||
Name string `json:"name" validate:"required;maxLength=10"`
|
Name string `json:"name" validate:"required;maxLength=10"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
package regency
|
package regency
|
||||||
|
|
||||||
import ed "simrs-vx/internal/domain/main-entities/district"
|
import (
|
||||||
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
|
ed "simrs-vx/internal/domain/main-entities/district"
|
||||||
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
Province_Code string `json:"province_code" validate:"numeric;maxLength=2"`
|
Province_Code string `json:"province_code" validate:"numeric;maxLength=2"`
|
||||||
@@ -12,10 +15,7 @@ type ReadListDto struct {
|
|||||||
Province_Code string `json:"province_code"`
|
Province_Code string `json:"province_code"`
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -17,8 +17,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -26,10 +27,6 @@ type FilterDto struct {
|
|||||||
Unit_Id *uint16 `json:"unit_id"`
|
Unit_Id *uint16 `json:"unit_id"`
|
||||||
Specialist_Id *uint16 `json:"specialist_id"`
|
Specialist_Id *uint16 `json:"specialist_id"`
|
||||||
Subspecialist_Id *uint16 `json:"subspecialist_id"`
|
Subspecialist_Id *uint16 `json:"subspecialist_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
package sbar
|
package sbar
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
eem "simrs-vx/internal/domain/main-entities/employee"
|
eem "simrs-vx/internal/domain/main-entities/employee"
|
||||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||||
|
|
||||||
pa "simrs-vx/pkg/auth-helper"
|
pa "simrs-vx/pkg/auth-helper"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
@@ -20,8 +21,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -29,10 +31,6 @@ type FilterDto struct {
|
|||||||
Employee_Id *uint `json:"employee_id"`
|
Employee_Id *uint `json:"employee_id"`
|
||||||
Time *time.Time `json:"time"`
|
Time *time.Time `json:"time"`
|
||||||
Value *string `json:"value"`
|
Value *string `json:"value"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -24,8 +24,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -34,10 +35,6 @@ type FilterDto struct {
|
|||||||
Time *time.Time `json:"time"`
|
Time *time.Time `json:"time"`
|
||||||
TypeCode erc.SoapiTypeCode `json:"typeCode"`
|
TypeCode erc.SoapiTypeCode `json:"typeCode"`
|
||||||
Value *string `json:"value"`
|
Value *string `json:"value"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -17,8 +17,9 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
@@ -26,10 +27,6 @@ type FilterDto struct {
|
|||||||
Specialist_Id *uint16 `json:"specialist_id"`
|
Specialist_Id *uint16 `json:"specialist_id"`
|
||||||
Subspecialist_Id *uint16 `json:"subspecialist_id"`
|
Subspecialist_Id *uint16 `json:"subspecialist_id"`
|
||||||
User_Id *uint `json:"user_id"`
|
User_Id *uint `json:"user_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -12,19 +12,16 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Unit_Id *uint16 `json:"unit_id"`
|
Unit_Id *uint16 `json:"unit_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -12,19 +12,16 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Code *string `json:"code"`
|
Code *string `json:"code"`
|
||||||
Name *string `json:"name"`
|
Name *string `json:"name"`
|
||||||
Specialist_Id *uint16 `json:"specialist_id"`
|
Specialist_Id *uint16 `json:"specialist_id"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -13,19 +13,16 @@ type CreateDto struct {
|
|||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
FilterDto
|
FilterDto
|
||||||
Includes string `json:"includes"`
|
Includes string `json:"includes"`
|
||||||
Preloads []string `json:"-"`
|
Preloads []string `json:"-"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
type FilterDto struct {
|
type FilterDto struct {
|
||||||
Installation_Id *uint16 `json:"installation_id"`
|
Installation_Id *uint16 `json:"installation_id"`
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -10,13 +10,10 @@ type CreateDto struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Search string `json:"search"`
|
Search string `json:"search"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
ep "simrs-vx/internal/domain/main-entities/person"
|
ep "simrs-vx/internal/domain/main-entities/person"
|
||||||
epa "simrs-vx/internal/domain/main-entities/person-address"
|
epa "simrs-vx/internal/domain/main-entities/person-address"
|
||||||
epc "simrs-vx/internal/domain/main-entities/person-contact"
|
epc "simrs-vx/internal/domain/main-entities/person-contact"
|
||||||
|
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
ero "simrs-vx/internal/domain/references/organization"
|
ero "simrs-vx/internal/domain/references/organization"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
@@ -31,10 +33,7 @@ type CreateDto struct {
|
|||||||
type ReadListDto struct {
|
type ReadListDto struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Status_Code erc.UserStatusCode `json:"status_code"`
|
Status_Code erc.UserStatusCode `json:"status_code"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
package user
|
package user
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
erc "simrs-vx/internal/domain/references/common"
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
ero "simrs-vx/internal/domain/references/organization"
|
ero "simrs-vx/internal/domain/references/organization"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
package village
|
package village
|
||||||
|
|
||||||
|
import (
|
||||||
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
|
)
|
||||||
|
|
||||||
type CreateDto struct {
|
type CreateDto struct {
|
||||||
District_Code string `json:"district_code" validate:"numeric;maxLength=6"`
|
District_Code string `json:"district_code" validate:"numeric;maxLength=6"`
|
||||||
Code string `json:"code" validate:"numeric;maxLength=10"`
|
Code string `json:"code" validate:"numeric;maxLength=10"`
|
||||||
@@ -10,10 +14,7 @@ type ReadListDto struct {
|
|||||||
District_Code string `json:"district_code"`
|
District_Code string `json:"district_code"`
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Pagination ecore.Pagination
|
||||||
Page int `json:"page"`
|
|
||||||
PageSize int `json:"page_size"`
|
|
||||||
NoPagination int `json:"no_pagination"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadDetailDto struct {
|
type ReadDetailDto struct {
|
||||||
|
|||||||
@@ -129,12 +129,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -119,12 +119,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -106,12 +106,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -110,12 +110,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -141,12 +141,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -112,12 +112,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -106,12 +106,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -106,12 +106,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.Di
|
|||||||
|
|
||||||
plh.SearchCodeOrName(input.Search, tx)
|
plh.SearchCodeOrName(input.Search, tx)
|
||||||
|
|
||||||
|
if input.OnlyHaveChildren {
|
||||||
|
tx = tx.Where(`
|
||||||
|
EXISTS (
|
||||||
|
SELECT 1
|
||||||
|
FROM "Division" c
|
||||||
|
WHERE c."Parent_Id" = "Division"."Id"
|
||||||
|
)
|
||||||
|
`)
|
||||||
|
}
|
||||||
|
|
||||||
tx = tx.
|
tx = tx.
|
||||||
Model(&e.Division{}).
|
Model(&e.Division{}).
|
||||||
Scopes(gh.Filter(input.FilterDto)).
|
Scopes(gh.Filter(input.FilterDto)).
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -104,12 +104,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -165,12 +165,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -106,12 +106,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -134,12 +134,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -106,12 +106,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -106,12 +106,13 @@ func ReadList(input e.ReadListDto) (*d.Data, error) {
|
|||||||
|
|
||||||
return &d.Data{
|
return &d.Data{
|
||||||
Meta: d.IS{
|
Meta: d.IS{
|
||||||
"source": source,
|
"source": source,
|
||||||
"structure": "list-data",
|
"structure": "list-data",
|
||||||
"status": "fetched",
|
"status": "fetched",
|
||||||
"page_number": strconv.Itoa(metaList.PageNumber),
|
"page_number": strconv.Itoa(metaList.PageNumber),
|
||||||
"page_size": strconv.Itoa(metaList.PageSize),
|
"page_size": strconv.Itoa(metaList.PageSize),
|
||||||
"record_totalCount": strconv.Itoa(metaList.Count),
|
"record_totalCount": strconv.Itoa(metaList.Count),
|
||||||
|
"record_currentCount": strconv.Itoa(len(dataList)),
|
||||||
},
|
},
|
||||||
Data: e.ToResponseList(dataList),
|
Data: e.ToResponseList(dataList),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
Loaded 100 of 144 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in New Issue
Block a user