Perbaikan Lanjutan
This commit is contained in:
32
internal/models/aplicare/reference/reference.go
Normal file
32
internal/models/aplicare/reference/reference.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package aplicare
|
||||
|
||||
import "api-service/internal/models"
|
||||
|
||||
// === REFERENSI MODELS ===
|
||||
|
||||
// ReferensiRequest represents referensi lookup request
|
||||
type ReferensiRequest struct {
|
||||
models.BaseRequest
|
||||
JenisReferensi string `json:"jenis_referensi" validate:"required,oneof=diagnosa procedure obat alkes faskes dokter poli"`
|
||||
Keyword string `json:"keyword,omitempty"`
|
||||
KodeReferensi string `json:"kode_referensi,omitempty"`
|
||||
models.PaginationRequest
|
||||
}
|
||||
|
||||
// ReferensiData represents referensi information
|
||||
type ReferensiData struct {
|
||||
Kode string `json:"kode"`
|
||||
Nama string `json:"nama"`
|
||||
Kategori string `json:"kategori,omitempty"`
|
||||
Status string `json:"status"`
|
||||
TglBerlaku string `json:"tgl_berlaku,omitempty"`
|
||||
TglBerakhir string `json:"tgl_berakhir,omitempty"`
|
||||
Keterangan string `json:"keterangan,omitempty"`
|
||||
}
|
||||
|
||||
// ReferensiResponse represents referensi API response
|
||||
type ReferensiResponse struct {
|
||||
models.BaseResponse
|
||||
Data []ReferensiData `json:"data,omitempty"`
|
||||
Pagination *models.PaginationResponse `json:"pagination,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user