package mapper

import (
	"campaign-pool-be/app/database/entity"
	res "campaign-pool-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
}
