FIX[BE]: period and adjustment helper to function

This commit is contained in:
ragilap
2025-10-16 16:44:26 +07:00
parent 62a1011a4b
commit 8c0790627a
3 changed files with 18 additions and 1 deletions
@@ -13,6 +13,7 @@ import (
type KandangBaseDTO struct {
Id uint `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Location *locationDTO.LocationBaseDTO `json:"location"`
Pic *userDTO.UserBaseDTO `json:"pic"`
}
@@ -46,6 +47,7 @@ func ToKandangBaseDTO(e entity.Kandang) KandangBaseDTO {
return KandangBaseDTO{
Id: e.Id,
Name: e.Name,
Status: e.Status,
Location: location,
Pic: pic,
}