Documentation ¶
Index ¶
- func MapDrivingLicense(drivingLicense domain.DrivingLicense) entities.DrivingLicense
- func MapDrivingLicenseReq(drivingLicense entities.DrivingLicense) domain.DrivingLicense
- func MapSensorData(src []byte) (*domain.MqttPayload, error)
- func MapSensorStatus(src domain.SensorStatus) entities.SensorStatus
- func MapSoilCondition(condition domain.TreeSoilCondition) entities.TreeSoilCondition
- func MapSoilConditionReq(condition entities.TreeSoilCondition) domain.TreeSoilCondition
- func MapTreeClusterToID(treeCluster *domain.TreeCluster) *int32
- func MapVehicleStatus(vehicleStatus domain.VehicleStatus) entities.VehicleStatus
- func MapVehicleStatusReq(vehicleStatus entities.VehicleStatus) domain.VehicleStatus
- func MapVehicleType(vehicleType domain.VehicleType) entities.VehicleType
- func MapVehicleTypeReq(vehicleType entities.VehicleType) domain.VehicleType
- func MapWateringStatus(status domain.WateringStatus) entities.WateringStatus
- type InfoHTTPMapper
- type RegionHTTPMapper
- type SensorHTTPMapper
- type TreeClusterHTTPMapper
- type TreeHTTPMapper
- type VehicleHTTPMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapDrivingLicense ¶
func MapDrivingLicense(drivingLicense domain.DrivingLicense) entities.DrivingLicense
func MapDrivingLicenseReq ¶
func MapDrivingLicenseReq(drivingLicense entities.DrivingLicense) domain.DrivingLicense
func MapSensorData ¶
func MapSensorData(src []byte) (*domain.MqttPayload, error)
func MapSensorStatus ¶
func MapSensorStatus(src domain.SensorStatus) entities.SensorStatus
func MapSoilCondition ¶
func MapSoilCondition(condition domain.TreeSoilCondition) entities.TreeSoilCondition
func MapSoilConditionReq ¶
func MapSoilConditionReq(condition entities.TreeSoilCondition) domain.TreeSoilCondition
func MapTreeClusterToID ¶
func MapTreeClusterToID(treeCluster *domain.TreeCluster) *int32
func MapVehicleStatus ¶
func MapVehicleStatus(vehicleStatus domain.VehicleStatus) entities.VehicleStatus
func MapVehicleStatusReq ¶
func MapVehicleStatusReq(vehicleStatus entities.VehicleStatus) domain.VehicleStatus
func MapVehicleType ¶
func MapVehicleType(vehicleType domain.VehicleType) entities.VehicleType
func MapVehicleTypeReq ¶
func MapVehicleTypeReq(vehicleType entities.VehicleType) domain.VehicleType
func MapWateringStatus ¶
func MapWateringStatus(status domain.WateringStatus) entities.WateringStatus
Types ¶
type InfoHTTPMapper ¶
type InfoHTTPMapper interface { ToResponse(src *domain.App) *entities.AppInfoResponse FromResponse(src *entities.AppInfoResponse) *domain.App }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTime github.com/green-ecolution/green-ecolution-backend/internal/utils:URLToURL github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeDurationToTimeDuration github.com/green-ecolution/green-ecolution-backend/internal/utils:StringToTime github.com/green-ecolution/green-ecolution-backend/internal/utils:StringToURL github.com/green-ecolution/green-ecolution-backend/internal/utils:StringToNetIP goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:StringToDuration github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToString github.com/green-ecolution/green-ecolution-backend/internal/utils:NetURLToString github.com/green-ecolution/green-ecolution-backend/internal/utils:NetIPToString github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeDurationToString
type RegionHTTPMapper ¶
type RegionHTTPMapper interface {
FromResponse(src *domain.Region) *entities.RegionResponse
}
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTime
type SensorHTTPMapper ¶
type SensorHTTPMapper interface { // goverter:ignore Type FromResponse(src *domain.Sensor) *entities.SensorResponse }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTime goverter:extend MapSensorStatus
type TreeClusterHTTPMapper ¶
type TreeClusterHTTPMapper interface { // goverter:ignore Region Trees FormResponse(*domain.TreeCluster) *entities.TreeClusterResponse FromCreateRequest(*entities.TreeClusterCreateRequest) *domain.TreeClusterCreate FromUpdateRequest(*entities.TreeClusterUpdateRequest) *domain.TreeClusterUpdate }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTimePtr goverter:extend MapWateringStatus MapSoilCondition MapSoilConditionReq
type TreeHTTPMapper ¶
type TreeHTTPMapper interface { // goverter:map TreeCluster TreeClusterID // goverter:ignore Sensor FromResponse(*domain.Tree) *entities.TreeResponse FromResponseList([]*domain.Tree) []*entities.TreeResponse FromUpdateRequest(*entities.TreeUpdateRequest) *domain.TreeUpdate FromCreateRequest(*entities.TreeCreateRequest) *domain.TreeCreate }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTime goverter:extend MapTreeClusterToID MapWateringStatus
type VehicleHTTPMapper ¶
type VehicleHTTPMapper interface { FormResponse(*domain.Vehicle) *entities.VehicleResponse FromResponseList([]*domain.Vehicle) []*entities.VehicleResponse FromCreateRequest(*entities.VehicleCreateRequest) *domain.VehicleCreate FromUpdateRequest(*entities.VehicleUpdateRequest) *domain.VehicleUpdate }
goverter:converter goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTime goverter:extend github.com/green-ecolution/green-ecolution-backend/internal/utils:TimeToTimePtr goverter:extend MapVehicleStatus MapVehicleType MapVehicleStatusReq MapVehicleTypeReq MapDrivingLicense MapDrivingLicenseReq