package mapper

import (
	"jaecoo-be/app/database/entity"
	res "jaecoo-be/app/module/districts/response"
)

func DistrictsResponseMapper(districtsReq *entity.Districts) (districtsRes *res.DistrictsResponse) {
	if districtsReq != nil {
		districtsRes = &res.DistrictsResponse{
			ID:     districtsReq.ID,
			DisNam: districtsReq.DisName,
			CityId: districtsReq.CityId,
		}
	}
	return districtsRes
}
